17 double precision,
intent(in) :: x
21 CHARACTER(LEN=80) :: notnumber
29 IF(index(notnumber,
'?') > 0 .OR. &
30 index(notnumber,
'n') > 0 .OR. &
31 index(notnumber,
'N') > 0 )
THEN 52 use bc, only: mass_inflow, p_inflow
57 use functions, only: funijk, is_on_mype_owns
69 INTEGER :: L, I, J, K, IJK, M
70 DOUBLE PRECISION :: maxVEL
78 IF(.NOT.(bc_defined(l).AND.(bc_type_enum(l)==mass_inflow .OR. &
79 bc_type_enum(l) == p_inflow))) cycle
85 IF (.NOT.is_on_mype_owns(i,j,k)) cycle
89 SELECT CASE (bc_plane(l))
90 CASE (
'E'); maxvel = max(maxvel,abs(
u_g(ijk)))
91 CASE (
'N'); maxvel = max(maxvel,abs(
v_g(ijk)))
92 CASE (
'T'); maxvel = max(maxvel,abs(
w_g(ijk)))
93 CASE (
'W'); maxvel = max(maxvel,abs(
u_g(im_of(ijk))))
94 CASE (
'S'); maxvel = max(maxvel,abs(
v_g(jm_of(ijk))))
95 CASE (
'B'); maxvel = max(maxvel,abs(
w_g(km_of(ijk))))
99 SELECT CASE (bc_plane(l))
100 CASE (
'E'); maxvel = max(maxvel,abs(
u_s(ijk,m)))
101 CASE (
'N'); maxvel = max(maxvel,abs(
v_s(ijk,m)))
102 CASE (
'T'); maxvel = max(maxvel,abs(
w_s(ijk,m)))
103 CASE (
'W'); maxvel = max(maxvel,abs(
u_s(im_of(ijk),m)))
104 CASE (
'S'); maxvel = max(maxvel,abs(
v_s(jm_of(ijk),m)))
105 CASE (
'B'); maxvel = max(maxvel,abs(
w_s(km_of(ijk),m)))
145 use discretelement
, only: des_continuum_coupled, des_continuum_hybrid
161 LOGICAL :: ALL_IS_ERROR
167 all_is_error = .false.
171 IF (fluid_at(ijk))
THEN 177 ep_g(ijk), u_g(ijk), v_g(ijk), w_g(ijk)
181 IF (.NOT.des_continuum_coupled .OR. des_continuum_hybrid)
THEN 201 1000
FORMAT(1x,
'Message from: CHECK_VEL_BOUND',/&
202 'WARNING: velocity higher than maximum allowed velocity: ', &
203 g12.5,
'(to change this adjust the scale factor MAX_INLET_VEL_FAC)'/&
204 'in this cell: ',
'I = ',i4,2x,
' J = ',i4,2x,
' K = ',i4, /&
205 ' ',
'Epg = ', g12.5,
'Ug = ', g12.5,
'Vg = ', g12.5,
'Wg = ', g12.5)
206 1010
FORMAT(1x,
'Message from: CHECK_VEL_BOUND',/&
207 'WARNING: velocity higher than maximum allowed velocity: ', &
209 'in this cell: ',
'I = ',i4,2x,
' J = ',i4,2x,
' K = ',i4,
' M = ',i4, /&
210 ' ',
'Eps = ', g12.5,
'Us = ', g12.5,
'Vs = ', g12.5,
'Ws = ', g12.5)
234 CHARACTER(len=*) :: LINE
241 INTEGER,
PARAMETER :: DIM_COMMENT = 2
248 CHARACTER,
DIMENSION(DIM_COMMENT) :: COMMENT_CHAR
250 DATA comment_char/
'#',
'!'/
253 DO l2 = 1, dim_comment
254 IF (line(l:l) == comment_char(l2))
THEN 276 INTEGER FUNCTION seek_end (LINE, MAXCOL)
284 CHARACTER :: LINE*(*)
315 CHARACTER(LEN=*) :: LINE
327 DO l = maxcol + 1, line_len
328 IF (line(l:l) /=
' ')
THEN 351 CHARACTER :: LINE*(*)
359 IF(line(l:l)/=
' ' .and. line(l:l)/=
' ')
RETURN 374 SUBROUTINE bound_x(ARRAY, IJKMAX2)
389 IF (ijkmax2 > 0)
THEN 390 array(:) = min(
one,max(
zero,array(:)))
integer, dimension(dimension_bc) bc_k_b
double precision, dimension(:,:), allocatable v_s
integer, dimension(:), allocatable i_of
double precision, dimension(:), allocatable ep_g
double precision, parameter one
integer, dimension(dimension_bc) bc_i_w
double precision, dimension(:,:), allocatable w_s
integer, dimension(dimension_bc) bc_j_n
double precision max_inlet_vel
double precision, parameter max_allowed_vel
integer, parameter dimension_bc
integer, dimension(dimension_bc) bc_type_enum
integer function seek_comment(LINE, MAXCOL)
logical function check_vel_bound()
double precision, dimension(:,:), allocatable u_s
character, dimension(dimension_bc) bc_plane
integer, dimension(:), allocatable k_of
integer, dimension(dimension_bc) bc_k_t
logical, dimension(:,:,:), allocatable dead_cell_at
integer, dimension(:), allocatable j_of
double precision, parameter small_number
integer, dimension(dimension_bc) bc_j_s
integer function seek_end(LINE, MAXCOL)
double precision, dimension(:), allocatable v_g
logical, dimension(dimension_bc) bc_defined
double precision, dimension(:), allocatable w_g
integer function line_too_big(LINE, LINE_LEN, MAXCOL)
double precision, dimension(:), allocatable u_g
double precision function ep_s(IJK, xxM)
logical function mfix_isnan(x)
subroutine bound_x(ARRAY, IJKMAX2)
double precision function max_vel_inlet()
logical function blank_line(line)
double precision max_inlet_vel_fac
integer, dimension(dimension_bc) bc_i_e
double precision, parameter zero