dtofpsdt3

Inverse iteration in region 3: (d,T) = f(p,s)

Syntax

(d, T, error) = dtofpsdt3(p, s, dguess, Tguess, delp, dels)

Inputs (6)

p

Type: Pressure (Pa)

Description: Pressure

s

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

Description: Specific entropy

dguess

Type: Density (kg/m³)

Description: Guess density, e.g., from adjacent volume

Tguess

Type: Temperature (K)

Description: Guess temperature, e.g., from adjacent volume

delp

Type: Pressure (Pa)

Description: Iteration accuracy

dels

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

Description: Iteration accuracy

Outputs (3)

d

Type: Density (kg/m³)

Description: Density

T

Type: Temperature (K)

Description: Temperature (K)

error

Type: Integer

Description: Error flag: iteration failed if different from 0