MFIX  2016-1
rxns_mod.f
Go to the documentation of this file.
1  MODULE rxns
2 
3  use param, only: dim_m, dim_n_all, dim_n_g, dim_n_s
4  Use rxn_com, only: reaction_block
5 
6 ! reaction rates
7  DOUBLE PRECISION, DIMENSION(:, :), ALLOCATABLE :: reactionrates
8 
9 ! number of ReactionRates
10  INTEGER nrr
11 ! total number of species
12  INTEGER n_all
13 
14  LOGICAL rdatabase(0:dim_m, dim_n_g)
15 
16 !-----------------------------------------------------------------------
17 
18 ! Indicates that reaction rates are to be calculated.
19  LOGICAL :: rrate
20 ! Indicates if the legacy reaction rates file (rrates.f) is used.
21  LOGICAL :: use_rrates
22 
23 ! Rate of production of gas species
24  DOUBLE PRECISION, DIMENSION(:,:), ALLOCATABLE :: r_gp
25 ! Rate of consumption of gas species/X_g
26  DOUBLE PRECISION, DIMENSION(:,:), ALLOCATABLE :: rox_gc
27 ! Net production of gas
28  DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: sum_r_g
29 
30 ! Rate of production of solids species
31  DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE :: r_sp
32 ! Rate of consumption of solids species/X_s
33  DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE :: rox_sc
34 ! Net production of solids
35  DOUBLE PRECISION, DIMENSION(:,:), ALLOCATABLE :: sum_r_s
36 
37 ! Rate of mass transfer from phase M to Phase L
38  DOUBLE PRECISION, DIMENSION(:,:), ALLOCATABLE :: r_phase
39 
40 ! Actual number of Reactions
41  INTEGER no_of_rxns
42 
43 ! Species names -- Legacy variable
44  CHARACTER(len=18) species_name(dim_n_all)
45 
46 ! Gas phase species names (database) and aliases
47  CHARACTER(len=18) species_g(dim_n_g) ! database name
48  CHARACTER(len=32) species_alias_g(dim_n_g) ! alias
49 
50 ! Solids phase species names (database) and aliases
51  CHARACTER(len=18) species_s(dim_m, dim_n_s) ! database name
52  CHARACTER(len=32) species_alias_s(dim_m, dim_n_s) ! alias
53 
54 ! Array linking all of the reaction data.
55  TYPE(reaction_block), DIMENSION(:), TARGET, ALLOCATABLE :: reaction
56 
57  END MODULE rxns
integer, parameter dim_n_g
Definition: param_mod.f:69
integer n_all
Definition: rxns_mod.f:12
character(len=18), dimension(dim_m, dim_n_s) species_s
Definition: rxns_mod.f:51
Definition: rxns_mod.f:1
integer, parameter dim_m
Definition: param_mod.f:67
double precision, dimension(:), allocatable sum_r_g
Definition: rxns_mod.f:28
double precision, dimension(:,:), allocatable sum_r_s
Definition: rxns_mod.f:35
double precision, dimension(:,:,:), allocatable rox_sc
Definition: rxns_mod.f:33
character(len=32), dimension(dim_n_g) species_alias_g
Definition: rxns_mod.f:48
logical use_rrates
Definition: rxns_mod.f:21
integer no_of_rxns
Definition: rxns_mod.f:41
double precision, dimension(:,:,:), allocatable r_sp
Definition: rxns_mod.f:31
logical rrate
Definition: rxns_mod.f:19
integer nrr
Definition: rxns_mod.f:10
double precision, dimension(:,:), allocatable r_phase
Definition: rxns_mod.f:38
logical, dimension(0:dim_m, dim_n_g) rdatabase
Definition: rxns_mod.f:14
Definition: param_mod.f:2
double precision, dimension(:,:), allocatable rox_gc
Definition: rxns_mod.f:26
double precision, dimension(:,:), allocatable reactionrates
Definition: rxns_mod.f:7
integer, parameter dim_n_s
Definition: param_mod.f:71
integer, parameter dim_n_all
Definition: param_mod.f:75
character(len=18), dimension(dim_n_g) species_g
Definition: rxns_mod.f:47
character(len=18), dimension(dim_n_all) species_name
Definition: rxns_mod.f:44
character(len=32), dimension(dim_m, dim_n_s) species_alias_s
Definition: rxns_mod.f:52
double precision, dimension(:,:), allocatable r_gp
Definition: rxns_mod.f:24