26 INTEGER,
INTENT(in) :: BCV
27 INTEGER,
INTENT(in) :: M_TOT
32 DOUBLE PRECISION :: SUM_EP
33 LOGICAL :: FLAG_WARNING
53 flag_warning = .false.
62 ELSEIF(m_tot == 1 )
THEN 72 1102
FORMAT(
'Warning 1102: Volume fraction may not sum to one when ',/&
105 IF(sum_ep >
one)
THEN 116 1101
FORMAT(
'Warning 1101: ',a,
' should not be specified for ', &
117 'outflow BCs',/
'with DEM/PIC runs except for a mass outflow ',&
118 'boundary with specified ',/
'flow rate(s). In this case ',&
119 'volume fraction data is used for ',/
'conversion to ',&
120 'velocity(s). However, the solids volume fraction data ',/&
121 'is effectively disregarded and it is the solids velocity ',&
122 'that is ',/
'used to direct any solids at the boundary.')
124 1103
FORMAT(
'Error 1103: Illegal boundary condition region: ',i3,
'. ',&
125 'Sum of volume',/
'fractions does NOT equal ONE. (SUM = ',a, &
126 ')',/
'Please correct the mfix.dat file.')
153 INTEGER,
INTENT(in) :: BCV
154 INTEGER,
INTENT(in) :: M_TOT
159 IF (
bc_p_g(bcv) == undefined)
THEN 168 1100
FORMAT(
'Error 1100: Pressure must be greater than zero for ', &
169 'compressible flow',/3x,
'BC_P_g(',i3,
') = ',a,/
'Please ', &
170 'correct the mfix.dat file.')
177 1000
FORMAT(
'Error 1000: Required input not specified: ',a,/
'Please ',&
178 'correct the mfix.dat file.')
217 INTEGER,
intent(in) :: BCV
218 INTEGER,
intent(in) :: M_TOT
231 IF(bc_massflow_g(bcv) /=
undefined .OR. &
237 1101
FORMAT(
'Error 1101: Invalid mass outflow boundary condition: ', /&
238 'BC_MASSFLOW_G and/or BC_VOLFLOW_G are DEFINED but ',&
239 a,
' is not ',/
'Please correct the mfix.dat file.')
243 IF(bc_massflow_s(bcv,m) /=
undefined .OR. &
245 WRITE(
err_msg,1102) trim(
ivar(
'BC_MASSFLOW_S',bcv,m)), &
246 trim(
ivar(
'BC_VOLFLOW_S',bcv,m))
247 1102
FORMAT(
'Warning 1102: ', a,
' and/or ', a,
' have been defined',/&
248 'at a mass outflow boundary. A specified solids flow ',&
249 'rate may not be ',/
'physically achievable depending on the ',&
250 'system and simulation ',/
'setup.')
256 1103
FORMAT(
'Error 1103: Invalid mass outflow boundary condition: ', /&
257 'BC_MASSFLOW_S and/or BC_VOLFLOW_S are DEFINED but ',&
258 a,
' is not ',/
'Please correct the mfix.dat file.')
265 bc_t_g(bcv) ==
undefined) .AND.bc_massflow_g(bcv) /=
zero)
THEN 267 IF(bc_plane(bcv)==
'W' .OR. bc_plane(bcv)==
'E')
THEN 269 WRITE(
err_msg, 1100) bcv,
'BC_U_g' 272 ELSEIF(bc_plane(bcv)==
'N' .OR. bc_plane(bcv)==
'S')
THEN 274 WRITE(
err_msg, 1100) bcv,
'BC_V_g' 277 ELSEIF (bc_plane(bcv)==
'T' .OR. bc_plane(bcv)==
'B')
THEN 279 WRITE(
err_msg, 1100) bcv,
'BC_W_g' 285 1100
FORMAT(
'Error 1100: Invalid mass outflow boundary condition: ', &
286 i3,/
'RO_g0, BC_P_g, and BC_T_g are UNDEFINED and ',a,
' is ', &
287 'non-zero',/
'Please correct the mfix.dat file.')
294 1000
FORMAT(
'Error 1000: Required input not specified: ',a,/
'Please ',&
295 'correct the mfix.dat file.')
double precision, dimension(dimension_bc) bc_dt_0
double precision, dimension(dimension_bc) bc_volflow_g
subroutine check_bc_outflow(M_TOT, BCV)
character(len=32) function ivar(VAR, i1, i2, i3)
subroutine check_bc_p_outflow(M_TOT, BCV)
double precision, dimension(dimension_bc) bc_t_g
logical function compare(V1, V2)
double precision, parameter one
character(len=3), dimension(dim_m) solids_model
double precision, parameter undefined
double precision, dimension(dimension_bc) bc_v_g
character, dimension(dimension_bc) bc_plane
subroutine init_err_msg(CALLER)
double precision, dimension(dimension_bc, dim_m) bc_volflow_s
subroutine check_bc_mass_outflow(M_TOT, BCV)
double precision, dimension(dimension_bc) bc_p_g
double precision, dimension(dimension_bc) bc_massflow_g
double precision, dimension(dimension_bc, dim_m) bc_massflow_s
double precision, dimension(dimension_bc) bc_u_g
character(len=line_length), dimension(line_count) err_msg
double precision, dimension(dimension_bc) bc_ep_g
double precision, dimension(dim_m) ro_s0
double precision, dimension(dimension_bc) bc_w_g
double precision, parameter zero
subroutine flush_err_msg(DEBUG, HEADER, FOOTER, ABORT, LOG, CALL_TREE)
double precision, dimension(dimension_bc, dim_m) bc_rop_s