Implementation of the s-DDLC mixing rule, in which the attractive parameter depends on density, temperature, and composition through local-composition segment fractions. This model extends the temperature-dependent quadratic mixing rule with segment-size data and volume-dependent local compositions.
rule = sDDLC(k=k, k0=k0, tref=tref, l=l, q=q)
call model%set_mixrule(rule)
Create a segmented density-dependent local-composition mixing rule.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | k(:,:) |
interaction matrix |
||
| real(kind=pr), | intent(in) | :: | k0(:,:) |
matrix |
||
| real(kind=pr), | intent(in) | :: | tref(:,:) |
Reference-temperature matrix [K] |
||
| real(kind=pr), | intent(in) | :: | l(:,:) |
matrix |
||
| real(kind=pr), | intent(in) | :: | q(:) |
Segment sizes |
Segmented density-dependent local-composition mixing rule.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public, | allocatable | :: | Tref(:,:) |
Pair-specific reference temperatures [K]. |
||
| logical, | public | :: | dn2 | = | .false. |
Calculate second-order mole-number derivatives |
|
| logical, | public | :: | is_D_ddlc | = | .false. |
Mixing rule D parameter depends on volume (density) |
|
| real(kind=pr), | public, | allocatable | :: | k(:,:) |
Attractive Binary Interaction parameter matrix |
||
| real(kind=pr), | public, | allocatable | :: | k0(:,:) |
Temperature-dependent interaction amplitudes. |
||
| real(kind=pr), | public, | allocatable | :: | l(:,:) |
Repulsive Binary Interaction parameter matrix |
||
| real(kind=pr), | public, | allocatable | :: | q(:) |
Pure-component segment sizes |
| public function init_sddlc (k, k0, tref, l, q) | Create a segmented density-dependent local-composition mixing rule. |
| procedure, public :: Bmix | Repulsive parameter mixing rule |
| procedure, public :: D1mix => RKPR_D1mix | |
| procedure, public :: Dmix => ddlc_Dmix | |
| procedure, public :: aij => kij_exp_tdep |
Create a segmented density-dependent local-composition mixing rule.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | k(:,:) |
interaction matrix |
||
| real(kind=pr), | intent(in) | :: | k0(:,:) |
matrix |
||
| real(kind=pr), | intent(in) | :: | tref(:,:) |
Reference-temperature matrix [K] |
||
| real(kind=pr), | intent(in) | :: | l(:,:) |
matrix |
||
| real(kind=pr), | intent(in) | :: | q(:) |
Segment sizes |
s-DDLC D mixing rule including V, n, and T derivatives.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(sDDLC), | intent(in) | :: | self |
Mixing rule object. |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Component mole amounts [mol] |
||
| real(kind=pr), | intent(in) | :: | V |
Total volume [L] |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(in) | :: | ai(:) |
Pure-component attractive parameters |
||
| real(kind=pr), | intent(in) | :: | daidt(:) |
|
||
| real(kind=pr), | intent(in) | :: | daidt2(:) |
|
||
| real(kind=pr), | intent(out) | :: | D |
Mixture attractive parameter [bar L^2] |
||
| real(kind=pr), | intent(out) | :: | dDdV |
|
||
| 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(:,:) |
|