functiondtofpsOnePhase

Inverse iteration in one phase region (d,T) = f(p,s)

Extends from Modelica.Icons.Function (Icon for functions).

Information

For the calculation of density and temperature from pressure and specific entropy, there is always a fairly good starting guess available form the adjacent CV, so e.g. the values in the downstream connector are very good guesses. Giving these as starting values for the iteration should always converge quickly. (Possible exception: when on the other side of a phase boundary)

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.Pressureppressure
Modelica.Units.SI.SpecificEntropysspecific entropy
Modelica.Units.SI.Pressuredelpiteration accuracy
Modelica.Units.SI.SpecificEntropydelsiteration accuracy

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.Densityddensity
Modelica.Units.SI.TemperatureTtemperature (K)
Integererrorerror flag: trouble if different from 0
Integeri