density_ph

Computes density as a function of pressure and specific enthalpy

Syntax

d = density_ph(p, h, phase, region)

Inputs (4)

p

Type: AbsolutePressure (Pa)

Description: Pressure

h

Type: SpecificEnthalpy (J/kg)

Description: Specific enthalpy

phase

Default Value: 0

Type: FixedPhase

Description: 2 for two-phase, 1 for one-phase, 0 if not known

region

Default Value: Region

Type: Integer

Description: If 0, region is unknown, otherwise known and this input

Outputs (1)

d

Type: Density (kg/m³)

Description: Density