Absolute humidity of air for given pressure, temperature and relative humidity.
Note that the absolute humidity is in kg/kg total air, and not dry air.
function X_pTphi extends Modelica.Icons.Function; input Modelica.Units.SI.Pressure p "Absolute pressure of the medium"; input Modelica.Units.SI.Temperature T "Dry bulb temperature"; input Real phi(unit = "1") "Relative humidity"; output Modelica.Units.SI.MassFraction X_w "Water vapor mass fraction per unit mass total air"; end X_pTphi;