Python – How to Solve Simultaneous Equations

Python in combination with Numpy allows for using python to solve simultaneous equations in a few simple steps. Using python to solve simultaneous equations relies on matrix linear algebra and can be done by using a built-in function (method 1) or manually (method 2) manually manipulating the matrices  to solve. So how to solve simultaneous equations… Continue reading Python – How to Solve Simultaneous Equations

PID Controller Design and Simulation using OpenModelica

The Modelica language is intended for the modelling and simulation of complex multi-domain systems but can also be used for the classical controller design and simulation for control systems. This tutorial will use openModelica to demonstrate this by using transfer function models, step responses and PID controllers found in the standard Modelica library. Example System… Continue reading PID Controller Design and Simulation using OpenModelica

Modelica Two Tank System

This simulation uses the Modelica modeling language to model two identical tanks connect together by a pipe. The platform used is OpenModelica and the components are from an ‘under development’  library that aims to be a simpler to use alternative to the modelica fluid library. The tanks are 25 m high and have a radius… Continue reading Modelica Two Tank System

Solving Second Order Differential Equations in Python

This presentation outlines how to solve second order differential equations in python. The solution is obtained numerically using the python SciPy ode engine (integrate module). This solution is therefore not in analytic form but the output is as if the analytic function was computed for each time step. The method used here is generally applicable… Continue reading Solving Second Order Differential Equations in Python