WOLFRAM SYSTEM MODELER
EmptyTanksShow the treatment of empty tanks |
|
SystemModel["Modelica.Fluid.Examples.Tanks.EmptyTanks"]

This information is part of the Modelica Standard Library maintained by the Modelica Association.
This example model demonstrates the use of the OpenTank component. The simulation starts with an almost full tank1 and an almost empty tank2. Water flows out of tank1 until the level reaches the height of the outlet port, 1 mm above the bottom, then the flow stops thanks to the implicit check-valve behaviour of the ports when they get above the fluid level.
Notice that the tanks should never get completely empty, otherwise the mass and energy balance equations become singular. Hence, tank2 starts with 1 mm of water and the outlet port of tank1 is 1 mm above the bottom, to ensure it never gets fully empty.
| tank1 |
Type: OpenTank Description: Simple tank with inlet/outlet ports |
|
|---|---|---|
| pipe |
Type: StaticPipe Description: Basic pipe flow model without storage of mass or energy |
|
| tank2 |
Type: OpenTank Description: Simple tank with inlet/outlet ports |
|
| system |
Type: System Description: System properties and default values (ambient, flow direction, initialization) |