Function to compute the mass fraction for a given water vapor partial pressure.
function X_pW extends Modelica.Icons.Function; input Modelica.Units.SI.Pressure p_w(displayUnit = "Pa", min = 0.003, nominal = 1000) "Water vapor pressure"; input Modelica.Units.SI.Pressure p = 101325 "Total pressure"; output Modelica.Units.SI.MassFraction X_w(min = 0, max = 1, nominal = 0.01) "Species concentration at dry bulb temperature"; end X_pW;
p_w
.
smoothOrder=99
and displayUnit
for pressure.
HumidityRatio_pWat
to X_pW
.
RealInput
are obsolete in Modelica 3.0.