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
Contents
Generated at 2026-04-15T18:18:36Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos