Compute mole fraction vector from mass fraction vector
function massToMoleFractions input Modelica.SIunits.MassFraction X[:] "Mass fractions of mixture"; input Modelica.SIunits.MolarMass[:] MMX "molar masses of components"; output Modelica.SIunits.MoleFraction moleFractions[size(X, 1)] "Mole fractions of gas mixture"; end massToMoleFractions;