-
Notifications
You must be signed in to change notification settings - Fork 132
/
input_template
211 lines (179 loc) · 9.02 KB
/
input_template
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
----------------------------
High Fidelity Large Eddy Simulation (HiFiLES) Code.
Copyright (C) 2014 Aerospace Computing Laboratory (ACL).
version 0.1.0
Original code: SD++ developed by Patrice Castonguay, Antony Jameson,
Peter Vincent, David Williams (alphabetical by surname).
Current development: Aerospace Computing Laboratory (ACL)
Aero/Astro Department. Stanford University.
HiFiLES is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
HiFiLES is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with HiFiLES. If not, see <http://www.gnu.org/licenses/>.
----------------------------
----------------------------
Solver parameters
----------------------------
// 0: Euler/Navier-Stokes, 1:Advection/Adv-Diffusion
equation 0
viscous 1
// 0: Rusanov, 1: Lax-Friedrich, 2: Roe
riemann_solve_type 0
vis_riemann_solve_type 0
// 0: Isentropic Vortex, 1: Uniform flow, 2: Sine Wave
ic_form 1
// 0: Normal (doesn't have an analytical solution), 1:Isentropic Vortex, 2: Advection-Equation
test_case 0
order 3 // Order of basis polynomials
dt_type 0 // 0: User-supplied, 1: Global, 2: Local
dt 0.0005
CFL 3.5
n_steps 10
adv_type 3 // 0: Forward Euler, 3: RK45
tau 1.0
pen_fact 0.5
-----------------------
LES options
-----------------------
LES 1 // 0: no LES, 1: LES
filter_type 2 // 0: Vasilyev high-order, 1: discrete Gaussian, 2: Modal Vandermonde. Not all filters are available for each element type.
filter_ratio 2 // Filter width ratio. Try range 1:2. Not used for Modal Vandermonde filter.
SGS_model 2 // 0: Smagorinsky, 1: WALE, 2: WALE-similarity, 3: SVV, 4: Similarity
wall_model 0 // Select near-wall model for solid boundaries. 0: none, 1: Werner-Wengle, 2: Breuer & Rodi Three-layer
wall_layer_thickness 0 // Set thickness of layer within which wall model is applied
-----------------------
Restart options
-----------------------
restart_flag 0 // 0: start from 0, 1: start from specified restart file
restart_iter 1000 // restart file to start from
n_restart_files 8 // number of restart files (=no. of MPI procs)
-----------------------
Mesh options
-----------------------
mesh_file sqcyl-tet-coarse-3.neu filename of mesh
dx_cyclic 20.0 distance between cyclic boundaries in x direction (comment out if not needed)
dy_cyclic 20.0 distance between cyclic boundaries in y direction (comment out if not needed)
dz_cyclic 20.0 distance between cyclic boundaries in z direction (comment out if not needed)
-----------------------------------
Monitoring, plotting parameters
-----------------------------------
p_res 4 // Plotting resolution, number of nodes per direction
4
write_type 0 // 0: Paraview, 1: Tecplot
0
// Choose extra fields to be written to file: u v w energy pressure mach vorticity q_criterion.
// Set to 0 or comment out for no diagnostic fields
n_diagnostic_fields 3 u v mach
// Choose integral diagnostics: kineticenergy, vorticity, pressuredilatation, straincolonproduct. Set to 0 for no diagnostics
// Set to 0 or comment out for no integral quantity output
integral_quantities 0
monitor_integrals_freq 0 // Compute global integral diagnostics
// extra diagnostic fields written to file: rho_average u_average v_average w_average e_average. Set to 0 for no time averaged fields
n_average_fields 2 u_average v_average
spinup_time 0 // initial period (in seconds) until time averaging is started, if n_average_fields > 0
inters_cub_order 5 // Order of cubature rule for integrating over element interfaces
volume_cub_order 5 // Order of cubature rule for integrating over element volumes
plot_freq 10 // number of timesteps between solution writes
data_file_name simData // prefix for all output files
restart_dump_freq 10000 // number of timesteps between restart file writes
monitor_res_freq 1 // number of timesteps between residual outputs
res_norm_type 1 // 0:infinity norm, 1:L1 norm, 2:L2 norm
error_norm_type 1 // 0:infinity norm, 1:L1 norm, 2:L2 norm
res_norm_field 0 // 0: Density
---------------------------
Wave Equation parameters
---------------------------
wave_speed_x 1 // Advection-equation wave speed, x component
wave_speed_y 1 // Advection-equation wave speed, y component
wave_speed_z 1 // Advection-equation wave speed, z component
lambda 1 // 1: upwind
---------------------------
Element parameters
---------------------------
==== Tris ====
upts_type_tri 0 // triangle solution point locations. 0: 'good' points (Williams and Shunn 2013), 1: alpha points (Hesthaven and Warburton 2007)
fpts_type_tri 0 // triangle flux point locations. 0: 'good' points (Williams and Shunn 2013), 1: alpha points (Hesthaven and Warburton 2007)
vcjh_scheme_tri 0 // 0: custom, 1: DG, 2: SD, 3: HU, 4: C+
c_tri 0. // user-defined stabilization parameter if using option 0 for vcjh_scheme
sparse_tri 0 // whether to utilize sparsity of element matrices. 0: don't use sparsity, 1: do use sparsity
==== Quads ====
upts_type_quad 0 // quad solution point locations.
vcjh_scheme_quad 0 // 0: custom, 1: DG, 2: SD, 3: HU, 4: C+
eta_quad 0. // user-defined stabilization parameter if using option 0 for vcjh_scheme
sparse_quad 0 // Use sparse matrix storage?
==== Hexas ====
upts_type_hexa 0 // hex solution point locations.
vcjh_scheme_hexa 0 // 0: custom, 1: DG, 2: SD, 3: HU, 4: C+
eta_hexa 0. // user-defined stabilization parameter if using option 0 for vcjh_scheme
sparse_hexa 0
==== Tets ====
upts_type_tet 0 // tet solution point locations.
fpts_type_tet 0 // tet flux point locations.
vcjh_scheme_tet 0 // 0: custom, 1: DG, 2: SD, 3: HU, 4: C+
eta_tet 0. // user-defined stabilization parameter if using option 0 for vcjh_scheme
sparse_tet 0
==== Prisms ====
upts_type_pri_tri 0 // prism tri solution point locations.
upts_type_pri_1d 0 // prism 1d solution point locations.
vcjh_scheme_pri_1d 0 // 0: custom, 1: DG, 2: SD, 3: HU, 4: C+
eta_pri 0. // user-defined stabilization parameter if using option 0 for vcjh_scheme
sparse_pri 0
------------------------------------
Fluid Parameters
------------------------------------
gamma 1.4
prandtl 0.72
S_gas 120.
T_gas 291.15
R_gas 286.9
mu_gas 1.827E-05
-----------------------------------
Boundary conditions
-----------------------------------
==== Viscous ====
fix_vis 0 // 0: Sutherland's law, 1: Constant viscosity
Mach_free_stream 0.2
nx_free_stream 1.
ny_free_stream 0.
nz_free_stream 0.
Re_free_stream 100.
L_free_stream 1.
T_free_stream 300
T_wall 300
Mach_wall 0.
nx_wall 1.
ny_wall 0.
nz_wall 0.
T_wall 300
==== Inviscid ====
rho_bound 1.
u_bound 1.0
v_bound 1.0
w_bound 0.0
p_bound 17.857142857142854098
// Note 1: No non-dimensionalization for inviscid simulations;
// however, the values above are such that speed of sound = 5
// Note 2: If you would like to initialize your simulation to
// something different than your boundary/freestream conditions,
// each *_free_stream and *_bound quantity also has a *_c_ic which
// can be set in the same manner to allow this
-----------
Forcing
-----------
body_forcing 1 // Used for the periodic channel test case. 0 = no forcing, 1 = forcing
-----------
Initial Profile: If ic_form=6, use these parameters to describe polynomial initial condition. Useful for cyclic problems. Specify coeffs of poly of form a + bx + cx^2 + dx^3 + ex^4 + by + cy^2 + dy^3 + ey^4 + bz + cz^2 + dz^3 + ez^4
-----------
// Coeffs of x-momentum [need the 13 so reader know how many quantities]
x_coeffs 13 1.875 0 0 0 0 0 0 0 0 0 -3.75 0 1.875
// Coeffs of y-momentum
y_coeffs 13 0 0 0 0 0 0 0 0 0 0 0 0 0
// Coeffs of y-momentum
z_coeffs 13 0 0 0 0 0 0 0 0 0 0 0 0 0
perturb_ic 1 // If 1, add velocity perturbation to kickstart turbulence in periodic channel. 0 otherwise.