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