Solve saturation equations using log phase volumes and temperature.
Undamped Newton correction of the saturation_F system, with unknowns
. Pressure is an unknown
tied to the incipient-phase pressure, and phase pressure equality is
one of the residuals.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | model |
EOS used for phase properties. |
||
| real(kind=pr), | intent(in) | :: | z(:) |
Feed composition. |
||
| real(kind=pr), | intent(inout) | :: | X(:) |
Initial unknown vector; corrected state on return. |
||
| integer, | intent(in) | :: | ns |
Index of the specified variable. |
||
| real(kind=pr), | intent(in) | :: | S |
Specification value in solver coordinates. |
||
| real(kind=pr), | intent(in) | :: | tol |
Residual tolerance. |
||
| integer, | intent(in) | :: | max_iterations |
Maximum Newton iterations. |
||
| integer, | intent(out) | :: | its |
Iterations used. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | F(size(X)) |
Residual or scalar equation value. |
|||
| real(kind=pr), | public | :: | Xold(size(X)) | ||||
| real(kind=pr), | public | :: | dF(size(X),size(X)) | ||||
| real(kind=pr), | public | :: | dFdS(size(X)) | ||||
| real(kind=pr), | public | :: | dPdVy |
Pressure derivative with respect to the incipient-phase volume. |
|||
| real(kind=pr), | public | :: | dPdVz |
Pressure derivative with respect to the feed-phase volume. |
|||
| real(kind=pr), | public | :: | dx(size(X)) | ||||
| real(kind=pr), | public | :: | dx_old(size(x)) | ||||
| integer, | public | :: | nc |
Number of components. |