Calculation of saturation pressure of a pure component. Liquid and
vapor volumes are initialized at 100 bar and 0.001 bar, then
solve_point_psat applies Newton iterations at fixed temperature.
The returned value is the pressure evaluated at the converged liquid
volume [bar].
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | eos |
Model that will be used |
||
| integer, | intent(in) | :: | ncomp |
Number of component in the mixture from which the saturation pressure will be calculated |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out) | :: | Vl |
Liquid volume [L] |
||
| real(kind=pr), | intent(out) | :: | Vv |
Vapor volume [L] |
||
| logical, | intent(out), | optional | :: | converged |
The calculation converged |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | private | :: | F(3) |
Residual or scalar equation value. |
|||
| real(kind=pr), | private | :: | Pc(size(eos)) | ||||
| real(kind=pr), | private | :: | S | ||||
| real(kind=pr), | private | :: | X(3) |
Variables |
|||
| real(kind=pr), | private | :: | dF(3,3) | ||||
| integer, | private | :: | its |
Iteration count. |
|||
| real(kind=pr), | private | :: | n(size(eos)) |
Mole numbers selecting the pure component [mol] |
|||
| integer, | private, | parameter | :: | ns | = | 3 |