MFIX  2016-1
comp_mean_fields.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv!
2 ! !
3 ! Subroutine: COMP_MEAN_FIELDS !
4 ! Author: J.Musser Date: 11-NOV-14 !
5 ! !
6 ! Purpose: Driver routine for calculating continuous field variables !
7 ! corresponding to discrete data (ROP_s, u_s, v_s, w_s) !
8 ! !
9 ! o The diffusion filter is only applied to the the solids bulk !
10 ! density because DEM simulations do not utilize the other field !
11 ! variables within a time loop. !
12 ! !
13 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv!
14  SUBROUTINE comp_mean_fields
15 
16 ! Modules
17 !---------------------------------------------------------------------//
18  use discretelement, only: des_mmax
19  use fldvar, only: rop_s
20 ! Flag: Diffuse DES field variables.
26  use physprop, only: mmax
27  IMPLICIT NONE
28 
29 ! Local variables
30 !---------------------------------------------------------------------//
31 
32 ! Loop counter.
33  INTEGER :: M
34 
35 !......................................................................!
36 
37 ! Calculate field variables from particle data:
38  IF(des_interp_mean_fields) THEN
39  SELECT CASE(des_interp_scheme_enum)
41  CASE DEFAULT; CALL comp_mean_fields1
42  END SELECT
43  ELSE
45  ENDIF
46 
47 ! Apply the diffusion filter.
48  IF(des_diffuse_mean_fields) THEN
49  DO m=mmax+1, mmax+des_mmax
50  CALL diffuse_mean_field(rop_s(:,m),'ROP_S')
51  ENDDO
52  ENDIF
53 
54 ! Calculate the gas phase volume fraction from ROP_s.
55  CALL calc_epg_des
56 
57  RETURN
58  END SUBROUTINE comp_mean_fields
subroutine comp_mean_fields
logical des_diffuse_mean_fields
integer, parameter des_interp_garg
subroutine comp_mean_fields1
subroutine comp_mean_fields0
subroutine diffuse_mean_field(PHI, VNAME)
logical des_interp_mean_fields
integer mmax
Definition: physprop_mod.f:19
integer, parameter des_interp_none
subroutine calc_epg_des
Definition: calc_epg_des.f:15
integer des_interp_scheme_enum
double precision, dimension(:,:), allocatable rop_s
Definition: fldvar_mod.f:51