Approximate calculation of h_is from upstream properties, downstream pressure, gas part only
function isentropicEnthalpyApproximation extends Modelica.Icons.Function; input AbsolutePressure p2 "Downstream pressure"; input ThermodynamicState state "Thermodynamic state at upstream location"; output SpecificEnthalpy h_is "Isentropic enthalpy"; end isentropicEnthalpyApproximation;