This function calculates the density 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 dofpT extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input Temperature T "Temperature"; input AbsolutePressure delp "Iteration converged if (p-pre(p) < delp)"; output Density d "Density"; end dofpT;