function phaseComposition_phX input Modelica.SIunits.AbsolutePressure p "pressure"; input Modelica.SIunits.SpecificEnthalpy h "specific enthalpy"; input Modelica.SIunits.MassFraction X[nC] = reference_X "Mass fraction"; input Integer phaseIndex "Phase index"; input Properties state; output Real Y[nC]; end phaseComposition_phX;