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;