This module reads the fluid information from the corresponding input file.
This funtion allows to obtain experimental data from data imput
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | file | 
 file name  | 
        
This routine obtains the mass fractions of the fluid’s compounds from the input file, additionally, it calculates the product
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | file | 
 file name  | 
        ||
| real(kind=pr), | intent(out), | allocatable | :: | w(:) | 
 mass fractions of the fluid’s compounds  | 
        |
| real(kind=pr), | intent(out), | allocatable | :: | product_z_mw_def_comp(:) | 
 product between composition and molecular weight of defind components  | 
        |
| real(kind=pr), | intent(out), | allocatable | :: | product_z_mw_scn(:) | 
 product between composition and molecular weight of scn fractions  | 
        |
| real(kind=pr), | intent(out) | :: | sum_z_mw_i | 
 sum of the product between composition and molecular weight of the fluid’s compounds  | 
        ||
| real(kind=pr), | intent(out) | :: | product_z_mw_plus | 
 product between composition and molecular weight of residual fraction  | 
        ||
| real(kind=pr), | intent(out), | allocatable | :: | def_comp_w(:) | ||
| real(kind=pr), | intent(out), | allocatable | :: | scn_w(:) | ||
| real(kind=pr), | intent(out) | :: | plus_w | 
Reads the component names data from input file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | file | 
 file name  | 
        ||
| character(len=15), | intent(out), | allocatable | :: | def_components(:) | 
 names of defined components  | 
        |
| integer, | intent(out), | allocatable | :: | scn(:) | 
 names of scn fractions  | 
        |
| character(len=15), | intent(out) | :: | scn_plus | 
 name of residual fraction  | 
        
Reads the molar compositions of each component from input file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | file | 
 file name  | 
        ||
| real(kind=pr), | intent(out), | allocatable | :: | def_comp_z(:) | 
 set of corresponding mole fractions of defined components  | 
        |
| real(kind=pr), | intent(out), | allocatable | :: | scn_z(:) | 
 set of corresponding mole fractions of scn cuts  | 
        |
| real(kind=pr), | intent(out) | :: | plus_z | 
 composition of residual fraction from input file  | 
        
Reads the density of each component from the input file and calculated molar volume since C6 fraction.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | file | 
 file name  | 
        ||
| real(kind=pr), | intent(out), | allocatable | :: | scn_density(:) | 
 set of corresponding densities of scn cuts  | 
        |
| real(kind=pr), | intent(out) | :: | plus_density | 
 density of residual fraction from input file  | 
        
Reads the molecular weights of each component from the input file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | file | 
 file name  | 
        ||
| real(kind=pr), | intent(out), | allocatable | :: | def_comp_mw(:) | 
 set of corresponding molecular weights of defined components  | 
        |
| real(kind=pr), | intent(out), | allocatable | :: | scn_mw(:) | 
 set of corresponding molecular weights of scn cuts  | 
        |
| real(kind=pr), | intent(out) | :: | plus_mw | 
 molecular weight of residual fraction  | 
        
Reads the setup data from input file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | file | 
 file name  | 
        ||
| integer, | intent(out) | :: | def_comp_nc | 
 number of defined components being considered in the oil  | 
        ||
| integer, | intent(out) | :: | scn_nc | 
 number of single cuts being considered in the oil  | 
        ||
| integer, | intent(out) | :: | scn_nc_ps | 
 CN from which all SCN fractions will be lumped into the specified number of pseudos  | 
        ||
| integer, | intent(out) | :: | numbers_ps | 
 number of pseudos in which the scn fractions grouped  |