-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTEMPLATE.dat
192 lines (164 loc) · 4.93 KB
/
TEMPLATE.dat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#--------------------------------------------
# geometry file
#--------------------------------------------
geo_file ExampleCase.pgm
#--------------------------------------------
# size of the domain
# xlength: length of the domain x-dir
# ylength: length of the domain y-dir
#--------------------------------------------
xlength 2
ylength 1
#--------------------------------------------
# number of cells
# imax: number of cells x-direction
# jmax: number of cells y-direction
# refine: Refinement based on power of 2
#--------------------------------------------
imax 100
jmax 50
refine 0
#--------------------------------------------
# time steps
# dt: time step size
# t_end: final time
# tau: safety factor for time step size control
#--------------------------------------------
dt 0.05
t_end 1000
tau 0.5
#--------------------------------------------
# output
# dt_value: time interval for writing files
#--------------------------------------------
dt_value 10.0
#--------------------------------------------
# pressure
# itermax: maximum number of pressure iterations
# eps: tolerance for pressure iteration (residual < eps)
# omg: relaxation factor for SOR
# gamma: upwind differencing factor
#--------------------------------------------
itermax 100
eps 0.001
omg 1.7
gamma 0.5
#--------------------------------------------
# viscosity
# - define either nu or Re
# nu: kinematic viscosity
# Re: simplified Reynolds number
#--------------------------------------------
nu 0.01
# Re 100
#--------------------------------------------
# gravity / external forces
#--------------------------------------------
GX 0
GY -1.0
#--------------------------------------------
# initial pressure
#--------------------------------------------
PI 0
#--------------------------------------------
# initial velocity
#--------------------------------------------
UI 0
VI 0
#--------------------------------------------
# inlet properties
# UIN_<num> Inlet velocity
# VIN_<num> Inlet velocity
# TIN_<num> Inlet temperature
#--------------------------------------------
UIN_2 1.0
VIN_2 0
# TIN_2 1.0
#--------------------------------------------
# energy
# - only needed for energy equation
# - define either alpha or Pr
# TI: initial temperature
# beta: thermal expansion coefficient
# Pr: Prandtl number
# alpha: thermal diffusivity
#--------------------------------------------
TI 0
beta 0.00021
Pr 7
# alpha 0.0003
#--------------------------------------------
# walls
# wall_temp_<num> wall temperature
# wall_vel_<num> wall velocity
# - enter -1 for adiabatic wall
#--------------------------------------------
wall_temp_10 -1
wall_temp_11 2.0
wall_temp_12 1.0
...
wall_vel_10 0.0
wall_vel_11 1.0
wall_vel_12 0.0
...
#--------------------------------------------
# pressure differential
# Pressure difference relative to PI, we assume the leftmost side has
# the higher pressure for now
#--------------------------------------------
DELTA_P 4.0
#--------------------------------------------
# number of processes in x and y direction
# iproc: x direction
# jproc: y direction
#--------------------------------------------
iproc 1
jproc 1
#--------------------------------------------
# turbulence parameters
# KI: initial K
# EPSI: initial epsilon
# KIN_<num>: inlet K
# EPSIN_<num>: inlet epsilon
# OMEGAI : initial omega (if K-omega models are selected)
# OMEGAIN_<num> inlet OMEGAIN_
# Note: You can specify epsilon while using a K-omega model
#--------------------------------------------
KI 0.001
EPSI 6
KIN_2 0.001
EPSIN_2 6
#--------------------------------------------
# turbulence model
# 0 -> off
# 1 -> k epsilon
# 2 -> k omega
# default is 0
#--------------------------------------------
model 2
#--------------------------------------------
# solver
# 0 -> Successive over relaxation(SOR)
# 1 -> PCG
# default is 0
#--------------------------------------------
solver 1
#--------------------------------------------
# simulation
# 0 -> CPU
# 1 -> Cuda
# 2 -> Vulkan
# default is 0
#--------------------------------------------
simulation 0
#--------------------------------------------
# preconditioner(if pcg is selected)
# -1 -> Off
# 0 -> SPAI via first order approximation
# through a Jacobi preconditioner
# 1 -> SPAI via an SSOR preconditioner
# 2 -> Jacobi preconditioner
# Note: Not all preconditioners are guarenteed to work
# default is -1
#--------------------------------------------
preconditioner -1