Huron-Vidal cubic mixing rule with an NRTL-HV excess-Gibbs model.
This variant evaluates the Huron-Vidal relation using the modified NRTL expression. Under the limiting parameter choices below, its attractive mixing expression reduces to the quadratic form.
mixrule = HV_NRTL(b, del1, alpha, gji0, gjiT, use_kij, kij)
call model%set_mixrule(mixrule)
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public, | allocatable | :: | bi(:) |
Pure-component covolumes [L/mol]. |
||
| real(kind=pr), | public, | allocatable | :: | del1(:) |
Pure-component cubic parameters. |
||
| logical, | public | :: | dn2 | = | .false. |
Calculate second-order mole-number derivatives |
|
| type(NRTLHV), | public | :: | ge |
NRTL-HV excess-Gibbs model. |
|||
| logical, | public | :: | is_D_ddlc | = | .false. |
Mixing rule D parameter depends on volume (density) |
|
| real(kind=pr), | public, | allocatable | :: | kij(:,:) |
Binary attractive interaction parameters. |
||
| logical, | public, | allocatable | :: | use_kij(:,:) |
Pair mask: where true, the NRTL parameters are replaced so that the rule reduces to the quadratic one with |
This is the Huron-Vidal mixing rule that includes the NRTL model modified by Huron and Vidal.
This is the Huron-Vidal mixing rule that includes the NRTL model modified by Huron and Vidal. It is a mixing rule that allows to use the NRTL model as an excess Gibbs energy model and can be simplified to the classic quadratic mixing rules when the parameters are set to:
mixrule = HV_NRTL(b, del1, alpha, gji0, gjiT, use_kij, kij)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | b(:) |
Pure-component covolumes [L/mol] |
||
| real(kind=pr), | intent(in) | :: | del1(:) |
Pure-component values |
||
| real(kind=pr), | intent(in) | :: | alpha(:,:) |
NRTL non-randomness parameters |
||
| real(kind=pr), | intent(in) | :: | gji0(:,:) |
Temperature-independent NRTL-HV energy parameters |
||
| real(kind=pr), | intent(in) | :: | gjiT(:,:) |
Temperature coefficients of the NRTL-HV energy parameters |
||
| logical, | intent(in) | :: | use_kij(:,:) |
Pairs where the quadratic-limit parameters with |
||
| real(kind=pr), | intent(in) | :: | kij(:,:) |
Binary attractive interaction parameters |
Linear mixing rule for the repulsive parameter.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(HV_NRTL), | intent(in) | :: | self |
Mixing rule object. |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Component mole amounts [mol] |
||
| 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(:,:) |
|
Mole-fraction-weighted mixture (see d1mix_rkpr).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(HV_NRTL), | 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(:,:) |
|
Huron-Vidal attractive parameter with the NRTL-HV model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(HV_NRTL), | 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 |
(not assigned) |
||
| 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(:,:) |
|