.FreeFluids.Valves.ValveCompressible

Information

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 2024-12-02T19:25:45Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos