Evaluate the ternary cubic repulsive mixture parameter and derivatives.
Contracts the ternary covolume tensor with component mole amounts and returns the mixture value, gradient, and Hessian.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | n(:) |
Component mole amounts [mol] |
||
| real(kind=pr), | intent(in) | :: | bijk(:,:,:) |
Ternary covolume tensor [L/mol] |
||
| real(kind=pr), | intent(out) | :: | Bmix |
[L] |
||
| real(kind=pr), | intent(out) | :: | dBi(:) |
|
||
| real(kind=pr), | intent(out) | :: | dBij(:,:) |
|
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | aux(size(n)) |
Intermediate accumulator. |
|||
| real(kind=pr), | public | :: | auxij(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 | :: | sqn |
totn^2 |
|||
| real(kind=pr), | public | :: | totn |
Total number of moles |