region_ps

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

Syntax

region = region_ps(p, s, phase, mode)

Inputs (4)

p

Type: Pressure (Pa)

Description: Pressure

s

Type: SpecificEntropy (J/(kg·K))

Description: Specific entropy

phase

Default Value: 0

Type: Integer

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

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