function isentropicEnthalpyApproximation
extends Modelica.Icons.Function;
input SI.Pressure p2 "downstream pressure";
input ThermodynamicState state "properties at upstream location";
input Boolean exclEnthForm = excludeEnthalpyOfFormation "If true, enthalpy of formation Hf is not included in specific enthalpy h";
input ReferenceEnthalpy.Temp refChoice = referenceChoice "Choice of reference enthalpy";
input SpecificEnthalpy h_off = h_offset "User defined offset for reference enthalpy, if referenceChoice = UserDefined";
output SI.SpecificEnthalpy h_is "isentropic enthalpy";
end isentropicEnthalpyApproximation;