Density of the gas phase
function density_gas_pTX input SI.Pressure p; input SI.Temp_K T; input MassFraction X[:] "nX_gas mass fraction"; input SI.MolarMass MM[:] "=MM_vec =fill(0,nX) molar masses of components"; output SI.Density d; end density_gas_pTX;