MFIX  2016-1
set_bc_dem.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv!
2 ! !
3 ! Subroutine: SET_BC_DEM !
4 ! Author: J.Musser Date: 13-Jul-09 !
5 ! !
6 ! Purpose: Check the data provided for the des mass inflow boundary !
7 ! condition and flag errors if the data is improper. This module is !
8 ! also used to convert the proveded information into the format !
9 ! necessary for the dependent subrountines to function properly. !
10 ! !
11 !^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^!
12  SUBROUTINE set_bc_dem
13 
14  USE constant
15  USE des_bc
16  USE discretelement
17  USE funits
18  USE geometry
19  USE indices
20  USE param
21  USE param1
22  USE physprop
23  USE run
24  USE mfix_pic
25  use mpi_utility
26 
27  use bc
28 
29  use error_manager
30 
31  IMPLICIT NONE
32 
33 
34  CALL init_err_msg("SET_BC_DEM")
35 
36 ! The variable PARTICLES should already be set by this point if using
37 ! gener_part_config option
38  IF(particles == undefined_i) THEN
39  particles = 0
40  ENDIF
41 
42 ! If the system is started without any particles and an inlet is not
43 ! specified, the run is likely aborted.
44 ! Inlet/outlet for MPPIC are based off the regular mfix declarations,
45 ! and so DEM_BCMI could still be zero.
46  IF(particles == 0 .AND. dem_bcmi == 0) THEN
47  WRITE(err_msg, 1202)
48  CALL flush_err_msg
49  ENDIF
50 
51  1202 FORMAT('WARNING 1202: The system is initiated with no particles',&
52  ' and no',/'solids inlet was detected.')
53 
54  IF(dem_bcmi > 0) CALL set_bc_dem_mi
55  IF(dem_bcmo > 0) CALL set_bc_dem_mo
56 
57 ! Set the flag that one or more DEM MI/MO exists.
58  dem_mio = (dem_bcmi /= 0 .OR. dem_bcmo /= 0)
59 
60  CALL finl_err_msg
61 
62  RETURN
63  END SUBROUTINE set_bc_dem
subroutine finl_err_msg
integer dem_bcmo
Definition: des_bc_mod.f:19
subroutine init_err_msg(CALLER)
integer dem_bcmi
Definition: des_bc_mod.f:18
Definition: run_mod.f:13
Definition: param_mod.f:2
integer, parameter undefined_i
Definition: param1_mod.f:19
character(len=line_length), dimension(line_count) err_msg
subroutine set_bc_dem
Definition: set_bc_dem.f:13
subroutine set_bc_dem_mo
Definition: set_bc_dem_mo.f:12
subroutine flush_err_msg(DEBUG, HEADER, FOOTER, ABORT, LOG, CALL_TREE)
logical dem_mio
Definition: des_bc_mod.f:21
Definition: bc_mod.f:23
subroutine set_bc_dem_mi
Definition: set_bc_dem_mi.f:10