Abstract PsiFunction type and the concrete temperature-dependent
functions used by UNIFAC-like models.
UNIFACPsi implements , while
QuadraticPsi implements
(Dortmund and
PSRK). Both also return the first two temperature derivatives.
call psi_model%psi(systems_groups, T, psi, dpsi_dT, d2psi_dT2)
Interface subroutine for UNIFAC models temperature dependent functions
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(PsiFunction) | :: | self |
PsiFunction type variable |
|||
| class(Groups) | :: | systems_groups |
Groups type variable containig all the system’s groups. See the
|
|||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out), | optional | :: | psi(:,:) |
|
|
| real(kind=pr), | intent(out), | optional | :: | dpsi_dt(:,:) |
|
|
| real(kind=pr), | intent(out), | optional | :: | dpsi_dt2(:,:) |
|
UNIFAC functions abstract type
| procedure(temperature_dependence), public, deferred :: psi |
Quadratic-in-temperature interaction function used by group models.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public, | allocatable | :: | Aij(:,:) |
subgroup interaction coefficients [K]. |
||
| real(kind=pr), | public, | allocatable | :: | Bij(:,:) |
coefficients (dimensionless). |
||
| real(kind=pr), | public, | allocatable | :: | Cij(:,:) |
coefficients [1/K]. |
| procedure, public :: psi => Quadratic_temperature_dependence |
Implements the original UNIFAC pair factor and its
first and second temperature derivatives from the Aij matrix.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public, | allocatable | :: | Aij(:,:) |
Subgroup interaction parameters [K]. |
| procedure, public :: psi => UNIFAC_temperature_dependence |
Implementation of the QuadraticPsi function:
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(QuadraticPsi) | :: | self |
function |
|||
| class(Groups) | :: | systems_groups |
Groups in the system |
|||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out), | optional | :: | psi(:,:) |
|
|
| real(kind=pr), | intent(out), | optional | :: | dpsi_dt(:,:) |
|
|
| real(kind=pr), | intent(out), | optional | :: | dpsi_dt2(:,:) |
|
Implementation of the function of the UNIFAC model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(UNIFACPsi) | :: | self |
function |
|||
| class(Groups) | :: | systems_groups |
Groups in the system |
|||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out), | optional | :: | psi(:,:) |
|
|
| real(kind=pr), | intent(out), | optional | :: | dpsi_dt(:,:) |
|
|
| real(kind=pr), | intent(out), | optional | :: | dpsi_dt2(:,:) |
|