get_subgroup_maingroup Function

public function get_subgroup_maingroup(self, subgroup_id) result(subgroup_maingroup)

get_subgroup_maingroup

Get the subgroup’s maingroup

Description

Uses the self%subgroups_maingroups attribute to locate the maingroup where the subgroup with id subgroup_id belongs

Examples

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

 type(GeGCModelParameters) :: parameters

 parameters = UNIFACParameters()

 ! Get the maingroup of the subgroup with id 16 (H2O)
 print *, parameters%get_subgroup_maingroup(16) ! Will print: 7

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

Maingroup of the subgroup


Calls

proc~~get_subgroup_maingroup~~CallsGraph proc~get_subgroup_maingroup GeGCModelParameters%get_subgroup_maingroup proc~get_subgroup_index GeGCModelParameters%get_subgroup_index proc~get_subgroup_maingroup->proc~get_subgroup_index

Called by

proc~~get_subgroup_maingroup~~CalledByGraph proc~get_subgroup_maingroup GeGCModelParameters%get_subgroup_maingroup proc~get_subgroups_aij GeGCModelParameters%get_subgroups_aij proc~get_subgroups_aij->proc~get_subgroup_maingroup proc~get_subgroups_bij GeGCModelParameters%get_subgroups_bij proc~get_subgroups_bij->proc~get_subgroup_maingroup proc~get_subgroups_cij GeGCModelParameters%get_subgroups_cij proc~get_subgroups_cij->proc~get_subgroup_maingroup proc~setup_dortmund setup_dortmund proc~setup_dortmund->proc~get_subgroups_aij proc~setup_dortmund->proc~get_subgroups_bij proc~setup_dortmund->proc~get_subgroups_cij proc~setup_unifac setup_unifac proc~setup_dortmund->proc~setup_unifac proc~setup_psrk setup_psrk proc~setup_psrk->proc~get_subgroups_aij proc~setup_psrk->proc~get_subgroups_bij proc~setup_psrk->proc~get_subgroups_cij proc~setup_psrk->proc~setup_unifac proc~setup_unifac->proc~get_subgroups_aij proc~psrk PSRK proc~psrk->proc~setup_psrk

Variables

Type Visibility Attributes Name Initial
integer, public :: subgroup_idx