Skip to content

Commit d14f19f

Browse files
committed
Adding compressible flow tutorial files
1 parent 68fa895 commit d14f19f

26 files changed

+1984920
-0
lines changed
Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2+
% %
3+
% SU2 configuration file %
4+
% Case description: Inviscid, internal flow over a bump in a channel %
5+
% Author: Thomas D. Economon %
6+
% Institution: Stanford University %
7+
% Date: 2012.09.29 %
8+
% File Version 4.0.2 "Cardinal" %
9+
% %
10+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11+
12+
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
13+
%
14+
% Physical governing equations (EULER, NAVIER_STOKES, NS_PLASMA)
15+
%
16+
SOLVER= EULER
17+
%
18+
% Mathematical problem (DIRECT, CONTINUOUS_ADJOINT)
19+
MATH_PROBLEM= DIRECT
20+
%
21+
% Restart solution (NO, YES)
22+
RESTART_SOL= NO
23+
24+
% -------------------- COMPRESSIBLE FREE-STREAM DEFINITION --------------------%
25+
%
26+
% Mach number (non-dimensional, based on the free-stream values)
27+
MACH_NUMBER= 0.5
28+
%
29+
% Angle of attack (degrees, only for compressible flows)
30+
AOA= 0.0
31+
%
32+
% Side-slip angle (degrees, only for compressible flows)
33+
SIDESLIP_ANGLE= 0.0
34+
%
35+
% Free-stream pressure (101325.0 N/m^2 by default)
36+
FREESTREAM_PRESSURE= 101300.0
37+
%
38+
% Free-stream temperature (288.15 K by default)
39+
FREESTREAM_TEMPERATURE= 288.0
40+
41+
% ---------------------- REFERENCE VALUE DEFINITION ---------------------------%
42+
%
43+
% Reference origin for moment computation
44+
REF_ORIGIN_MOMENT_X = 0.25
45+
REF_ORIGIN_MOMENT_Y = 0.00
46+
REF_ORIGIN_MOMENT_Z = 0.00
47+
%
48+
% Reference length for pitching, rolling, and yawing non-dimensional moment
49+
REF_LENGTH= 1.0
50+
%
51+
% Reference area for force coefficients (0 implies automatic calculation)
52+
REF_AREA= 1.0
53+
54+
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
55+
%
56+
% Euler wall boundary marker(s) (NONE = no marker)
57+
MARKER_EULER= ( upper_wall, lower_wall )
58+
%
59+
% Inlet boundary type (TOTAL_CONDITIONS, MASS_FLOW)
60+
INLET_TYPE= TOTAL_CONDITIONS
61+
%
62+
% Inlet boundary marker(s) (NONE = no marker)
63+
% Format: ( inlet marker, total temperature, total pressure, flow_direction_x,
64+
% flow_direction_y, flow_direction_z, ... ) where flow_direction is
65+
% a unit vector.
66+
% Default: Mach ~ 0.1
67+
MARKER_INLET= ( inlet, 288.6, 102010.0, 1.0, 0.0, 0.0 )
68+
% Comment above line and uncomment next for Mach ~ 0.7 (transonic)
69+
%MARKER_INLET= ( inlet, 316.224, 140513.23, 1.0, 0.0, 0.0 )
70+
%
71+
% Outlet boundary marker(s) (NONE = no marker)
72+
% Format: ( outlet marker, back pressure (static), ... )
73+
MARKER_OUTLET= ( outlet, 101300.0 )
74+
75+
% ------------------------ SURFACES IDENTIFICATION ----------------------------%
76+
%
77+
% Marker(s) of the surface to be plotted or designed
78+
MARKER_PLOTTING= ( lower_wall )
79+
%
80+
% Marker(s) of the surface where the functional (Cd, Cl, etc.) will be evaluated
81+
MARKER_MONITORING= ( upper_wall, lower_wall )
82+
83+
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
84+
%
85+
% Numerical method for spatial gradients (GREEN_GAUSS, WEIGHTED_LEAST_SQUARES)
86+
NUM_METHOD_GRAD= GREEN_GAUSS
87+
%
88+
% Courant-Friedrichs-Lewy condition of the finest grid
89+
CFL_NUMBER= 50.0
90+
%
91+
% Adaptive CFL number (NO, YES)
92+
CFL_ADAPT= YES
93+
%
94+
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
95+
% CFL max value )
96+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 50.0, 1e10 )
97+
%
98+
% Runge-Kutta alpha coefficients
99+
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
100+
%
101+
% Number of total iterations
102+
ITER= 999999
103+
104+
% ------------------------ LINEAR SOLVER DEFINITION ---------------------------%
105+
%
106+
% Linear solver for implicit formulations (BCGSTAB, FGMRES)
107+
LINEAR_SOLVER= FGMRES
108+
%
109+
% Preconditioner of the Krylov linear solver (ILU, JACOBI, LINELET, LU_SGS)
110+
LINEAR_SOLVER_PREC= ILU
111+
%
112+
% Minimum error of the linear solver for implicit formulations
113+
LINEAR_SOLVER_ERROR= 1E-10
114+
%
115+
% Max number of iterations of the linear solver for the implicit formulation
116+
LINEAR_SOLVER_ITER= 20
117+
118+
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
119+
%
120+
% Multi-Grid Levels (0 = no multi-grid)
121+
MGLEVEL= 3
122+
%
123+
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
124+
MGCYCLE= W_CYCLE
125+
%
126+
% Multi-grid pre-smoothing level
127+
MG_PRE_SMOOTH= ( 1, 2, 3, 3 )
128+
%
129+
% Multi-grid post-smoothing level
130+
MG_POST_SMOOTH= ( 0, 0, 0, 0 )
131+
%
132+
% Jacobi implicit smoothing of the correction
133+
MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 )
134+
%
135+
% Damping factor for the residual restriction
136+
MG_DAMP_RESTRICTION= 1.0
137+
%
138+
% Damping factor for the correction prolongation
139+
MG_DAMP_PROLONGATION= 1.0
140+
141+
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
142+
%
143+
% Convective numerical method (JST, LAX-FRIEDRICH, CUSP, ROE, AUSM, HLLC,
144+
% TURKEL_PREC, MSW)
145+
CONV_NUM_METHOD_FLOW= JST
146+
%
147+
% 2nd and 4th order artificial dissipation coefficients
148+
JST_SENSOR_COEFF= ( 0.5, 0.02 )
149+
%
150+
% Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT)
151+
TIME_DISCRE_FLOW= EULER_IMPLICIT
152+
153+
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
154+
%
155+
% Convergence criteria (CAUCHY, RESIDUAL)
156+
CONV_FIELD= RMS_DENSITY
157+
%
158+
% Min value of the residual (log10 of the residual)
159+
CONV_RESIDUAL_MINVAL= -10
160+
%
161+
% Start convergence criteria at iteration number
162+
CONV_STARTITER= 10
163+
%
164+
% Number of elements to apply the criteria
165+
CONV_CAUCHY_ELEMS= 100
166+
%
167+
% Epsilon to control the series convergence
168+
CONV_CAUCHY_EPS= 1E-10
169+
170+
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
171+
%
172+
% Mesh input file
173+
MESH_FILENAME= mesh_channel_256x128.su2
174+
%
175+
% Mesh input file format (SU2, CGNS, NETCDF_ASCII)
176+
MESH_FORMAT= SU2
177+
%
178+
% Mesh output file
179+
MESH_OUT_FILENAME= mesh_out.su2
180+
%
181+
% Restart flow input file
182+
SOLUTION_FILENAME= solution_flow.dat
183+
%
184+
% Restart adjoint input file
185+
SOLUTION_ADJ_FILENAME= solution_adj.dat
186+
%
187+
% Output file format (PARAVIEW, TECPLOT, STL)
188+
TABULAR_FORMAT= CSV
189+
%
190+
% Output file convergence history (w/o extension)
191+
CONV_FILENAME= history
192+
%
193+
% Output file restart flow
194+
RESTART_FILENAME= restart_flow.dat
195+
%
196+
% Output file restart adjoint
197+
RESTART_ADJ_FILENAME= restart_adj.dat
198+
%
199+
% Output file flow (w/o extension) variables
200+
VOLUME_FILENAME= flow
201+
%
202+
% Output file adjoint (w/o extension) variables
203+
VOLUME_ADJ_FILENAME= adjoint
204+
%
205+
% Output objective function gradient (using continuous adjoint)
206+
GRAD_OBJFUNC_FILENAME= of_grad.dat
207+
%
208+
% Output file surface flow coefficient (w/o extension)
209+
SURFACE_FILENAME= surface_flow
210+
%
211+
% Output file surface adjoint coefficient (w/o extension)
212+
SURFACE_ADJ_FILENAME= surface_adjoint
213+
%
214+
% Writing solution file frequency
215+
WRT_SOL_FREQ= 250
216+
%
217+
% Writing convergence history frequency
218+
WRT_CON_FREQ= 1
219+
%
220+
% Screen output
221+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)

0 commit comments

Comments
 (0)