Inverse iteration in region 3: (d,T) = f(p,s)
function dtofps3 extends Modelica.Icons.Function; input SI.Pressure p "Pressure"; input SI.SpecificEntropy s "Specific entropy"; input SI.Pressure delp "Iteration accuracy"; input SI.SpecificEntropy dels "Iteration accuracy"; output SI.Density d "Density"; output SI.Temperature T "Temperature (K)"; output Integer error "Error flag: iteration failed if different from 0"; end dtofps3;