Modelica.Fluid.Examples.Tanks

Library demonstrating the usage of the tank model

Information

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Modelica.Fluid.Examples.Tanks.ThreeTanks ThreeTanks Demonstrating the usage of SimpleTank
Modelica.Fluid.Examples.Tanks.TanksWithOverflow TanksWithOverflow Two tanks connected with pipes at different heights
Modelica.Fluid.Examples.Tanks.EmptyTanks EmptyTanks Show the treatment of empty tanks

Modelica.Fluid.Examples.Tanks.ThreeTanks Modelica.Fluid.Examples.Tanks.ThreeTanks

Demonstrating the usage of SimpleTank

Information

ThreeTanks.png

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
replaceable package MediumMedium in the component

Connectors

NameDescription
replaceable package MediumMedium in the component

Modelica.Fluid.Examples.Tanks.TanksWithOverflow Modelica.Fluid.Examples.Tanks.TanksWithOverflow

Two tanks connected with pipes at different heights

Information

The mass flow rate to the upper tank is controlled by the static pressure at its bottom. The fluid flows through a pipe and forced by different heights from the upper tank to the lower tank.

Additional fluid flows through an overflow pipe if the level of the upper tank exceeds 6m. Initially the overflow enters the lower tank above its fluid level; later on the fluid level exceeds the overflow port.

Note that the number of solver intervals has been increased, accounting for the long simulation time horizon. Otherwise the simulation may fail due to too large steps subject to events. Alternatively the simulation accuracy could be increased in order to avoid errors.

TanksWithOverflow.png

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica.Fluid.Examples.Tanks.EmptyTanks Modelica.Fluid.Examples.Tanks.EmptyTanks

Show the treatment of empty tanks

Information

EmptyTanks.png

Extends from Modelica.Icons.Example (Icon for runnable examples).

Automatically generated Thu Oct 1 16:07:56 2020.