getPhase_ph

Number of phases by pressure and specific enthalpy

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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.

Syntax

phase = getPhase_ph(p, h)

Inputs (2)

p

Type: AbsolutePressure (Pa)

Description: Pressure

h

Type: SpecificEnthalpy (J/kg)

Description: Specific enthalpy

Outputs (1)

phase

Type: Integer

Description: Number of phases