functiongetPhase_ph
Number of phases by pressure and specific enthalpy
Extends from Modelica.Icons.Function (Icon for functions).
Information
This function computes the number of phases for R134a depending on the inputs for absolute pressure and specific enthalpy. It makes use of cubic spline functions for liquid and vapor specific enthalpy.Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| AbsolutePressure | p | Pressure | |
| SpecificEnthalpy | h | Specific enthalpy |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | phase | Number of phases |