33 INTEGER,
INTENT(in) :: BCV
34 INTEGER,
INTENT(in) :: M_TOT
35 LOGICAL,
INTENT(in) :: SKIP(
dim_m)
41 DOUBLE PRECISION SUM_X
59 sum_x = sum_x + bc_x_g(bcv,n)
71 1110
FORMAT(
'Error 1110: BC_X_g(',i3,
',:) do NOT sum to ONE and the ',&
72 'gas phase',/
'species equations are solved. Please correct ', &
78 1111
FORMAT(
'Error 1111: BC_X_g(',i3,
',:) do NOT sum to ONE and the ',&
79 'gas phase',/
'is compressible and MW_AVG is UNDEFINED.',/ &
80 'Please correct the mfix.dat the mfix.dat file.')
85 1112
FORMAT(
'Error 1112: BC_X_g(',i3,
',:) do not sum to ONE or ZERO ',&
86 'and they',/
'are not needed. Please correct the mfix.dat ', &
104 bc_x_s(bcv,m,:) =
zero 105 bc_x_s(bcv,m,1) =
one 114 sum_x = sum_x + bc_x_s(bcv,m,n)
116 bc_x_s(bcv,m,n) =
zero 125 1210
FORMAT(
'Error 1210: BC_X_s(',i3,
',',i2,
':) do NOT sum to ONE ', &
126 'and the solids phase',/
'species equations are solved. ', &
127 'Please correct the mfix.dat file.')
132 1211
FORMAT(
'Error 1211: BC_X_s(',i3,
',',i2,
':) do NOT sum to ONE ', &
133 'and the solids phase',/
'density is calculated. Please ', &
134 'correct the mfix.dat file.')
139 1212
FORMAT(
'Error 1212: BC_X_s(',i3,
',',i2,
':) do NOT sum to ONE ', &
140 'or ZERO and',/
'they are not needed. Please correct the ', &
144 bc_x_s(bcv,m,:) =
zero 145 bc_x_s(bcv,m,1) =
one 153 inert = inert_species(m)
154 IF(bc_x_s(bcv,m,inert) ==
zero)
THEN 157 1213
FORMAT(
'Error 1213: No inert species for phase ',i2,
' in BC ', &
158 'region',i3,
'.',/
'Unable to calculate solids phase density. ',&
159 'Please refer to the Readme',/
' file for required variable ', &
160 'solids density model input parameters and',/
' make the ', &
161 'necessary corrections to the mfix.dat file.')
170 IF(energy_eq .AND. bc_t_s(bcv,m)==
undefined)
THEN 172 bc_t_s(bcv,m) = bc_t_g(bcv)
180 IF(granular_energy)
THEN 183 bc_theta_m(bcv,m) =
zero 198 ELSEIF(bc_e_turb_g(bcv) ==
undefined)
THEN 216 1000
FORMAT(
'Error 1000: Required input not specified: ',a,/
'Please ',&
217 'correct the mfix.dat file.')
219 1001
FORMAT(
'Error 1001: Illegal or unknown input: ',a,
' = ',a,/ &
220 'Please correct the mfix.dat file.')
258 INTEGER,
INTENT(in) :: BCV
259 INTEGER,
INTENT(in) :: M_TOT
260 LOGICAL,
INTENT(in) :: SKIP(
dim_m)
266 DOUBLE PRECISION :: SUM_EP
268 DOUBLE PRECISION :: BC_ROs(
dim_m)
290 1100
FORMAT(
'Error 1100: ',a,
' must be specified for compressible ', &
291 'flows',/
'when specifying BC_MASSFLOW_g to make the ', &
292 'conversion to velocity.',/
'Please correct the mfix.dat file.')
294 ELSEIF(bc_p_g(bcv) <=
zero)
THEN 298 1101
FORMAT(
'Error 1101: Pressure must be greater than zero for ', &
299 'compressible flow',/
' >>> BC_P_g(',i3,
') = ',a,/
'Please ', &
300 'correct the mfix.dat file.')
305 IF(m_tot == 1 .AND. bc_ep_s(bcv,1) ==
undefined)
THEN 306 bc_ep_s(bcv,1) =
one - bc_ep_g(bcv)
311 IF(m_tot > 1 .AND. .NOT.
compare(bc_ep_g(bcv),
one))
THEN 315 WRITE(
err_msg, 1200) m, bcv,
'BC_ROP_s and BC_EP_s' 320 1200
FORMAT(
'Error 1200: Insufficient solids phase ',i2,
' data ', &
321 'for BC',i3,
'. ',/a,
' not specified.',/
'Please correct the ', &
325 sum_ep = bc_ep_g(bcv)
331 bc_ep_s(bcv,m) =
zero 332 bc_rop_s(bcv,m) =
zero 342 bc_ros(m) =
eoss(ro_s0(m),
x_s0(m,inert),&
350 IF(.NOT.
compare(bc_ep_s(bcv,m)*bc_ros(m), &
351 bc_rop_s(bcv,m)))
THEN 355 1214
FORMAT(
'Error 1214: Illegal initial condition region : ',i3,/ &
356 'BC_EP_s and BC_ROP_s are inconsistent. Please correct the ',/&
361 bc_ep_s(bcv,m) = bc_rop_s(bcv,m) / bc_ros(m)
364 ELSEIF(bc_rop_s(bcv,m) ==
undefined)
THEN 365 bc_rop_s(bcv,m) = bc_ep_s(bcv,m) * bc_ros(m)
369 sum_ep = sum_ep + bc_ep_s(bcv,m)
377 1215
FORMAT(
'Error 1215: Illegal boundary condition region: ',i3,
'. ',&
378 'Sum of volume',/
'fractions does NOT equal ONE. (SUM = ',a, &
379 ')',/
'Please correct the mfix.dat file.')
385 1000
FORMAT(
'Error 1000: Required input not specified: ',a,/
'Please ',&
386 'correct the mfix.dat file.')
388 1001
FORMAT(
'Error 1001: Illegal or unknown input: ',a,
' = ',a,/ &
389 'Please correct the mfix.dat file.')
429 INTEGER,
INTENT(in) :: BCV
430 INTEGER,
INTENT(in) :: M_TOT
431 LOGICAL,
INTENT(in) :: SKIP(
dim_m)
444 WRITE(
err_msg,1000)
'BC_P_g', bcv
446 1000
FORMAT(
'Error 1000: Required input not specified: ',a,/
'Please ',&
447 'correct the mfix.dat file.')
452 1101
FORMAT(
'Error 1101: Pressure must be greater than zero for ', &
453 'compressible flow',/
' >>> BC_P_g(',i3,
') = ',a,/
'Please ', &
454 'correct the mfix.dat file.')
484 IF(bc_rop_s(bcv,m) /=
zero .AND. .NOT.
no_i) &
490 IF(bc_rop_s(bcv,m) /=
zero .AND. .NOT.
no_j) &
496 IF(bc_rop_s(bcv,m) /=
zero .AND. .NOT.
no_k) &
502 1300
FORMAT(
'Warning 1300: ',a,
' was undefined. This variable was ', &
503 'set ',/
'to zero to be used as the initial value in the BC ',&
character(len=32) function ivar(VAR, i1, i2, i3)
double precision, dimension(dimension_bc) bc_t_g
logical function compare(V1, V2)
double precision, parameter one
logical, dimension(0:dim_m) species_eq
double precision, dimension(dimension_bc, dim_m) bc_w_s
double precision, dimension(dimension_bc, dim_m, dim_n_s) bc_x_s
logical, dimension(dim_m) solve_ros
double precision, dimension(dim_m, dim_n_s) x_s0
character(len=3), dimension(dim_m) solids_model
double precision, parameter undefined
double precision, dimension(dimension_bc) bc_v_g
subroutine init_err_msg(CALLER)
double precision, dimension(dimension_bc, dim_m) bc_t_s
double precision function eoss(pBase, Xs0_INERT, Xs_INERT)
integer, dimension(dim_m) inert_species
subroutine check_bc_mass_inflow(M_TOT, SKIP, BCV)
double precision, dimension(dimension_bc, dim_scalar) bc_scalar
subroutine check_bc_inflow(M_TOT, SKIP, BCV)
double precision, dimension(dimension_bc) bc_p_g
subroutine check_bc_p_inflow(M_TOT, SKIP, BCV)
double precision, dimension(dimension_bc, dim_m) bc_v_s
double precision, dimension(dimension_bc) bc_massflow_g
integer, dimension(0:dim_m) nmax
double precision, dimension(dimension_bc) bc_u_g
double precision, dimension(dimension_bc, dim_m) bc_u_s
character(len=line_length), dimension(line_count) err_msg
double precision, dimension(dimension_bc) bc_e_turb_g
double precision, dimension(dimension_bc, dim_m) bc_theta_m
double precision, dimension(dimension_bc, dim_n_g) bc_x_g
double precision, dimension(dimension_bc) bc_ep_g
double precision, dimension(dimension_bc) bc_k_turb_g
double precision, dimension(dim_m) ro_s0
double precision, dimension(dimension_bc) bc_w_g
double precision, dimension(dimension_bc, dim_m) bc_ep_s
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