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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Density | d | Density | |
| SI.Temperature | T | Temperature | |
| SI.MassFraction[:] | X | Mass fractions of moist air |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.SpecificHeatCapacity | R | Mixture gas constant |