Temperature as function of pressure and specific enthalpy
function temperature_ph extends Modelica.Icons.Function; input Modelica.Units.SI.Pressure p "pressure"; input Modelica.Units.SI.SpecificEnthalpy h "specific enthalpy"; input Integer phase = 0 "2 for two-phase, 1 for one-phase, 0 if not known"; output Modelica.Units.SI.Temperature T "temperature"; end temperature_ph;