Specific enthalpy of moist air is computed from density, temperature and composition with X[1] as the total water mass fraction. The fog region is included for both, ice and liquid fog.
function h_dTX
extends Modelica.Icons.Function;
input SI.Density d "Density";
input SI.Temperature T "Temperature";
input SI.MassFraction X[:] "Mass fractions of moist air";
output SI.SpecificEnthalpy h "Specific enthalpy at p, T, X";
end h_dTX;