2023-02-05 07:34:23 +01:00
|
|
|
#==============================================================================
|
|
|
|
# Laminar Canal Flow
|
|
|
|
#==============================================================================
|
|
|
|
|
|
|
|
# Problem specific Data:
|
|
|
|
# ---------------------
|
|
|
|
|
|
|
|
name canal # name of flow setup
|
|
|
|
|
|
|
|
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 #
|
|
|
|
|
|
|
|
gx 0.0 # Body forces (e.g. gravity)
|
|
|
|
gy 0.0 #
|
|
|
|
gz 0.0 #
|
|
|
|
|
|
|
|
re 100.0 # Reynolds number
|
|
|
|
|
|
|
|
u_init 1.0 # initial value for velocity in x-direction
|
|
|
|
v_init 0.0 # initial value for velocity in y-direction
|
|
|
|
w_init 0.0 # initial value for velocity in z-direction
|
|
|
|
p_init 0.0 # initial value for pressure
|
|
|
|
|
|
|
|
# Geometry Data:
|
|
|
|
# -------------
|
|
|
|
|
|
|
|
xlength 30.0 # domain size in x-direction
|
|
|
|
ylength 4.0 # domain size in y-direction
|
|
|
|
zlength 4.0 # domain size in z-direction
|
|
|
|
imax 200 # number of interior cells in x-direction
|
2024-07-27 02:19:56 +02:00
|
|
|
jmax 40 # number of interior cells in y-direction
|
|
|
|
kmax 40 # number of interior cells in z-direction
|
2023-02-05 07:34:23 +01:00
|
|
|
|
|
|
|
# Time Data:
|
|
|
|
# ---------
|
|
|
|
|
2024-07-27 02:19:56 +02:00
|
|
|
te 60.0 # final time
|
2023-02-05 07:34:23 +01:00
|
|
|
dt 0.02 # time stepsize
|
|
|
|
tau 0.5 # safety factor for time stepsize control (<0 constant delt)
|
|
|
|
|
2024-07-27 02:19:56 +02:00
|
|
|
# Multigrid data:
|
|
|
|
# ---------
|
|
|
|
|
|
|
|
levels 2 # Multigrid levels
|
|
|
|
presmooth 20 # Pre-smoothning iterations
|
|
|
|
postsmooth 5 # Post-smoothning iterations
|
|
|
|
|
2023-02-05 07:34:23 +01:00
|
|
|
# Pressure Iteration Data:
|
|
|
|
# -----------------------
|
|
|
|
|
|
|
|
itermax 500 # maximal number of pressure iteration in one time step
|
|
|
|
eps 0.0001 # stopping tolerance for pressure iteration
|
2024-07-27 02:19:56 +02:00
|
|
|
omg 1.7 # relaxation parameter for SOR iteration
|
2023-02-05 07:34:23 +01:00
|
|
|
gamma 0.9 # upwind differencing factor gamma
|
|
|
|
#===============================================================================
|