getPhase_ps

Number of phases by pressure and entropy

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 entropy. It makes use of cubic spline functions for liquid and vapor specific entropy.

Syntax

phase = getPhase_ps(p, s)

Inputs (2)

p

Type: AbsolutePressure (Pa)

Description: Pressure

s

Type: SpecificEntropy (J/(kg·K))

Description: Specific entropy

Outputs (1)

phase

Type: Integer

Description: Number of phases