functionr_dTX

Return ideal gas constant as a function from thermodynamic d, T and X, remains valid with liquid water in the mixture

Information

The ideal gas constant for moist air is computed from the density d, temperature T and composition X where the mass fractions of dry air and steam are corrected of the mass fraction of liquid that does not count for the gas contant calculation.

Inputs

TypeNameDefaultDescription
SI.DensitydDensity
SI.TemperatureTTemperature
SI.MassFraction[:]XMass fractions of moist air

Outputs

TypeNameDefaultDescription
SI.SpecificHeatCapacityRMixture gas constant