MFIX  2016-1
calc_thermo_des.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv!
2 ! !
3 ! Module name: CALC_THERMO_DES !
4 ! !
5 ! Purpose: This subroutine is called from DES routines. It calls !
6 ! functions that calculate heat and mass transfer. !
7 ! !
8 !^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^!
9  SUBROUTINE calc_thermo_des
10 
11  USE compar
12  USE des_rxns
13  USE des_thermo
14  USE discretelement
15  USE fldvar
16  USE functions
17  USE geometry
18  USE indices
19  USE interpolation
20  USE param1
21  USE run
22 
23  IMPLICIT NONE
24 
25 ! Local variables
26 !---------------------------------------------------------------------//
27  INTEGER :: NP
28 ! Functions
29 !---------------------------------------------------------------------//
30 
31 ! This is a quick work-around to keep the thermo routines from causes
32 ! issues while the "check_data" routines are rewritten. Moving forward
33 ! this routine should be split apart to avoid the particle loops for
34 ! cold-flow, non-reacting cases.
35  IF(.NOT.energy_eq .AND. .NOT.any_species_eq) RETURN
36 
37 ! Calculate time dependent physical properties
38  FORALL(np=1:max_pip, particle_state(np)==normal_particle) &
39  des_c_ps(np) = calc_cp_des(np)
40 
41  IF(des_explicitly_coupled) THEN
42 ! Apply the convective heat transfer calculated by the gas phase.
43  IF(calc_conv_des) THEN
44  WHERE(particle_state == normal_particle) &
46  ENDIF
47  IF(any_species_eq) THEN
48  WHERE(particle_state == normal_particle) &
50  ENDIF
51  ELSE
53  IF(any(calc_radt_des)) CALL des_radiation
55  ENDIF
56 
57  END SUBROUTINE calc_thermo_des
subroutine calc_thermo_des
logical, dimension(dim_m) calc_radt_des
logical calc_conv_des
subroutine conv_gs_des1
logical any_species_eq
Definition: run_mod.f:118
subroutine rxns_gs_des1
Definition: rxns_gs_des1.f:22
pure double precision function calc_cp_des(pNP)
Definition: run_mod.f:13
subroutine des_radiation
double precision, dimension(:), allocatable conv_qs
logical energy_eq
Definition: run_mod.f:100
double precision, dimension(:), allocatable q_source
double precision, dimension(:), allocatable rxns_qs
double precision, dimension(:), allocatable des_c_ps