modelLiquidNode

Information

The Modelica License 2

This model represents a pool containing a liquid water mass. The interface with its environment is treated through 3 ports.
One thermal port for only heat exchanges. The power could come from, for example :

  • An internal heating or cooling power
  • The condensation or evaporation at the water surface
  • The convection at water surface or with the container
One fluidport for mass exchange with an air node. It has been added to transfer the steam from the boiling to the air node.
One input vector to allow an water inlet from an external input. The first component of the input vector is the mass flow rate and the second is the water temperature. This input could represent for exemple :
  • a flow a pumping system
  • a flow from the wall condensation that flows to the pool

To model the pool, the followings hypotheses are made:

  • Hypothesis 1: The fluid coming from the inlet vector is only liquid water
  • Hypothesis 2: The solidification of the water is not treated
  • Hypothesis 3: The specific heat capacity at constant pressure and at constant volume are the same for the liquid water

The basic constitutive equations for the pool is :
m = medium.d * V
der(m) = m_flow_boiling + Water_Input_internal[1]
m * LiquidWater.cp * der(T) - m_flow_boiling*LiquidWater.LHea = Heatport.Q_flow + Water_Input_internal[1] * LiquidWater.cp * (Water_Input_internal[2] - T )
The match with the saturation condition are made with the following condition :
if /*noEvent*/(T > Tsat) and /*noEvent*/(m_flow_boiling ≤ 0) then
der(T) = der(Tsat)
else
m_flow_boiling = 0
end if

Parameters

TypeNameDefaultDescription
Medium.MassFraction[Medium.nX]X_startMedium.X_default
IntegernPorts1Number of fluidport
Assumptions › Dynamics
Types.DynamicsenergyDynamicsDynamics.FixedInitialFormulation of energy balance
Types.DynamicsmassDynamicsDynamics.FixedInitialFormulation of mass balance
Types.DynamicssubstanceDynamicsmassDynamicsFormulation of substance balance
Types.DynamicstraceDynamicsmassDynamicsFormulation of trace substance balance
Initialization
SI.TemperatureT_start293.15Initial temperature
Geometrical properties
SI.VolumeV_start0Initial volume

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPorts_a[nPorts]fluidPort
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium
SI.EnthalpyHMedium enthalpy
SI.MassmMedium mass
SI.Mass[Medium.nXi]mXiMasses of independent components in the fluid
SI.MassmCMasses of trace substances in the fluid
SI.VolumeV
Medium.ExtraProperty[Medium.nC]CTrace substance mixture content
SI.MassFlowRatemb_flowMass flows across boundaries
SI.MassFlowRatembXi_flowSubstance mass flows across boundaries
Medium.MassFlowRate[nPorts,Medium.nXi]ports_mXi_flow
Medium.ExtraPropertyFlowRatembC_flowTrace substance mass flows across boundaries
SI.EnthalpyFlowRateHb_flowEnthalpy flow across boundaries or energy source/sink
SI.HeatFlowRateQb_flowHeat flow across boundaries or energy source/sink

Contents

NameDescription
Medium
MediumGas