Evaluate the ternary cubic attractive mixture parameter and derivatives.
, with its temperature and composition derivatives. Volume derivatives are returned as zero.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | n(:) |
Moles vector [mol] |
||
| real(kind=pr), | intent(in) | :: | V |
Volume [L] (unused) |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(in) | :: | a(:,:,:) |
tensor (see |
||
| real(kind=pr), | intent(in) | :: | dadt(:,:,:) |
|
||
| real(kind=pr), | intent(in) | :: | dadt2(:,:,:) |
|
||
| real(kind=pr), | intent(out) | :: | D |
Mixture attractive parameter |
||
| real(kind=pr), | intent(out) | :: | dDdV |
(zero) |
||
| real(kind=pr), | intent(out) | :: | dDdT |
|
||
| real(kind=pr), | intent(out) | :: | dDdV2 |
|
||
| real(kind=pr), | intent(out) | :: | dDdT2 |
|
||
| real(kind=pr), | intent(out) | :: | dDi(:) |
|
||
| real(kind=pr), | intent(out) | :: | dDdTV |
|
||
| real(kind=pr), | intent(out) | :: | dDidV(:) |
|
||
| real(kind=pr), | intent(out) | :: | dDidT(:) |
|
||
| real(kind=pr), | intent(out) | :: | dDij(:,:) |
|
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | aijk(size(n),size(n),size(n)) | ||||
| real(kind=pr), | public | :: | aux(size(n)) |
Intermediate accumulator. |
|||
| real(kind=pr), | public | :: | auxT(size(n)) | ||||
| real(kind=pr), | public | :: | auxT2(size(n)) |
Second-order intermediate quantity used by this procedure. |
|||
| real(kind=pr), | public | :: | auxT2ij(size(n),size(n)) | ||||
| real(kind=pr), | public | :: | auxTij(size(n),size(n)) | ||||
| real(kind=pr), | public | :: | auxij(size(n),size(n)) | ||||
| real(kind=pr), | public | :: | cum | ||||
| real(kind=pr), | public | :: | daijkdT(size(n),size(n),size(n)) | ||||
| real(kind=pr), | public | :: | daijkdT2(size(n),size(n),size(n)) | ||||
| integer, | public | :: | i |
Loop index |
|||
| integer, | public | :: | j |
Loop index |
|||
| integer, | public | :: | k |
Loop index |
|||
| integer, | public | :: | nc |
Number of components. |
|||
| real(kind=pr), | public | :: | totn |
Total number of moles. |