Inverse iteration in region 5: (p,T) = f(p,s)
function tofpst5 extends Modelica.Icons.Function; input SI.Pressure p "Pressure"; input SI.SpecificEntropy s "Specific entropy"; input SI.Temperature Tguess "Guess temperature, e.g., from adjacent volume"; input SI.SpecificEntropy relds "Iteration accuracy"; output SI.Temperature T "Temperature (K)"; output Integer error "Error flag: iteration failed if different from 0"; end tofpst5;