Huron-Vidal modification of the NRTL model for excess Gibbs energy.
Huron-Vidal modified the NRTL model, including the covolume parameter into the model. This helps when running the model coupled with a cubic equation of state, because it can be reduced to the classical quadratic mixing rules when its parameters are defined accordingly.
It uses the temperature function:
There is no custom constructor; use the default structure
constructor. Energy parameters must be in the units of
(R in bar L / (mol K)).
ge = NRTLHV(b=b, alpha=alpha, gji0=gji0, gjiT=gjiT)
Huron, M.-J., and J. Vidal (1979). Fluid Phase Equilibria, 3, 255-271.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public, | allocatable | :: | alpha(:,:) |
matrix |
||
| real(kind=pr), | public, | allocatable | :: | b(:) |
Covolume parameter |
||
| type(Substances), | public | :: | components |
Pure-component properties for the model’s component order. |
|||
| real(kind=pr), | public, | allocatable | :: | gji0(:,:) |
matrix |
||
| real(kind=pr), | public, | allocatable | :: | gjiT(:,:) |
matrix |
Calculate Excess heat capacity.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(GeModel), | intent(in) | :: | self |
Model |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Moles vector |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out) | :: | Cpe |
Excess heat capacity [bar L / K] |
Calculate Excess enthalpy and its derivatives.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(GeModel), | intent(in) | :: | self |
Model |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Moles vector |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out), | optional | :: | He |
Excess enthalpy |
|
| real(kind=pr), | intent(out), | optional | :: | HeT |
|
|
| real(kind=pr), | intent(out), | optional | :: | Hen(:) |
|
Calculate Excess entropy and its derivatives.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(GeModel), | intent(in) | :: | self |
Model |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Moles vector |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out), | optional | :: | Se |
Excess entropy |
|
| real(kind=pr), | intent(out), | optional | :: | SeT |
|
|
| real(kind=pr), | intent(out), | optional | :: | Sen(:) |
|
Calculate Excess Gibbs and its derivatives.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(NRTLHV), | intent(in) | :: | self |
Model |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Moles vector |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out), | optional | :: | Ge |
Excess Gibbs free energy |
|
| real(kind=pr), | intent(out), | optional | :: | GeT |
|
|
| real(kind=pr), | intent(out), | optional | :: | GeT2 |
|
|
| real(kind=pr), | intent(out), | optional | :: | Gen(size(n)) |
|
|
| real(kind=pr), | intent(out), | optional | :: | GeTn(size(n)) |
Mixed temperature-mole-number derivative. |
|
| real(kind=pr), | intent(out), | optional | :: | Gen2(size(n),size(n)) |
Hessian with respect to mole amounts. |
Calculate natural logarithm of activity coefficients.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(GeModel), | intent(in) | :: | self |
Model |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Moles vector |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out), | optional | :: | lngamma(:) |
Natural logarithm of activity coefficients |
|
| real(kind=pr), | intent(out), | optional | :: | dlngammadT(size(n)) |
|
|
| real(kind=pr), | intent(out), | optional | :: | dlngammadn(size(n),size(n)) |
|