density_phX

Return density from p, h, and X or Xi

Syntax

d = density_phX(p, h, X, phase)

Inputs (4)

p

Type: AbsolutePressure (Pa)

Description: Pressure

h

Type: SpecificEnthalpy (J/kg)

Description: Specific enthalpy

X

Type: MassFraction[:] (kg/kg)

Description: Mass fractions

phase

Default Value: 0

Type: FixedPhase

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

Outputs (1)

d

Type: Density (kg/m³)

Description: Density