Calculate the reduced residual Helmholtz Energy and it’s derivatives with the RKPR EOS
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nco |
Number of components in the mixture. |
||
| integer, | intent(in) | :: | NDE |
Compositional derivative order; |
||
| integer, | intent(in) | :: | NTD |
Flag selecting temperature-dependent derivative calculations. |
||
| real(kind=pr), | intent(in) | :: | rn(nco) |
Component mole amounts used in mixture rules. |
||
| 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) | :: | Arn(nco) |
Mole-number gradient of residual Helmholtz energy. |
||
| real(kind=pr), | intent(out) | :: | ArVn(nco) |
Mixed volume/mole-number derivative of residual Helmholtz energy. |
||
| real(kind=pr), | intent(out) | :: | ArTn(nco) |
Mixed temperature/mole-number derivative of residual Helmholtz energy. |
||
| real(kind=pr), | intent(out) | :: | Arn2(nco,nco) |
Mole-number Hessian of residual Helmholtz energy. |
| 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 | :: | D1 | ||||
| real(kind=pr), | public | :: | D2 | ||||
| real(kind=pr), | public | :: | FFB | ||||
| real(kind=pr), | public | :: | FFBB | ||||
| real(kind=pr), | public | :: | FFBV | ||||
| real(kind=pr), | public | :: | auxD2 | ||||
| real(kind=pr), | public | :: | dBi(nco) |
Mole-number gradient of the mixture covolume. |
|||
| real(kind=pr), | public | :: | dBij(nco,nco) |
Mole-number Hessian of the mixture covolume. |
|||
| real(kind=pr), | public | :: | dD1i(nco) |
Mole-number gradient of the cubic denominator parameter. |
|||
| real(kind=pr), | public | :: | dD1ij(nco,nco) |
Mole-number Hessian of the cubic denominator parameter. |
|||
| 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(nco) |
Mole-number gradient of the attractive mixture parameter. |
|||
| real(kind=pr), | public | :: | dDiT(nco) | ||||
| real(kind=pr), | public | :: | dDij(nco,nco) |
Mole-number Hessian of the attractive mixture parameter. |
|||
| real(kind=pr), | public | :: | f | ||||
| real(kind=pr), | public | :: | fB | ||||
| real(kind=pr), | public | :: | fBD1 | ||||
| real(kind=pr), | public | :: | fD1 | ||||
| real(kind=pr), | public | :: | fD1D1 | ||||
| real(kind=pr), | public | :: | fVD1 | ||||
| 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 |
Total number of moles. |