Dispatch the configured legacy residual Helmholtz implementation.
Selects the active residual Helmholtz callback through ar_fun and
returns the requested residual energy derivatives. NDER and NTEMP
control the derivative sets supported by the selected implementation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nc |
Number of active components. |
||
| integer, | intent(in) | :: | nder |
Get compositional derivatives |
||
| integer, | intent(in) | :: | ntemp |
Get temperature derivatives |
||
| real(kind=pr), | intent(in) | :: | z(nc) |
Component mole amounts/composition vector. |
||
| real(kind=pr), | intent(in) | :: | V |
Total volume [L]. |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K]. |
||
| real(kind=pr), | intent(out) | :: | ar |
Residual Helmholtz energy. |
||
| real(kind=pr), | intent(out) | :: | arv |
First volume derivative of residual Helmholtz energy. |
||
| real(kind=pr), | intent(out) | :: | artv |
Mixed volume-temperature derivative of residual Helmholtz energy. |
||
| real(kind=pr), | intent(out) | :: | arv2 |
Second volume derivative of residual Helmholtz energy. |
||
| real(kind=pr), | intent(out), | dimension(size(z)) | :: | Arn |
Composition gradient of residual Helmholtz energy. |
|
| real(kind=pr), | intent(out), | dimension(size(z)) | :: | ArVn |
Mixed volume-composition derivatives. |
|
| real(kind=pr), | intent(out), | dimension(size(z)) | :: | ArTn |
Mixed temperature-composition derivatives. |
|
| real(kind=pr), | intent(out) | :: | Arn2(size(z),size(z)) |
Composition Hessian of residual Helmholtz energy. |