Non-Random-Two-Liquid model for excess Gibbs energy. The constructor is NRTL and the model extends GeModel. It uses local compositions and temperature-dependent pair interactions to represent liquid non-ideality.
model = NRTL(A, B, alpha)
call model%ln_activity_coefficient(n, T, ln_gamma)
Renon, H., and J. M. Prausnitz (1968). Local compositions in thermodynamic excess functions for liquid mixtures. AIChE Journal, 14, 135-144.
Construct an NRTL model from its interaction matrices.
Stores the (dimensionless), [K], and non-randomness matrices used by the NRTL temperature and local-composition terms.
model = NRTL(A, B, C)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | a(:,:) |
matrix |
||
| real(kind=pr), | intent(in) | :: | b(:,:) |
matrix |
||
| real(kind=pr), | intent(in) | :: | c(:,:) |
matrix |
Non-Random-Two-Liquid excess-Gibbs model.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public, | allocatable | :: | a(:,:) |
matrix |
||
| real(kind=pr), | public, | allocatable | :: | b(:,:) |
matrix [K] |
||
| real(kind=pr), | public, | allocatable | :: | c(:,:) |
non-randomness matrix |
||
| type(Substances), | public | :: | components |
Pure-component properties for the model’s component order. |
| public function init (a, b, c) | Construct an NRTL model from its interaction matrices. |
| procedure, public :: excess_Cp | |
| procedure, public :: excess_enthalpy | |
| procedure, public :: excess_entropy | |
| procedure, public :: excess_gibbs | |
| procedure, public :: ln_activity_coefficient |
Construct an NRTL model from its interaction matrices.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | a(:,:) |
matrix |
||
| real(kind=pr), | intent(in) | :: | b(:,:) |
matrix |
||
| real(kind=pr), | intent(in) | :: | c(:,:) |
matrix |
Calculate Excess Gibbs and its derivatives.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(NRTL), | 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. |