dtofph3

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

Syntax

(d, T, error) = dtofph3(p, h, delp, delh)

Inputs (4)

p

Type: Pressure (Pa)

Description: Pressure

h

Type: SpecificEnthalpy (J/kg)

Description: Specific enthalpy

delp

Type: Pressure (Pa)

Description: Iteration accuracy

delh

Type: SpecificEnthalpy (J/kg)

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