function massToMoleFractions extends Modelica.Icons.Function; input SI.MassFraction X[:] "Mass fractions of mixture"; input SI.MolarMass MMX[:] "molar masses of components"; output SI.MoleFraction molefractions[size(X, 1)] "Molalities"; output Types.Molality molalities[size(X, 1)] "Molalities moles/m_H2O"; end massToMoleFractions;