WOLFRAM SYSTEMMODELER

TanksWithOverflow

Two tanks connected with pipes at different heights

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Fluid.Examples.Tanks.TanksWithOverflow"]
Out[1]:=

Information

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

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

Components (11)

upperTank

Type: OpenTank

massFlowRate

Type: MassFlowSource_T

system

Type: System

pressure

Type: Pressure

pipe

Type: StaticPipe

lowerTank

Type: OpenTank

hysteresis

Type: Hysteresis

Description: mass flow rate signal by pressure control

switch1

Type: Switch

m_flow_off

Type: Constant

m_flow_on

Type: Constant

overflow

Type: StaticPipe