functionregion_ph

Return the current region (valid values: 1,2,3,4,5) in IF97 for given pressure and specific enthalpy

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

TypeNameDefaultDescription
SI.PressurepPressure
SI.SpecificEnthalpyhSpecific enthalpy
Integerphase0Phase: 2 for two-phase, 1 for one phase, 0 if not known
Integermode0Mode: 0 means check, otherwise assume region=mode

Outputs

TypeNameDefaultDescription
IntegerregionRegion (valid values: 1,2,3,4,5) in IF97