.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)".


Generated at 2024-04-24T18:15:52Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos