MFIX  2016-1
rrates_init.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvC
2 ! C
3 ! Module name: RRATES_INIT(IER) C
4 ! Purpose: Initialize reaction rate arrays C
5 ! C
6 ! Author: Date: C
7 ! Reviewer: Date: C
8 ! C
9 ! Revision Number: C
10 ! Purpose: C
11 ! Author: Date: dd-mmm-yy C
12 ! Reviewer: Date: dd-mmm-yy C
13 ! C
14 ! C
15 !^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^C
16  SUBROUTINE rrates_init()
17 
18 ! Global Variables:
19 !---------------------------------------------------------------------//
20  use energy, only : hor_g, hor_s
21  use param1, only : zero
22  use rxns, only : r_gp, rox_gc, sum_r_g
23  use rxns, only : r_sp, rox_sc, sum_r_s
24  use rxns, only : r_phase, no_of_rxns, use_rrates, rrate
25  use stiff_chem, only : stiff_chemistry
26 
27  implicit none
28 
29 ! Local Variables:
30 !----------------------------------------------------------------------!
31 ! NONE
32 
33 ! Flag for invoking reaction rate calculations.
34  rrate = .false.
35  IF(no_of_rxns > 0) rrate = .true. ! automated mass balance
36  IF(use_rrates) rrate = .true. ! legacy hook
37  IF(stiff_chemistry) rrate = .false. ! stiff chemistry solver
38 
39 ! Gas phase source terms:
40  r_gp = zero ! Rate of species formation
41  rox_gc = zero ! Rate of species consumption (divided X_g)
42  sum_r_g = zero ! Net rate of gas formation/consumption
43  hor_g = zero ! Heat of reaction
44 
45 ! Solids phase source terms:
46  r_sp = zero ! Rate of species formation
47  rox_sc = zero ! Rate of species consumption (divided X_s)
48  sum_r_s = zero ! Net rate of solids formation/consumption
49  hor_s = zero ! Heat of reaction
50 
51 ! Interphase mass transfer.
52  r_phase = zero
53 
54  RETURN
55  END
Definition: rxns_mod.f:1
double precision, dimension(:), allocatable sum_r_g
Definition: rxns_mod.f:28
double precision, dimension(:,:), allocatable sum_r_s
Definition: rxns_mod.f:35
subroutine rrates_init()
Definition: rrates_init.f:17
double precision, dimension(:,:,:), allocatable rox_sc
Definition: rxns_mod.f:33
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
double precision, dimension(:,:), allocatable r_phase
Definition: rxns_mod.f:38
double precision, dimension(:,:), allocatable rox_gc
Definition: rxns_mod.f:26
logical stiff_chemistry
double precision, parameter zero
Definition: param1_mod.f:27
double precision, dimension(:,:), allocatable r_gp
Definition: rxns_mod.f:24
double precision, dimension(:), allocatable hor_g
Definition: energy_mod.f:6
double precision, dimension(:,:), allocatable hor_s
Definition: energy_mod.f:9