function getAverageMolarMass extends MultiPhaseMixture.Icons.ExternalFunction; input Modelica.SIunits.MassFraction X[nC] = reference_X "Mass fraction"; input Integer X_unit = UnitBasis.MassFraction; input MultiPhaseMixture.Templates.ExternalObjects.ExternalMediaObject eo; output Modelica.SIunits.MolarMass MM "molar mass"; end getAverageMolarMass;