Control valve model for compresible liquid flow
Extends the
ValvePartial model, fixing isCompressibleFlow=true.
It adds two
Medium.ThermodynamicState StateA and StateB. In order to retrieve
the physical properties at both ports. It defines also variables
for temperature, density and velocity at both ports: Ta, RhoA,Va,
Tb, RhoB, Vb.
The State variable
(used for retrieving physical properties for the pressure drop
calculation) is defined at the highest enthalpy of the two ports
and at the lowest pressure of the ports (but not lowest than half
of the highest pressure).
An equation is added
relating the two ports enthalpy calcEnthalpyDifference=true. It
will take into account the kinetic energy only if the valve
diameter is higher than 0.
Generated at 2026-04-08T18:18:28Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos