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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Pressure | p | pressure | |
| Modelica.Units.SI.SpecificEntropy | s | specific entropy | |
| Modelica.Units.SI.Pressure | delp | iteration accuracy | |
| Modelica.Units.SI.SpecificEntropy | dels | iteration accuracy |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Density | d | density | |
| Modelica.Units.SI.Temperature | T | temperature (K) | |
| Integer | error | error flag: trouble if different from 0 | |
| Integer | i |