select_method Subroutine

public subroutine select_method(fluid, mw_source, method, characterization)

This subroutine defines the calculation method to perform the characterization,& based on the available experimental data. If the molecular weight data is experimental, define the mole fractions, molecular weights and densities directly from the input file. On the other hand, if the molecular weights are assumed, they are recalculated according to the methodology described by Martin et al and the molar fractions of the fluid are recalculated.

Arguments

Type IntentOptional Attributes Name
type(FluidData), intent(inout) :: fluid

Derived type to save inlet or experimental information of fluid to be characterized.

character(len=*), intent(in) :: mw_source

This variable indicates the source of the input data, that is, whether they are experimental or not.

character(len=*), intent(in), optional :: method

this option allows choose beetwen obtaining plus_mw or global_mw reported in the experimental information .

type(FluidDataOut), intent(inout) :: characterization

Derive type variable to save results of characterization methodology.


Called by

proc~~select_method~~CalledByGraph proc~select_method select_method proc~difference_mw_plus difference_mw_plus proc~difference_mw_plus->proc~select_method proc~get_c_or_m_plus get_c_or_m_plus proc~get_c_or_m_plus->proc~difference_mw_plus proc~characterize characterize proc~characterize->proc~get_c_or_m_plus

Variables

Type Visibility Attributes Name Initial
real(kind=pr), public, allocatable :: def_comp_moles(:)
real(kind=pr), public :: plus_moles
real(kind=pr), public, allocatable :: scn_moles(:)
real(kind=pr), public :: sum_def_comp_z_plus

compositions sum from (define component +1) to (plus component)

real(kind=pr), public :: total_moles