temperature_psX

Return temperature from p, s, and X or Xi

Syntax

T = temperature_psX(p, s, X, phase)

Inputs (4)

p

Type: AbsolutePressure (Pa)

Description: Pressure

s

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

Description: Specific entropy

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)

T

Type: Temperature (K)

Description: Temperature