Function gamma = mollier_gamma(T, F, pb,prop);
gamma = mollier_gamma(pv,[],pb,prop);
[gamma, X] = mollier_gamma(...);
returns the mass fractions gamma of dry air and
water vapour (in kg per kg of the air mixture) for
either:
-- the given air temperature T (in degrees C),
the given relative humidity F (with a value
of 0...1) and the given total pressure (or
barometric pressure) pb (in Pa),
or:
-- the given partial vapour pressure pv
(in Pa) and the given total pressure (or
barometric pressure) pb (in Pa).
The fourth input argument prop is a struct
containing information on humid air properties,
as returned by m-file mollier_humidairprop.m.
This function is called, if the fourth input
argument is not given.
If pb is empty or not given, the value of
prop.pbstandard is used.
The first output argument gamma contains two
columns, for the dry air and water vapour
fractions, respectively.
The second output argument X contains the
absolute humidity X of the air (in kg of water
vapour per kg of dry air).
Internally, the function mollier_X() is called;
see also the help text of that function. It
returns the absolute humidity X given pv, or
T and F.
The absolute humidity X is converted to mass
fractions as follows:
gamma(:,2) = X ./ (1 + X);
gamma(:,1) = 1 - gamma(:,2);
(c) 2026 fabien van mook
2026.08.20 release of this file within package "fvm-mollier" under GNU GPLv3+