This function returns the density as function of p and h. The water/steam functions are computed according to TTSE.
Author: | Julien Bonifay | SCD |
Checked by: | ||
Protection class: | internal |
function rho_ph import SI = Modelica.SIunits; input SI.Pressure p "Pressure"; input SI.SpecificEnthalpy h "Specific enthalpy"; input Integer phase = 0 "2 for two-phase, 1 for one-phase, 0 if not known"; output SI.Density rho "Density"; end rho_ph;