function dtofpsdt3
extends Modelica.Icons.Function;
input SI.Pressure p "Pressure";
input SI.SpecificEntropy s "Specific entropy";
input SI.Density dguess "Guess density, e.g., from adjacent volume";
input SI.Temperature Tguess "Guess temperature, e.g., from adjacent volume";
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 dtofpsdt3;