WOLFRAM SYSTEM MODELER

ControlledTanks

Demonstrating the controller of a tank filling/emptying system

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.StateGraph.Examples.ControlledTanks"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

With this example the controller of a tank filling/emptying system is demonstrated. This example is from Dressler (2004), see Literature. 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 3 is empty, valve 3 is closed

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

  • Button start starts the above process. When this button is pressed after a "stop" or "shut" operation, the process operation continues.
  • Button stop stops the above process by closing all valves. Then, the controller waits for further input (either "start" or "shut" operation).
  • Button shut is used to shutdown the process, by emptying at once both tanks. When this is achieved, the process goes back to its start configuration. Clicking on "start", restarts the process.

Components (11)

tankController

Type: TankController

Description: Controller for tank system

start

Type: RadioButtonSource

Description: Boolean signal source that mimics a radio button

stop

Type: RadioButtonSource

Description: Boolean signal source that mimics a radio button

shut

Type: RadioButtonSource

Description: Boolean signal source that mimics a radio button

tank1

Type: Tank

Description: Simple tank model (this is a copy from Isolde Dressler's master thesis project)

tank2

Type: Tank

Description: Simple tank model (this is a copy from Isolde Dressler's master thesis project)

valve1

Type: valve

Description: Simple valve model (this is a copy from Isolde Dressler's master thesis project)

source

Type: Source

Description: Simple source model (this is a copy from Isolde Dressler's master thesis project)

valve2

Type: valve

Description: Simple valve model (this is a copy from Isolde Dressler's master thesis project)

valve3

Type: valve

Description: Simple valve model (this is a copy from Isolde Dressler's master thesis project)

stateGraphRoot

Type: StateGraphRoot

Description: Root of a StateGraph (has to be present on the highest level of a StateGraph)