## Copyright © EDF 2002 - 2025
## ThermoSysPro Version 4.2
function dtofph3 import ThermoSysPro; extends Modelica.Icons.Function; input Units.SI.Pressure p "pressure"; input Units.SI.SpecificEnthalpy h "specific enthalpy"; input Units.SI.Pressure delp "iteration accuracy"; input Units.SI.SpecificEnthalpy delh "iteration accuracy"; output Units.SI.Density d "density"; output Units.SI.Temperature T "temperature (K)"; output Integer error "error flag: iteration failed if different from 0"; end dtofph3;