Density of a mixture of gases
function density_pTX input SI.Pressure p; input SI.Temp_K T; input MassFraction X[nX] "Mass fractions"; input SI.MolarMass MM[:] = fill(0, nX) "molar masses of components"; output SI.Density d; output SpecificHeatCapacity R_gas; end density_pTX;