WOLFRAM SYSTEM MODELER
TanksWithOverflowTwo tanks connected with pipes at different heights |
SystemModel["Modelica.Fluid.Examples.Tanks.TanksWithOverflow"]
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.
upperTank |
Type: OpenTank Description: Simple tank with inlet/outlet ports |
|
---|---|---|
massFlowRate |
Type: MassFlowSource_T Description: Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances |
|
system |
Type: System Description: System properties and default values (ambient, flow direction, initialization) |
|
pressure |
Type: Pressure Description: Ideal pressure sensor |
|
pipe |
Type: StaticPipe Description: Basic pipe flow model without storage of mass or energy |
|
lowerTank |
Type: OpenTank Description: Simple tank with inlet/outlet ports |
|
hysteresis |
Type: Hysteresis Description: mass flow rate signal by pressure control |
|
switch1 |
Type: Switch Description: Switch between two Real signals |
|
m_flow_off |
Type: Constant Description: Generate constant signal of type Real |
|
m_flow_on |
Type: Constant Description: Generate constant signal of type Real |
|
overflow |
Type: StaticPipe Description: Basic pipe flow model without storage of mass or energy |