Function to compute the water vapor concentration based on saturation pressure, absolute pressure and relative humidity.
function X_pSatpphi extends Modelica.Icons.Function; input Modelica.SIunits.AbsolutePressure pSat "Saturation pressure"; input Modelica.SIunits.Pressure p "Pressure of the fluid"; input Real phi(min = 0, max = 1) "Relative humidity"; output Modelica.SIunits.MassFraction X_w(min = 0, max = 1, nominal = 0.01) "Water vapor concentration per total mass of air"; end X_pSatpphi;