2023-10-12 17:46:33 +02:00
|
|
|
#==============================================================================
|
|
|
|
# Laminar Canal Flow
|
|
|
|
#==============================================================================
|
|
|
|
|
|
|
|
# Problem specific Data:
|
|
|
|
# ---------------------
|
|
|
|
|
|
|
|
name backstep # name of flow setup
|
|
|
|
|
2023-10-23 21:04:16 +02:00
|
|
|
bcLeft 3 # flags for boundary conditions
|
|
|
|
bcRight 3 # 1 = no-slip 3 = outflow
|
|
|
|
bcBottom 1 # 2 = free-slip 4 = periodic
|
|
|
|
bcTop 1 #
|
|
|
|
bcFront 1 #
|
|
|
|
bcBack 1 #
|
2023-10-12 17:46:33 +02:00
|
|
|
|
2023-10-23 21:04:16 +02:00
|
|
|
gx 0.0 # Body forces (e.g. gravity)
|
|
|
|
gy 0.0 #
|
|
|
|
gz 0.0 #
|
2023-10-12 17:46:33 +02:00
|
|
|
|
2023-10-24 10:03:24 +02:00
|
|
|
re 5000.0 # Reynolds number
|
2023-10-12 17:46:33 +02:00
|
|
|
|
2023-10-24 10:03:24 +02:00
|
|
|
u_init 1.0 # initial value for velocity in x-direction
|
2023-10-23 21:04:16 +02:00
|
|
|
v_init 0.0 # initial value for velocity in y-direction
|
|
|
|
w_init 0.0 # initial value for velocity in z-direction
|
|
|
|
p_init 1.0 # initial value for pressure
|
2023-10-12 17:46:33 +02:00
|
|
|
|
|
|
|
# Geometry Data:
|
|
|
|
# -------------
|
|
|
|
|
2023-10-23 21:04:16 +02:00
|
|
|
xlength 7.0 # domain size in x-direction
|
|
|
|
ylength 1.5 # domain size in y-direction
|
|
|
|
zlength 1.0 # domain size in z-direction
|
|
|
|
imax 70 # number of interior cells in x-direction
|
|
|
|
jmax 15 # number of interior cells in y-direction
|
|
|
|
kmax 10 # number of interior cells in z-direction
|
2023-10-12 17:46:33 +02:00
|
|
|
|
|
|
|
# Time Data:
|
|
|
|
# ---------
|
|
|
|
|
2023-12-04 14:40:02 +01:00
|
|
|
te 100.0 # final time
|
2023-10-23 21:04:16 +02:00
|
|
|
dt 0.02 # time stepsize
|
|
|
|
tau 0.5 # safety factor for time stepsize control (<0 constant delt)
|
2023-10-12 17:46:33 +02:00
|
|
|
|
|
|
|
# Pressure Iteration Data:
|
|
|
|
# -----------------------
|
|
|
|
|
2023-10-23 21:04:16 +02:00
|
|
|
itermax 500 # maximal number of pressure iteration in one time step
|
|
|
|
eps 0.0001 # stopping tolerance for pressure iteration
|
2023-12-04 14:40:02 +01:00
|
|
|
rho 0.52
|
2023-10-23 21:04:16 +02:00
|
|
|
omg 1.7 # relaxation parameter for SOR iteration
|
|
|
|
gamma 0.9 # upwind differencing factor gamma
|
2023-10-12 17:46:33 +02:00
|
|
|
|
|
|
|
# Particle Tracing Data:
|
|
|
|
# -----------------------
|
|
|
|
|
2023-12-04 14:40:02 +01:00
|
|
|
numberOfParticles 500
|
|
|
|
startTime 30
|
|
|
|
injectTimePeriod 1.0
|
2023-10-23 21:04:16 +02:00
|
|
|
writeTimePeriod 0.2
|
2023-10-12 17:46:33 +02:00
|
|
|
|
|
|
|
x1 0.0
|
2023-12-04 14:40:02 +01:00
|
|
|
y1 0.5
|
|
|
|
z1 0.0
|
2023-10-12 17:46:33 +02:00
|
|
|
x2 0.0
|
2023-12-04 14:40:02 +01:00
|
|
|
y2 1.45
|
2023-10-23 21:04:16 +02:00
|
|
|
z2 1.0
|
2023-10-12 17:46:33 +02:00
|
|
|
|
|
|
|
# Obstacle Geometry Data:
|
|
|
|
# -----------------------
|
|
|
|
# Shape 0 disable, 1 Rectangle/Square, 2 Circle
|
|
|
|
|
|
|
|
shape 1
|
|
|
|
xCenter 0.0
|
|
|
|
yCenter 0.0
|
|
|
|
zCenter 0.0
|
|
|
|
xRectLength 2.0
|
|
|
|
yRectLength 1.0
|
2023-10-23 21:04:16 +02:00
|
|
|
zRectLength 2.0
|
2023-10-12 17:46:33 +02:00
|
|
|
circleRadius 1.0
|
|
|
|
|
|
|
|
#===============================================================================
|