modelReservoir

Simple open tank model

Extends from Internal.PartialVolume (Partial volume with one fore port and one rear port).

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
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
BooleanuseHeatport (from PartialVolume)false=true, if heatport is enabled
BooleanuseRear (from PartialVolume)true= true, if rear port is enabled
BooleanuseFore (from PartialVolume)true= true, if fore port is enabled
SI.AreaA (from PartialVolume)1Heat transfer area
SI.CoefficientOfHeatTransferU (from PartialVolume)200Thermal transmittance
SI.AreaA_surf0.01Base area
SI.AccelerationgdropOfCommons.gGravitational acceleration
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Initialization › Pressure
Booleaninitialize_pressure (from PartialVolume)true=true, if pressure is initialized
Medium.AbsolutePressurep_start (from PartialVolume)Medium.p_defaultInitial pressure set value
Initialization › Temperature
Booleaninitialize_energy (from PartialVolume)true= true, if internal energy is initialized
Medium.TemperatureT_start (from PartialVolume)Medium.T_defaultInitial Temperature set value
Initialization › Mass fractions
Booleaninitialize_Xi (from PartialVolume)true=true, if mass fractions are iinitialized
Medium.MassFraction[Medium.nXi]Xi_0 (from PartialVolume)Medium.X_default[1:Medium.nXi]Initial mass fractions set values
Initialization › Specific enthalpy
Booleanuse_hstart (from PartialVolume)false=true, if internal energy is initialized with specific enthalpy
Medium.SpecificEnthalpyh_start (from PartialVolume)Medium.h_defaultInitial specific enthalpy set value
Advanced
Utilities.Units.InertanceL (from PartialVolume)dropOfCommons.LInertance of rear/fore ports
SI.MassFlowRatem_flow_reg (from PartialVolume)dropOfCommons.m_flow_regRegularization threshold of mass flow rate
BooleanusePreferredMediumStates (from PartialVolume)false=true, if preferred medium states are used
SI.Heightheight_min0.01Minimum tank level
Advanced › Damping
Realk_volume_damping (from PartialVolume)dropOfCommons.k_volume_dampingDamping factor multiplicator
Environmental pressure
BooleanpEnvFromInputfalse=true, if environmental pressure input connector is enabled
Medium.AbsolutePressurep_env_par1e5Environmental pressure set value
Initialization
SI.Heightheight_00.1Start value of tank level

Connectors

TypeNameDefaultDescription
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from PartialVolume)
Interfaces.Rearrear (from PartialVolume)
Interfaces.Forefore (from PartialVolume)
Modelica.Blocks.Interfaces.RealInputpEnv_inputp_envEnvironmental pressure input connector [Pa]

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium (from PartialVolume)
SI.VolumeV (from PartialVolume)Volume
SI.MassM (from PartialVolume)V*medium.dMass
SI.Mass[Medium.nXi]MXi (from PartialVolume)M*medium.XiMases of species
SI.EnergyU_med (from PartialVolume)M*medium.uInternal energy
SI.HeatFlowRateQ_flow (from PartialVolume)Heat flow rate
SI.PowerW_v (from PartialVolume)Work due to change in volume (Volumenänderungsarbeit)
SI.HeightheightTank level