function averageMolarMass_xi extends TILMedia.BaseClasses.PartialGasFunction; input SI.MassFraction[:] xi "Mass fractions of the first nc-1 components"; input TILMedia.Internals.GasName gasName "Gas name"; input Integer nc "Number of components"; input Integer condensingIndex "Index of condensing component"; output SI.MolarMass M "Average molar mass"; end averageMolarMass_xi;