modelReservoir
Simple open tank model
Extends from Internal.PartialVolume (Partial volume with one inlet and one outlet).
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
| Type | Name | Default | Description |
|---|---|---|---|
| String | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| Boolean | useHeatport (from PartialVolume) | false | =true, if heatport is enabled |
| Boolean | useInlet (from PartialVolume) | true | = true, if inlet is enabled |
| Boolean | useOutlet (from PartialVolume) | true | = true, if outlet is enabled |
| SI.Area | A (from PartialVolume) | 1 | Heat transfer area |
| SI.CoefficientOfHeatTransfer | U (from PartialVolume) | 200 | Thermal transmittance |
| SI.Area | A_surf | 0.01 | Base area |
| SI.Acceleration | g | dropOfCommons.g | Gravitational acceleration |
| Layout | |||
| Boolean | displayInstanceName (from DropOfCommonsPlus) | dropOfCommons.displayInstanceNames | = true, if instance name is displayed |
| Boolean | displayParameters (from DropOfCommonsPlus) | dropOfCommons.displayParameters | = true, if displaying parameters is enabled |
| Initialization › Pressure | |||
| Boolean | initialize_pressure (from PartialVolume) | true | =true, if pressure is initialized |
| Medium.AbsolutePressure | p_start (from PartialVolume) | Medium.p_default | Initial pressure set value |
| Initialization › Temperature | |||
| Boolean | initialize_energy (from PartialVolume) | true | = true, if internal energy is initialized |
| Medium.Temperature | T_start (from PartialVolume) | Medium.T_default | Initial Temperature set value |
| Initialization › Mass fractions | |||
| Boolean | initialize_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 | |||
| Boolean | use_hstart (from PartialVolume) | false | =true, if internal energy is initialized with specific enthalpy |
| Medium.SpecificEnthalpy | h_start (from PartialVolume) | Medium.h_default | Initial specific enthalpy set value |
| Advanced | |||
| Boolean | enableFreeInlet (from PartialVolume) | false | true, if inlet is free (volume creates no pressure boundary condition) |
| Boolean | considerInertance (from PartialVolume) | dropOfCommons.considerInertance | =true, if transient momentum (inertance) term is considered; disable only for advanced use |
| Utilities.Units.Inertance | L (from PartialVolume) | dropOfCommons.L | Inertance of inlet/outlet |
| SI.MassFlowRate | m_flow_assert (from PartialVolume) | -dropOfCommons.m_flow_reg | Assertion threshold for negative massflow |
| Boolean | usePreferredMediumStates (from PartialVolume) | false | =true, if preferred medium states are used |
| SI.Height | height_min | 0.01 | Minimum tank level |
| Advanced › Damping | |||
| Real | k_volume_damping (from PartialVolume) | dropOfCommons.k_volume_damping | Damping factor multiplicator |
| Environmental pressure | |||
| Boolean | pEnvFromInput | false | =true, if environmental pressure input connector enabled |
| Medium.AbsolutePressure | p_env_par | 1e5 | Environmental pressure set value |
| Initialization | |||
| SI.Height | height_0 | 0.1 | Start value of tank level |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from PartialVolume) | ||
| Interfaces.Inlet | inlet (from PartialVolume) | ||
| Interfaces.Outlet | outlet (from PartialVolume) | ||
| Modelica.Blocks.Interfaces.RealInput | pEnv_input | p_env | Environmental pressure input connector [Pa] |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.BaseProperties | medium (from PartialVolume) | ||
| SI.Volume | V (from PartialVolume) | Volume | |
| SI.Mass | M (from PartialVolume) | V*medium.d | Mass |
| SI.Mass[Medium.nXi] | MXi (from PartialVolume) | M*medium.Xi | Masses of species |
| SI.Energy | U_med (from PartialVolume) | M*medium.u | Internal energy |
| SI.HeatFlowRate | Q_flow (from PartialVolume) | Heat flow rate | |
| SI.Power | W_v (from PartialVolume) | Work due to change of volume | |
| SI.Height | height | Tank level |