Evaluate the SRK/PR-family residual Helmholtz expression and derivatives.
Combines residual Helmholtz contributions and requested derivatives for the legacy cubic-model selectors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nc |
Number of components |
||
| integer, | intent(in) | :: | nd |
Compositional derivatives |
||
| integer, | intent(in) | :: | nt |
Temperature derivatives |
||
| real(kind=pr), | intent(in) | :: | rn(nc) |
Number of moles |
||
| real(kind=pr), | intent(in) | :: | v |
Volume [L] |
||
| real(kind=pr), | intent(in) | :: | t |
Temperature [K] |
||
| real(kind=pr), | intent(out) | :: | ar |
Residual Helmholtz |
||
| real(kind=pr), | intent(out) | :: | arv |
dAr/dV |
||
| real(kind=pr), | intent(out) | :: | artv |
dAr2/dTV |
||
| real(kind=pr), | intent(out) | :: | arv2 |
dAr2/dV2 |
||
| real(kind=pr), | intent(out) | :: | Arn(nc) |
dAr/dn |
||
| real(kind=pr), | intent(out) | :: | ArVn(nc) |
dAr2/dVn |
||
| real(kind=pr), | intent(out) | :: | ArTn(nc) |
dAr2/dTn |
||
| real(kind=pr), | intent(out) | :: | Arn2(nc,nc) |
dAr2/dn2 |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | AUX | ||||
| real(kind=pr), | public | :: | ArT | ||||
| real(kind=pr), | public | :: | ArTT | ||||
| real(kind=pr), | public | :: | Bmix |
Mixture covolume. |
|||
| real(kind=pr), | public | :: | D |
Attractive mixture parameter. |
|||
| real(kind=pr), | public | :: | FFB | ||||
| real(kind=pr), | public | :: | FFBB | ||||
| real(kind=pr), | public | :: | FFBV | ||||
| real(kind=pr), | public | :: | a | ||||
| real(kind=pr), | public | :: | b_v | ||||
| real(kind=pr), | public | :: | d1 | ||||
| real(kind=pr), | public | :: | d2 | ||||
| real(kind=pr), | public | :: | dBi(nc) |
Mole-number gradient of the mixture covolume. |
|||
| real(kind=pr), | public | :: | dBij(nc,nc) |
Mole-number Hessian of the mixture covolume. |
|||
| real(kind=pr), | public | :: | dDdT |
Temperature derivative of the attractive mixture parameter. |
|||
| real(kind=pr), | public | :: | dDdT2 |
Second temperature derivative of the attractive mixture parameter. |
|||
| real(kind=pr), | public | :: | dDi(nc) |
Mole-number gradient of the attractive mixture parameter. |
|||
| real(kind=pr), | public | :: | dDiT(nc) | ||||
| real(kind=pr), | public | :: | dDij(nc,nc) |
Mole-number Hessian of the attractive mixture parameter. |
|||
| real(kind=pr), | public | :: | f | ||||
| real(kind=pr), | public | :: | fB | ||||
| real(kind=pr), | public | :: | fv | ||||
| real(kind=pr), | public | :: | fv2 | ||||
| real(kind=pr), | public | :: | g | ||||
| real(kind=pr), | public | :: | gv | ||||
| real(kind=pr), | public | :: | gv2 | ||||
| integer, | public | :: | i |
Loop index |
|||
| integer, | public | :: | j |
Loop index |
|||
| real(kind=pr), | public | :: | totn |