phase_ph

Phase as a function of pressure and specific enthalpy

Syntax

phase = phase_ph(p, h)

Inputs (2)

p

Type: Pressure (Pa)

Description: Pressure

h

Type: SpecificEnthalpy (J/kg)

Description: Specific enthalpy

Outputs (1)

phase

Type: Integer

Description: True if in liquid or gas or supercritical region