get_subgroup_index Function

public function get_subgroup_index(self, subgroup_id) result(subgroup_idx)

get_subgroup_index

Get index of the subgroup with id: subgroup_id

Description

Get index of the subgroup with id: subgroup_id. Gets the index of the subgroup in the self%subgroups_ids vector.

Examples

 use yaeos__models_ge_group_contribution_unifac_parameters, only: UNIFACParameters
 use yaeos__models_ge_group_contribution_model_parameters, only: GeGCModelParameters

 type(GeGCModelParameters) :: parameters

 ! Default parameters of UNIFAC (ddbst)
 parameters = UNIFACParameters()

 ! Get index of the subgroup with id 178 (IMIDAZOL)
 print *, parameters%get_subgroup_index(178) ! Will print: 112

References

  1. Dortmund Data Bank Software & Separation Technology

Type Bound

GeGCModelParameters

Arguments

Type IntentOptional Attributes Name
class(GeGCModelParameters) :: self
integer, intent(in) :: subgroup_id

ID of the subgroup

Return Value integer

Index of the subgroup on the self%subgroups_ids vector