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.Units.SI.AbsolutePressure pSat "Saturation pressure"; input Modelica.Units.SI.Pressure p "Pressure of the fluid"; input Real phi(min = 0, max = 1) "Relative humidity"; output Modelica.Units.SI.MassFraction X_w(min = 0, max = 1, nominal = 0.01) "Water vapor concentration per total mass of air"; end X_pSatpphi;