Return thermodynamic state record from p and T
function calcProperties_pTX extends Modelica.Icons.Function; input Modelica.SIunits.AbsolutePressure p "Pressure"; input Modelica.SIunits.Temperature T "Temperature"; input Modelica.SIunits.MassFraction X[nC] = reference_X "Mass fractions"; input Integer X_unit = UnitBasis.MassFraction; input Integer phase = 0 "2 for two-phase, 1 for one-phase, 0 if not known"; input MultiPhaseMixture.Templates.ExternalObjects.ExternalMediaObject eo; output Properties state; end calcProperties_pTX;