Attractive parameter mixing rule with cubic mix.
Takes the all the pure components attractive parameters and their derivatives with respect to temperature and mix them with the cubic (three-body) mixing rule:
Inside the routine the matrix is calculated using the
procedure contained in the CMR object, this procedures defaults
to the common combining rule:
The combining rule can be replaced by extending CMR and rebinding
aijk to a procedure with the same arguments as kijk_constant:
type, extends(CMR) :: MyCMR
contains
procedure :: aijk => my_aijk
end type MyCMR
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CMR), | intent(in) | :: | self |
Mixing rule object. |
||
| 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) | :: | ai(:) |
Pure components attractive parameters |
||
| real(kind=pr), | intent(in) | :: | daidt(:) |
|
||
| real(kind=pr), | intent(in) | :: | daidt2(:) |
|
||
| 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), | private | :: | a(size(ai),size(ai),size(ai)) | ||||
| real(kind=pr), | private | :: | dadt(size(ai),size(ai),size(ai)) | ||||
| real(kind=pr), | private | :: | dadt2(size(ai),size(ai),size(ai)) | ||||
| integer, | private | :: | i |
Loop index |
|||
| integer, | private | :: | j |
Loop index |
|||
| integer, | private | :: | nc |
Number of components. |