function density_pTX input Modelica.SIunits.Pressure p; input Modelica.SIunits.Temp_K T; input MassFraction X[:] = fill(0, 0) "mass fraction m_NaCl/m_Sol"; input FixedPhase phase = 0 "2 for two-phase, 1 for one-phase, 0 if not known"; output Modelica.SIunits.Density d = Modelica.Media.Water.WaterIF97_pT.density_pT(p, T); end density_pTX;