This function calculates the density and temperature of R1234yf from absolute pressure and specific enthalpy. In one-phase region the function calls the fundamental helmholtz equation of Richter et al (2011). In two-phase the density and temperature is computed from cubic splines for saturated pressure, liquid and vapor density.
function dt_ph extends Modelica.Icons.Function; input AbsolutePressure p "pressure"; input SpecificEnthalpy h "specific enthalpy"; output Density d "density"; output Temperature T "temperature"; end dt_ph;