30 DOUBLE PRECISION :: lsin_phi
32 INTEGER :: def_mus0, undef_mus0
74 def_mus0 = def_mus0 + 1
82 undef_mus0 =
smax - def_mus0
93 IF (def_mus0 > 0)
THEN 148 1100
FORMAT(
'Error 1100: Constant viscosity is specified but', /&
149 'GRANULAR_ENERGY=.TRUE. Please correct the mfix.dat file')
150 1101
FORMAT(
'Error 1101: Coefficient of restitution (C_E) not ', &
151 'specified.',/
'Please correct the mfix.dat file.')
152 1102
FORMAT(
'Error 1102: Coefficient of friction (C_F) not ', &
153 'specified.',/
'Please correct the mfix.dat file.')
190 1201
FORMAT(
'Error 1201: The FRICTION solids stress model requires ', &
191 /,
'GRANULAR_ENERGY=.TRUE. Please correct the mfix.dat file.')
192 1202
FORMAT(
'Error 1202: Cannot use BLENDING_STRESS with FRICTION ',&
193 /,
'Please correct the mfix.dat file.')
194 1204
FORMAT(
'Error 1204: Angle of particle-wall friction (PHI_W) not',&
195 ' specified.',/
'Please correct the mfix.dat file.')
209 lsin_phi = sin(
phi*
pi/180.d0)
213 1200
FORMAT(
'Error 1200: FRICTION and SCHAEFFER models cannot be ',&
214 'used',/
'together. Please correct the mfix.dat file')
215 1203
FORMAT(
'Error 1203: Angle of internal friction (PHI) not ', &
216 'specified.',/
'Please correct the mfix.dat file.')
235 1300
FORMAT(
'Error 1300: FEDORS_LANDEL and YU_STANDISH correlations ',&
236 'cannot be',/
'used at the same time. Please correct the ', &
238 1301
FORMAT(
'Error 1301: YU_STANDISH correlation is for polydisperse',&
239 ' mixtures',/
'(MMAX >= 2). Please correct the mfix.dat file.')
240 1302
FORMAT(
'Error 1302: FEDORS_LANDEL correlation is for binary ', &
241 'mixtures (MMAX=2).',/
'Please correct the mfix.dat file.')
262 1400
FORMAT(
'Error 1400: Solids phase ',i2,
' is not CLOSE_PACKED.',/, &
263 'All solids phases must be CLOSE_PACKED with MODEL_B=.TURE.',/
264 'Please correct the mfix.dat file.')
275 1500
FORMAT(
'Error 1500: Must specify a disperse phase, M_AM, where ',&
276 'the',/
'virtual mass applies (ADDED_MASS).',/
'Please correct',&
277 ' the mfix.dat file.')
278 1501
FORMAT(
'Error 1501: M_AM is out of range. [1,MMAX]',/
'Please ', &
279 'correct the mfix.dat file.')
285 SELECT CASE(trim(adjustl(rdf_type)))
288 rdf_type_enum = lebowitz
290 CASE (
'MODIFIED_LEBOWITZ')
291 rdf_type_enum = modified_lebowitz
294 rdf_type_enum = mansoori
296 CASE (
'MODIFIED_MANSOORI')
297 rdf_type_enum = modified_mansoori
304 1600
FORMAT(
'Error 1600: Unknown RDF_TYPE',/
'Please ', &
305 'correct the mfix.dat file.')
310 IF(rdf_type_enum /= lebowitz)
THEN 311 WRITE(
err_msg, 1601) trim(adjustl(rdf_type))
314 1601
FORMAT(
'Error 1601: The RDF_TYPE should NOT be specified when ',&
315 'MMAX = 1',/
'because Carnahan-Starling is the only available',&
316 ' radial distribution',/
'function for monodisperse systems. ',&
317 'Please correct the mfix.dat file.')
320 rdf_type_enum = carnahan_starling
324 1000
FORMAT(
'Error 1000: Required input not specified: ',a,/
'Please ',&
325 'correct the mfix.dat file.')
326 1001
FORMAT(
'Error 1001: Illegal or unphysical input: ',a,
' = ',a,/ &
327 'Please correct the mfix.dat file.')
328 1002
FORMAT(
'Error 1002: Illegal input: ',a,
' specified out of ',&
329 'range.', /,
'Please correct the mfix.dat file.')
385 IF(kt_type(1:6) /=
'AHMADI' .AND. &
386 kt_type(1:8) /=
'LUN_1984')
THEN 387 WRITE(
err_msg,9002)trim(kt_type)
393 IF(kt_type(1:7) /=
'SIMONIN' .AND. &
394 kt_type(1:8) /=
'LUN_1984')
THEN 395 WRITE(
err_msg,9003)trim(kt_type)
401 9001
FORMAT(
'Error 9001: Cannot specify AHMADI and SIMONIN together.',&
402 /
'Please correct the mfix.dat file.')
403 9002
FORMAT(
'Error 9002: Cannot specify AHMADI and KT_TYPE = ',a,
'.', &
404 /
'Please correct the mfix.dat file.')
405 9003
FORMAT(
'Error 9003: Cannot specify SIMONIN and KT_TYPE = ',a,
'.',&
406 /
'Please correct the mfix.dat file.')
411 SELECT CASE(trim(adjustl(kt_type)))
415 kt_type_enum = ia_2005
424 kt_type_enum = gd_1999
428 ELSEIF(
smax > 1)
THEN 429 WRITE(
err_msg,1002) trim(kt_type)
436 kt_type_enum = gtsh_2012
440 ELSEIF(
smax > 1)
THEN 441 WRITE(
err_msg,1002) trim(kt_type)
448 kt_type_enum = ghd_2007
466 IF(drag_type_enum /= wen_yu .AND. drag_type_enum /= hys)
THEN 472 ELSEIF(
smax > 2)
THEN 486 1030
FORMAT(
'Error 1030: KT_TYPE = "GHD" is restricted to DRAG_TYPE', &
487 'values of WEN_YU and HYS.',/
'Please correct the mfix.dat ', &
489 1031
FORMAT(
'Error 1031: ADDED_MASS force cannot be applied with ', &
490 'GHD theory that',/
'solves for mixture equations.',/
'Please', &
491 'correct the mifx.dat file.')
492 1032
FORMAT(
'Warning 1032: GHD theory may not be valid for more ', &
493 'than two solids phases',/
'it requires further development.')
498 kt_type_enum = ahmadi_1995
501 WRITE(
err_msg,1040)
'K_EPSILON = .TRUE.' 510 1040
FORMAT(
'Error 1040: KT_TYPE = "AHMADI" requires ',a,/ &
511 'Please correct the mfix.dat file.')
516 kt_type_enum = simonin_1996
519 WRITE(
err_msg,1050)
'K_EPSILON = .TRUE.' 528 1050
FORMAT(
'Error 1050: KT_TYPE = "SIMONIN" requires ',a,/ &
529 'Please correct the mfix.dat file.')
535 kt_type_enum = lun_1984
548 WRITE(
err_msg,1001) trim(adjustl(kt_type))
550 1001
FORMAT(
'Error 1001: Invalid or unknown KT_TYPE: ',a,/ &
551 'Please correct the mfix.dat file.')
562 1002
FORMAT(
'Error 1002: KT_TYPE = ',a,
' is for monodisperse',&
563 ' solids',/
'(MMAX = 1). Please correct the mfix.dat file.')
565 1003
FORMAT(
'Error 1003: Coefficient of restitution (C_E) not ', &
566 'specified.',/
'Please correct the mfix.dat file.')
568 1004
FORMAT(
'Error 1004: Coefficient of friction (C_F) not ', &
569 'specified.',/
'Please correct the mfix.dat file.')
character(len=32) function ivar(VAR, i1, i2, i3)
double precision, parameter one
double precision, dimension(dim_m) dif_s0
logical, dimension(0:dim_m) species_eq
subroutine check_solids_continuum
double precision, parameter undefined
logical, dimension(dim_m) close_packed
subroutine init_err_msg(CALLER)
double precision, parameter half
double precision sin2_phi
integer, dimension(0:dim_m) nmax
integer, parameter undefined_i
character(len=line_length), dimension(line_count) err_msg
double precision tan_phi_w
double precision, dimension(dim_m) mu_s0
double precision, dimension(dim_m, dim_m) r_p
double precision, parameter pi
integer, dimension(dim_m) nmax_s
double precision, parameter zero
subroutine flush_err_msg(DEBUG, HEADER, FOOTER, ABORT, LOG, CALL_TREE)