Correct one pressure root in reduced-covolume coordinates.
Updates with a bracketed Newton step, maintaining
ZETMIN and ZETMAX as the current root bounds.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | eos |
EOS used for residual pressure evaluation. |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Component mole amounts. |
||
| real(kind=pr), | intent(in) | :: | P |
Objective pressure [bar] |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out) | :: | V |
Obtained volume [L] |
||
| real(kind=pr), | intent(out) | :: | Pcalc |
Calculated pressure at V [bar] |
||
| real(kind=pr), | intent(inout) | :: | ZETA |
Current reduced covolume iterate, updated in place. |
||
| real(kind=pr), | intent(inout) | :: | ZETMIN |
Lower bound for the reduced covolume root. |
||
| real(kind=pr), | intent(inout) | :: | ZETMAX |
Upper bound for the reduced covolume root. |
||
| real(kind=pr), | intent(out) | :: | AT |
, a residual-Gibbs-like quantity used to select the stable root. |
||
| integer, | intent(out) | :: | iter |
Iterations used by the corrector. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | Ar | ||||
| real(kind=pr), | public | :: | ArV | ||||
| real(kind=pr), | public | :: | ArV2 |
Second-order intermediate quantity used by this procedure. |
|||
| real(kind=pr), | public | :: | B | ||||
| real(kind=pr), | public | :: | del | ||||
| real(kind=pr), | public | :: | der | ||||
| real(kind=pr), | public | :: | totn |
Total number of moles. |