Modelica_StateGraph2.Examples.Applications.ControlledTanks

Control system to fill and empty a two tank system

Package Content

NameDescription
Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks1 ControlledTanks1  
Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks2 ControlledTanks2  

Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks1 Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks1

Information


With this example the controller of a tank filling/emptying system is demonstrated. This example is from Dressler (2004), see Literature which in turn is based on an example model from Karl Erk Arzen of JGraphCharts.

The basic operation is to fill and empty the two tanks:

  1. Valve 1 is opened and tank 1 is filled.
  2. When tank 1 reaches its fill level limit, valve 1 is closed.
  3. After a waiting time, valve 2 is opened and the fluid flows from tank 1 into tank 2.
  4. When tank 1 is empty, valve 2 is closed.
  5. After a waiting time, valve 3 is opened and the fluid flows out of tank 2
  6. When tank 2 is empty, valve 3 is closed

The above "normal" operation can be influenced by three buttons:

The tank controller has some safeguards to prevent the tanks to overflow even if there are errors in the control system:

The default simulation time is 900 s. The result can be animated. For this, set in Dymola in the command window: "animationSpeed(speed = 50)".

Extends from Internal.PartialControlledTank.

Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks2 Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks2

Information


This is the same model as "ControlledTanks1". The only difference is how the tank controller is implemented:

Extends from Internal.PartialControlledTank.
Automatically generated Tue Oct 01 16:04:22 2013.