WOLFRAM SYSTEM MODELER

region_ps

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

Wolfram Language

In[1]:=
SystemModel["Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.region_ps"]
Out[1]:=

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