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).

Information

## Copyright © EDF 2002 - 2025

## ThermoSysPro Version 4.2

Inputs

TypeNameDefaultDescription
Units.SI.Pressureppressure
Units.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