modelReservoir

Simple open tank model

Extends from Internal.PartialVolume.

Information

This is a volume, that is open at the top and therefore maintains environmental pressure at the top and adds pressure depending on fill height.

Conceptually it is a Sink and a Source. It therefore defines the level of inertial pressure r and acts as a loop breaker in a closed loop.

This component uses a simplification (medium.p is set to p_env + height*g, which is only correct at the bottom of the reservoir) which is intended to hold for media with low compressibility.

Note that the energy equation requires the mass in the system to be positive and will not give valid results otherwise (if the assert of height > 0 fails).

Parameters

TypeNameDefaultDescription
SI.AreaA_surf0.01Base area
SI.AccelerationgdropOfCommons.gGravitational acceleration
Environmental pressure
BooleanpEnvFromInputfalse=true, if environmental pressure input connector enabled
Medium.AbsolutePressurep_env_par1e5Environmental pressure set value
Initialization
SI.Heightheight_00.1Start value of tank level
Advanced
SI.Heightheight_min0.01Minimum tank level

Components

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputpEnv_inputp_envEnvironmental pressure input connector [Pa]
SI.HeightheightTank level