Three-component combining rules for cubic equations of state.
CMR combines pure-component parameters and ternary interaction
coefficients. CMRTD adds temperature dependence to its attractive
interaction parameters. These types implement the CubicMixRule API.
rule = CMR(k=kijk, l=l3)
call model%set_mixrule(rule)
Combining rule for the attractive parameter.
From previously calculated attractive parameters calculate the tensor and its corresponding derivatives.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CMR), | intent(in) | :: | self |
Mixing rule object. |
||
| 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) | :: | a(:,:) |
values |
||
| real(kind=pr), | intent(out) | :: | dadt(:,:) |
|
||
| real(kind=pr), | intent(out) | :: | dadt2(:,:) |
|
Cubic mixing rule with ternary component interactions.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| 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 ternary interaction parameters |
||
| real(kind=pr), | public, | allocatable | :: | l(:,:,:) |
Repulsive ternary interaction parameters |
| procedure, public :: Bmix | Repulsive parameter mixing rule |
| procedure, public :: D1mix => RKPR_D1mix | |
| procedure, public :: Dmix | Attractive parameter mixing rule |
| procedure, public :: aijk => kijk_constant | Default attractive parameter combining rule |
Cubic mixing rule with temperature-dependent ternary interactions.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public, | allocatable | :: | Tref(:,:,:) |
Reference temperatures for component triplets [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 ternary interaction parameters |
||
| real(kind=pr), | public, | allocatable | :: | k0(:,:,:) |
Temperature-dependent ternary interaction amplitudes. |
||
| real(kind=pr), | public, | allocatable | :: | l(:,:,:) |
Repulsive ternary interaction parameters |
| procedure, public :: Bmix | Repulsive parameter mixing rule |
| procedure, public :: D1mix => RKPR_D1mix | |
| procedure, public :: Dmix | Attractive parameter mixing rule |
| procedure, public :: aijk => kijk_exp_tdep |
Combining rule that uses as a function of temperature.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CMRTD), | intent(in) | :: | self |
Mixing rule object. |
||
| 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) | :: | a(:,:,:) |
Matrix |
||
| real(kind=pr), | intent(out) | :: | dadt(:,:,:) |
|
||
| real(kind=pr), | intent(out) | :: | dadt2(:,:,:) |
|
Mixture repulsive parameter.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CMR), | intent(in) | :: | self |
Mixing rule object. |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Moles vector. |
||
| real(kind=pr), | intent(in) | :: | bi(:) |
Pure-component covolumes [L/mol] |
||
| real(kind=pr), | intent(out) | :: | B |
Mixture covolume [L] |
||
| real(kind=pr), | intent(out) | :: | dBi(:) |
|
||
| real(kind=pr), | intent(out) | :: | dBij(:,:) |
|
Attractive parameter mixing rule with cubic mix.
| 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(:,:) |
|
RKPR parameter mixing rule.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CMR), | intent(in) | :: | self |
Mixing rule object. |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Component mole amounts [mol] |
||
| real(kind=pr), | intent(in) | :: | d1i(:) |
Pure-component values |
||
| real(kind=pr), | intent(out) | :: | D1 |
Mixture |
||
| real(kind=pr), | intent(out) | :: | dD1i(:) |
|
||
| real(kind=pr), | intent(out) | :: | dD1ij(:,:) |
|
Combining rule that uses constant values.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CMR), | intent(in) | :: | self |
Mixing rule object. |
||
| 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) | :: | a(:,:,:) |
Matrix |
||
| real(kind=pr), | intent(out) | :: | dadt(:,:,:) |
|
||
| real(kind=pr), | intent(out) | :: | dadt2(:,:,:) |
|