group contribution model parameters container
Type to represent a UNIFAC like models parameters. The type must be
provided with the subgroups ids, maingroups ids, subgroups Rs,
subgroups Qs, subgroups maingroups, and maingroups interaction
parameters. Specifically, the type requires , , and
for the maingroups interaction parameters. In the case of
the classic UNIFAC model that only requires parameters, the
and must be set as null matrixes.
The documentation and source code of yaeos
UNIFACParameters
function could be consulted to understand how to instantiate a
GeGCModelParameters object with the classic liquid-vapor UNIFAC
parameters defined in DDBST.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=pr), | public, | allocatable | :: | maingroups_aij(:,:) |
Maingroup interaction parameters matrix |
||
real(kind=pr), | public, | allocatable | :: | maingroups_bij(:,:) |
Maingroup interaction parameters matrix |
||
real(kind=pr), | public, | allocatable | :: | maingroups_cij(:,:) |
Maingroup interaction parameters matrix |
||
integer, | public, | allocatable | :: | maingroups_ids(:) |
ID of each model’s maingroup |
||
real(kind=pr), | public, | allocatable | :: | subgroups_Qs(:) |
value of each subgroup |
||
real(kind=pr), | public, | allocatable | :: | subgroups_Rs(:) |
value of each subgroup |
||
integer, | public, | allocatable | :: | subgroups_ids(:) |
ID of each model’s subgroup |
||
integer, | public, | allocatable | :: | subgroups_maingroups(:) |
Maingroup of each subgroup |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters), | intent(in) | :: | self |
Get index of the maingoup with id: maingoup_id
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | maingroup_id |
ID of the subgroup |
Index of the maingroup on the self%maingroups_ids
vector
Get the interaction parameter
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | maingroup_i_id |
ID of the maingroup |
||
integer, | intent(in) | :: | maingroup_j_id |
ID of the maingroup |
Interaction parameter
Get the interaction parameter
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | maingroup_i_id |
ID of the maingroup |
||
integer, | intent(in) | :: | maingroup_j_id |
ID of the maingroup |
Interaction parameter
Get the interaction parameter
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | maingroup_i_id |
ID of the maingroup |
||
integer, | intent(in) | :: | maingroup_j_id |
ID of the maingroup |
Interaction parameter
Get the subgroup’s value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | subgroup_id |
ID of the subgroup |
value of the subgroup
Get the subgroup’s value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | subgroup_id |
ID of the subgroup |
value of the subgroup
Get index of the subgroup with id: subgroup_id
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | subgroup_id |
ID of the subgroup |
Index of the subgroup on the self%subgroups_ids
vector
Get the subgroup’s maingroup
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | subgroup_id |
ID of the subgroup |
Maingroup of the subgroup
Get the interaction parameter
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | subgroup_i_id |
ID of the subgroup |
||
integer, | intent(in) | :: | subgroup_j_id |
ID of the subgroup |
Interaction parameter
Get the interaction parameter
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | subgroup_i_id |
ID of the subgroup |
||
integer, | intent(in) | :: | subgroup_j_id |
ID of the subgroup |
Interaction parameter
Get the interaction parameter
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | subgroup_i_id |
ID of the subgroup |
||
integer, | intent(in) | :: | subgroup_j_id |
ID of the subgroup |
Interaction parameter