Function to compute the humidity ratio for a given water vapor partial pressure.
function X_pW extends Modelica.Icons.Function; input Modelica.SIunits.Pressure p_w(displayUnit = "Pa", min = 0.003, nominal = 1000) "Water vapor pressure"; input Modelica.SIunits.Pressure p = 101325 "Total pressure"; output Modelica.SIunits.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.