MFIX  2016-1
pic_bc_mod.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv!
2 ! !
3 ! Module name: pic_bc_mod.f !
4 ! !
5 ! Purpose: Common elements needed for the pic mass inflow boundary !
6 ! condition. !
7 ! !
8 ! Author: R. Garg Date: 11-Jun-14 !
9 ! !
10 ! Comments: !
11 ! !
12 !^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^!
13  MODULE pic_bc
14 
15  use param, only: dimension_bc
16 !......................................................................!
17 
18  INTEGER :: pic_bcmi
19  INTEGER :: pic_bcmo
20 
21  LOGICAL :: pic_mio ! either inlet or outlet exists
22 
23 ! Map between PIC MI/MO IDs and the user input BC index.
26 
27 
28  INTEGER, ALLOCATABLE :: pic_bcmo_ijkstart(:)
29  INTEGER, ALLOCATABLE :: pic_bcmo_ijkend(:)
30 
31  INTEGER, ALLOCATABLE :: pic_bcmo_ijk(:)
32 
33 
34  INTEGER, ALLOCATABLE :: pic_bcmi_ijkstart(:)
35  INTEGER, ALLOCATABLE :: pic_bcmi_ijkend(:)
36 
37  INTEGER, ALLOCATABLE :: pic_bcmi_ijk(:)
38 
39 ! Direction of the MI BC plane
40  INTEGER, ALLOCATABLE :: pic_bcmi_normdir(:,:)
41 ! BC planes will be calculated from the fluid node as
42 ! XE-dx, YN-dy, and ZT-dz.
43 ! For BC-plane 'S', YN-dy will provide the wrong plane, as
44 ! it shud be just yn. The array below is used to provide this correction.
45 ! BC_plane coords will be calculated as x_i - offset dx_i and offset will
46 ! have default value of 1. It will be set to 0 for a case described above.
47  INTEGER, ALLOCATABLE :: pic_bcmi_offset(:,:)
48 
49 
50 ! This will store cumulative number of computational parcels
51  Double precision, Allocatable :: pic_bcmi_cnp(:, :)
52 ! This will store cumulative number of implied real particles
53  Double precision, Allocatable :: pic_bcmi_rnp(:, :)
54 
55 ! To include or not to include cut-cells in the MI BC
56 
57  LOGICAL, Allocatable :: pic_bcmi_incl_cutcell(:)
58 
59 ! Logicals to print seeding and deletion of particles based on user needs
61 
62 ! Mininum velocity for parcles at rest of offset gravitational forces
63  DOUBLE PRECISION :: minvel(3), minvel_mag, oominvel_mag
64 
65  END MODULE pic_bc
66 
integer pic_bcmi
Definition: pic_bc_mod.f:18
integer, dimension(:), allocatable pic_bcmi_ijkstart
Definition: pic_bc_mod.f:34
double precision, dimension(:,:), allocatable pic_bcmi_cnp
Definition: pic_bc_mod.f:51
logical, dimension(:), allocatable pic_bcmi_incl_cutcell
Definition: pic_bc_mod.f:57
integer, parameter dimension_bc
Definition: param_mod.f:61
integer, dimension(:), allocatable pic_bcmi_ijk
Definition: pic_bc_mod.f:37
double precision oominvel_mag
Definition: pic_bc_mod.f:63
integer, dimension(:), allocatable pic_bcmo_ijkstart
Definition: pic_bc_mod.f:28
logical pic_report_deletion_stats
Definition: pic_bc_mod.f:60
integer, dimension(:,:), allocatable pic_bcmi_normdir
Definition: pic_bc_mod.f:40
double precision minvel_mag
Definition: pic_bc_mod.f:63
integer, dimension(dimension_bc) pic_bcmo_map
Definition: pic_bc_mod.f:25
Definition: param_mod.f:2
double precision, dimension(3) minvel
Definition: pic_bc_mod.f:63
integer, dimension(:), allocatable pic_bcmi_ijkend
Definition: pic_bc_mod.f:35
logical pic_mio
Definition: pic_bc_mod.f:21
integer, dimension(:), allocatable pic_bcmo_ijk
Definition: pic_bc_mod.f:31
integer pic_bcmo
Definition: pic_bc_mod.f:19
integer, dimension(:,:), allocatable pic_bcmi_offset
Definition: pic_bc_mod.f:47
logical pic_report_seeding_stats
Definition: pic_bc_mod.f:60
double precision, dimension(:,:), allocatable pic_bcmi_rnp
Definition: pic_bc_mod.f:53
integer, dimension(:), allocatable pic_bcmo_ijkend
Definition: pic_bc_mod.f:29
integer, dimension(dimension_bc) pic_bcmi_map
Definition: pic_bc_mod.f:24