phase_ps

Phase as a function of pressure and specific entropy

Syntax

phase = phase_ps(p, s)

Inputs (2)

p

Type: Pressure (Pa)

Description: Pressure

s

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

Description: Specific entropy

Outputs (1)

phase

Type: Integer

Description: True if in liquid or gas or supercritical region