functiongetPhase_ps
Number of phases by pressure and entropy
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 entropy. It makes use of cubic spline functions for liquid and vapor specific entropy.Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| AbsolutePressure | p | Pressure | |
| SpecificEntropy | s | Specific entropy |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | phase | Number of phases |