This function calculates the specific enthalpy of R134a from absolute pressure and temperature. The function can only be executed in one-phase region. The safety margin to the phase boundary is 1[K] and 1000[Pa].
function hofpT extends Modelica.Icons.Function; input SI.Pressure p "Pressure"; input SI.Temperature T "Temperature"; input Modelica.SIunits.Pressure delp "Iteration converged if (p-pre(p) < delp)"; output SI.SpecificEnthalpy h "Specific Enthalpy"; end hofpT;