get_subgroup_R Function

public function get_subgroup_R(self, subgroup_id) result(subgroup_R)

get_subgroup_R

Get the subgroup’s value

Description

Uses the self%subgroups_Rs attribute to locate the subgroup value.

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 subgroup, with id 1 (CH3), R value
 print *, parameters%get_subgroup_R(1) ! Will print: 0.9011

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 real(kind=pr)

value of the subgroup


Variables

Type Visibility Attributes Name Initial
integer, public :: subgroup_idx