region_ph

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

Syntax

region = region_ph(p, h, phase, mode)

Inputs (4)

p

Type: Pressure (Pa)

Description: Pressure

h

Type: SpecificEnthalpy (J/kg)

Description: Specific enthalpy

phase

Default Value: 0

Type: Integer

Description: Phase: 2 for two-phase, 1 for one phase, 0 if not known

mode

Default Value: 0

Type: Integer

Description: Mode: 0 means check, otherwise assume region=mode

Outputs (1)

region

Type: Integer

Description: Region (valid values: 1,2,3,4,5) in IF97