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