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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | p | Pressure | |
| SI.SpecificEnthalpy | h | Specific enthalpy | |
| Integer | phase | 0 | Phase: 2 for two-phase, 1 for one phase, 0 if not known |
| Integer | mode | 0 | Mode: 0 means check, otherwise assume region=mode |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | region | Region (valid values: 1,2,3,4,5) in IF97 |