functiondensity_ph
Density as function of pressure and specific enthalpy
Extends from Modelica.Icons.Function.
Information
This function calculates the density of R245fa from the state variables p (absolute pressure) and h (specific enthalpy). The density is modelled by the fundamental equation of state of Lemmon (2006).
d-Diagram-R245fa.png)
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| AbsolutePressure | p | pressure | |
| SpecificEnthalpy | h | specific enthalpy | |
| Integer | phase | 0 | 2 for two-phase, 1 for one-phase, 0 if not known |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Density | d | density |