Isentropic specific enthalpy from p,s (preferably use water_hisentropic_dyn in dynamic simulation!)
function water_hisentropic extends Modelica.Icons.Function; input SI.Pressure p "Pressure"; input SI.SpecificEntropy s "Specific entropy"; input Integer phase = 0 "Phase: 2 for two-phase, 1 for one phase, 0 if unknown"; output SI.SpecificEnthalpy h "Specific enthalpy"; end water_hisentropic;