2023-02-05 07:34:23 +01:00
|
|
|
#==============================================================================
|
|
|
|
# Laminar Canal Flow
|
|
|
|
#==============================================================================
|
|
|
|
|
|
|
|
# Problem specific Data:
|
|
|
|
# ---------------------
|
|
|
|
|
|
|
|
name canal # name of flow setup
|
|
|
|
|
2023-06-27 16:24:55 +02:00
|
|
|
bcTop 1 # flags for boundary conditions
|
|
|
|
bcBottom 1 # 1 = no-slip 3 = outflow
|
|
|
|
bcLeft 3 # 2 = free-slip 4 = periodic
|
|
|
|
bcRight 3 #
|
2023-02-05 07:34:23 +01:00
|
|
|
|
2023-10-09 16:56:43 +02:00
|
|
|
gx 0.0 # Body forces (e.g. gravity)
|
|
|
|
gy 0.0 #
|
2023-02-05 07:34:23 +01:00
|
|
|
|
2023-10-09 16:56:43 +02:00
|
|
|
re 100.0 # Reynolds number
|
2023-02-05 07:34:23 +01:00
|
|
|
|
2023-10-09 16:56:43 +02:00
|
|
|
u_init 1.0 # initial value for velocity in x-direction
|
|
|
|
v_init 0.0 # initial value for velocity in y-direction
|
|
|
|
p_init 1.0 # initial value for pressure
|
2023-02-05 07:34:23 +01:00
|
|
|
|
|
|
|
# Geometry Data:
|
|
|
|
# -------------
|
|
|
|
|
2023-10-09 16:56:43 +02:00
|
|
|
xlength 30.0 # domain size in x-direction
|
|
|
|
ylength 4.0 # domain size in y-direction
|
|
|
|
imax 200 # number of interior cells in x-direction
|
|
|
|
jmax 50 # number of interior cells in y-direction
|
2023-02-05 07:34:23 +01:00
|
|
|
|
|
|
|
# Time Data:
|
|
|
|
# ---------
|
|
|
|
|
2023-10-09 16:56:43 +02:00
|
|
|
te 60.0 # final time
|
|
|
|
dt 0.02 # time stepsize
|
|
|
|
tau 0.5 # safety factor for time stepsize control (<0 constant delt)
|
2023-02-05 07:34:23 +01:00
|
|
|
|
|
|
|
# Pressure Iteration Data:
|
|
|
|
# -----------------------
|
|
|
|
|
2023-10-09 16:56:43 +02:00
|
|
|
itermax 500 # maximal number of pressure iteration in one time step
|
|
|
|
eps 0.0001 # stopping tolerance for pressure iteration
|
|
|
|
rho 0.52
|
|
|
|
omg 1.8 # relaxation parameter for SOR iteration
|
|
|
|
gamma 0.9 # upwind differencing factor gamma
|
2023-08-21 16:33:32 +02:00
|
|
|
|
|
|
|
# Particle Tracing Data:
|
|
|
|
# -----------------------
|
|
|
|
|
2023-10-09 16:56:43 +02:00
|
|
|
numberOfParticles 60
|
|
|
|
startTime 500
|
2023-08-21 16:33:32 +02:00
|
|
|
injectTimePeriod 2.0
|
2023-10-09 16:56:43 +02:00
|
|
|
writeTimePeriod 0.5
|
2023-08-21 16:33:32 +02:00
|
|
|
|
|
|
|
x1 1.0
|
|
|
|
y1 0.0
|
|
|
|
x2 1.0
|
|
|
|
y2 4.0
|
2023-10-09 16:56:43 +02:00
|
|
|
|
|
|
|
# Obstacle Geometry Data:
|
|
|
|
# -----------------------
|
|
|
|
# Shape 0 disable, 1 Rectangle/Square, 2 Circle
|
|
|
|
|
|
|
|
shape 1
|
|
|
|
xCenter 10.0
|
|
|
|
yCenter 2
|
|
|
|
xRectLength 6.0
|
|
|
|
yRectLength 1.0
|
|
|
|
circleRadius 1.0
|
|
|
|
|
2023-02-05 07:34:23 +01:00
|
|
|
#===============================================================================
|