Calculate the QMR covolume and its first and second mole derivatives.
Forms pair covolumes and evaluates . The derivatives are returned with respect to the component mole amounts.
call bmix_qmr(n, bi, lij, B, dBdn, d2Bdn2)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | n(:) |
Component mole amounts. |
||
| real(kind=pr), | intent(in) | :: | bi(:) |
Pure-component covolumes. |
||
| real(kind=pr), | intent(in) | :: | lij(:,:) |
Repulsive binary interaction matrix. |
||
| real(kind=pr), | intent(out) | :: | b |
Mixture covolume. |
||
| real(kind=pr), | intent(out) | :: | dbi(:) |
Mole-number gradient of the mixture covolume. |
||
| real(kind=pr), | intent(out) | :: | dbij(:,:) |
Mole-number Hessian of the mixture covolume. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | aux(size(n)) |
Intermediate accumulator. |
|||
| real(kind=pr), | public | :: | bij(size(n),size(n)) | ||||
| integer, | public | :: | i |
Loop index |
|||
| integer, | public | :: | j |
Loop index |
|||
| integer, | public | :: | nc |
Number of components. |
|||
| real(kind=pr), | public | :: | totn |
Total number of moles. |