Specific enthalpy of moist air is computed from temperature and constant specific heat capacity, provided all water is in the gaseous state. The first entry in the composition vector X must be the mass fraction of steam. For a function that also covers the fog region please refer to h_dTX.
function enthalpyOfGas
extends Modelica.Icons.Function;
input Temperature T "Temperature";
input MassFraction[:] X "Vector of mass fractions";
output SpecificEnthalpy h "Specific enthalpy";
end enthalpyOfGas;