Quadratic-in-temperature interaction function used by group models.
Evaluates, for each pair of subgroups,
and its first and second temperature derivatives. Used by the Dortmund and PSRK UNIFAC variants.
psi_model = QuadraticPsi(Aij=A, Bij=B, Cij=C)
call psi_model%psi(systems_groups, T, psi, dpsi_dT, d2psi_dT2)
| 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]. |
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(:,:) |
|