Sei sulla pagina 1di 7

su2code / su2code.github.

Sign up

Code Issues 0 Pull requests 0 Projects 0 Security Pulse

Dismiss
Join GitHub today
GitHub is home to over 36 million developers working together to
host and review code, manage projects, and build software together.

Sign up

master

Find file Copy path

su2code.github.io / Multi_Objective_Shape_Design / inv_wedge_ROE_multiobj_combo.cfg

economon Removing options for DEFORM_TOL_FACTOR. e173066 Dec 2, 2018

2 contributors

409 lines (395 sloc) 15.2 KB

Raw Blame History

1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % %
3 % SU2 configuration file %
4 % Case description: Multi-objective optimization for outflow averaged pressure %
5 % and a quadratic penalty function on a surface drag constraint, using %
6 % combined evaluation of the gradient rather than separate gradient %
7 % evaluations for each function. %
8 % For the definition of the penalty function see 'obj_p' method defined in %
9 % SU2/SU2_PY/SU2/eval/designs.py %
10 % Author: H.L. Kline, modified from inviscid wedge by Thomas D. Economon %
11 % Institution: Stanford University %
12 % Date: 2018.01.07 %
13 % File Version 4.0.1 "Cardinal" %
14 % %
15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16
17 % ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
18 %
19 % Physical governing equations (EULER, NAVIER_STOKES,
20 % TNE2_EULER, TNE2_NAVIER_STOKES,
21 % WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
22 % POISSON_EQUATION)
23 PHYSICAL_PROBLEM= EULER
24 %
25 % Mathematical problem (DIRECT, CONTINUOUS_ADJOINT)
26 MATH_PROBLEM= CONTINUOUS_ADJOINT
27 %
28 % Restart solution (NO, YES)
29 RESTART_SOL= YES
30 %
31 % Number of Zones
32 NZONES= 1
33 % ----------- COMPRESSIBLE AND INCOMPRESSIBLE FREE-STREAM DEFINITION ----------%
34 %
35 % Mach number (non-dimensional, based on the free-stream values)
36 MACH_NUMBER= 2.0
37 %
37 %
38 % Angle of attack (degrees)
39 AOA= 0.0
40 %
41 % Side-slip angle (degrees)
42 SIDESLIP_ANGLE= 0.0
43 %
44 % Free-stream pressure (101325.0 N/m^2 by default, only Euler flows)
45 FREESTREAM_PRESSURE= 100000.0
46 %
47 % Free-stream temperature (288.15 K by default)
48 FREESTREAM_TEMPERATURE= 300.0
49
50 % ---------------------- REFERENCE VALUE DEFINITION ---------------------------%
51 %
52 % Reference origin for moment computation
53 REF_ORIGIN_MOMENT_X = 0.25
54 REF_ORIGIN_MOMENT_Y = 0.00
55 REF_ORIGIN_MOMENT_Z = 0.00
56 %
57 % Reference length for pitching, rolling, and yawing non-dimensional moment
58 REF_LENGTH= 1.0
59 %
60 % Reference area for force coefficients (0 implies automatic calculation)
61 REF_AREA= 1.0
62
63 % -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
64 %
65 % Euler wall boundary marker(s) (NONE = no marker)
66 MARKER_EULER= ( upper, lower )
67 %
68 % Supersonic inlet boundary marker(s) (NONE = no marker)
69 % Total Conditions: (inlet marker, temperature, static pressure, velocity_x,
70 % velocity_y, velocity_z, ... ), i.e. all variables specified.
71 MARKER_SUPERSONIC_INLET= ( inlet, 300.0, 100000.0, 695.4290761824674, 0.0, 0.0 )
72 %
73 % Outlet boundary marker(s) (NONE = no marker)
74 % Format: ( outlet marker, back pressure (static), ... )
75 MARKER_OUTLET= ( outlet, 10000.0 )
76 %
77 % Marker(s) of the surface to be plotted or designed
78 MARKER_PLOTTING= ( lower )
79 %
80 % Marker(s) of the surface where the functional (Cd, Cl, etc.) will be evaluated
81 MARKER_MONITORING= (outlet, lower)
82
83 % ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
84 %
85 % Numerical method for spatial gradients (GREEN_GAUSS, LEAST_SQUARES,
86 % WEIGHTED_LEAST_SQUARES)
87 NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
88 %
89 % Courant-Friedrichs-Lewy condition of the finest grid
90 CFL_NUMBER= 1.0
91 %
92 % Adaptive CFL number (NO, YES)
93 CFL_ADAPT= YES
94 %
95 % Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
96 % CFL max value )
97 CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
98 %
99 % Runge-Kutta alpha coefficients
100 RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
101 %
102 % Number of total iterations
103 EXT_ITER=1000
104 %
105 % Linear solver for the implicit formulation (BCGSTAB, FGMRES)
105 % Linear solver for the implicit formulation (BCGSTAB, FGMRES)
106 LINEAR_SOLVER= BCGSTAB
107 %
108 % Min error of the linear solver for the implicit formulation
109 LINEAR_SOLVER_ERROR= 1E-6
110 %
111 % Max number of iterations of the linear solver for the implicit formulation
112 LINEAR_SOLVER_ITER= 5
113 %
114 % Preconditioner of the Krylov linear solver (ILU, LU_SGS, LINELET, JACOBI)
115 LINEAR_SOLVER_PREC= ILU
116 %
117 % Linael solver ILU preconditioner fill-in level (1 by default)
118 LINEAR_SOLVER_ILU_FILL_IN= 0
119
120
121
122 % -------------------------- MULTIGRID PARAMETERS -----------------------------%
123 %
124 % Multi-Grid Levels (0 = no multi-grid)
125 MGLEVEL= 2
126 %
127 % Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
128 MGCYCLE= V_CYCLE
129 %
130 % Multi-grid pre-smoothing level
131 MG_PRE_SMOOTH= ( 1, 2, 3, 3 )
132 %
133 % Multi-grid post-smoothing level
134 MG_POST_SMOOTH= ( 0, 0, 0, 0 )
135 %
136 % Jacobi implicit smoothing of the correction
137 MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 )
138 %
139 % Damping factor for the residual restriction
140 MG_DAMP_RESTRICTION= 0.8
141 %
142 % Damping factor for the correction prolongation
143 MG_DAMP_PROLONGATION= 0.8
144
145 % -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
146 %
147 % Convective numerical method (JST, LAX-FRIEDRICH, CUSP, ROE, AUSM, HLLC,
148 % TURKEL_PREC, MSW)
149 CONV_NUM_METHOD_FLOW= ROE
150 %
151 % Monotonic Upwind Scheme for Conservation Laws (TVD) in the flow equations.
152 % Required for 2nd order upwind schemes (NO, YES)
153 MUSCL_FLOW= YES
154 %
155 % Slope limiter (VENKATAKRISHNAN, MINMOD)
156 SLOPE_LIMITER_FLOW= NONE
157 %
158 % Coefficient for the limiter (smooth regions)
159 VENKAT_LIMITER_COEFF= 0.006
160 %
161 % 2nd and 4th order artificial dissipation coefficients
162 JST_SENSOR_COEFF= ( 0.5, 0.02 )
163 %
164 % Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT)
165 TIME_DISCRE_FLOW= EULER_IMPLICIT
166
167 % ---------------- ADJOINT-FLOW NUMERICAL METHOD DEFINITION -------------------%
168 %
169 % Convective numerical method (JST, LAX-FRIEDRICH, ROE)
170 CONV_NUM_METHOD_ADJFLOW= ROE
171 %
172 % Monotonic Upwind Scheme for Conservation Laws (TVD) in the adjoint flow equations.
173 % Required for 2nd order upwind schemes (NO, YES)
173 % Required for 2nd order upwind schemes (NO, YES)
174 MUSCL_ADJFLOW= YES
175 %
176 % Slope limiter (NONE, VENKATAKRISHNAN, BARTH_JESPERSEN, VAN_ALBADA_EDGE,
177 % SHARP_EDGES, WALL_DISTANCE)
178 SLOPE_LIMITER_ADJFLOW= NONE
179 %
180 % 2nd, and 4th order artificial dissipation coefficients
181 ADJ_JST_SENSOR_COEFF= ( 0.5, 0.02 )
182 %
183 % Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT)
184 TIME_DISCRE_ADJFLOW= EULER_IMPLICIT
185 %
186 % Relaxation coefficient
187 RELAXATION_FACTOR_ADJFLOW= 1.0
188 %
189 % Reduction factor of the CFL coefficient in the adjoint problem
190 CFL_REDUCTION_ADJFLOW= 0.8
191 %
192 % Limit value for the adjoint variable
193 LIMIT_ADJFLOW= 1E15
194 %
195 % Multigrid adjoint problem (NO, YES)
196 MG_ADJFLOW= NO
197 %
198 % Objective function in gradient evaluation (DRAG, LIFT, SIDEFORCE, MOMENT_X,
199 % MOMENT_Y, MOMENT_Z, EFFICIENCY,
200 % EQUIVALENT_AREA, NEARFIELD_PRESSURE,
201 % FORCE_X, FORCE_Y, FORCE_Z, THRUST,
202 % TORQUE, FREE_SURFACE, TOTAL_HEATFLUX,
203 % MAXIMUM_HEATFLUX, INVERSE_DESIGN_PRESSURE,
204 % INVERSE_DESIGN_HEATFLUX, SURFACE_TOTAL_PRESSURE,
205 % SURFACE_MASSFLOW)
206 % For a weighted sum of objectives: separate by commas, add OBJECTIVE_WEIGHT and MARKER_MONITORING in matching order.
207 OBJECTIVE_FUNCTION = SURFACE_TOTAL_PRESSURE, DRAG
208 %
209 % List of weighting values when using more than one OBJECTIVE_FUNCTION. Separate by commas and match with MARKER_MONITORING.
210 OBJECTIVE_WEIGHT= -1.0E-7,1.0
211 %
212 % Marker on which to track one-dimensionalized quantities
213 MARKER_ANALYZE = (outlet)
214 %
215 % Method to compute the average value in MARKER_ANALYZE (AREA, MASSFLUX).
216 MARKER_ANALYZE_AVERAGE = AREA
217
218 % --------------------------- CONVERGENCE PARAMETERS --------------------------%
219 %
220 % Convergence criteria (CAUCHY, RESIDUAL)
221 %
222 CONV_CRITERIA= RESIDUAL
223 %
224 % Residual reduction (order of magnitude with respect to the initial value)
225 RESIDUAL_REDUCTION= 10
226 %
227 % Min value of the residual (log10 of the residual)
228 RESIDUAL_MINVAL= -11
229 %
230 % Start convergence criteria at iteration number
231 STARTCONV_ITER= 10
232 %
233 % ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
234 %
235 % Mesh input file
236 MESH_FILENAME= mesh_wedge_inv_FFD.su2
237 %
238 % Mesh input file format (SU2, CGNS, NETCDF_ASCII)
239 MESH_FORMAT= SU2
240 %
241 % Mesh output file
242 MESH_OUT_FILENAME= mesh_out.su2
243 %
244 % Restart flow input file
245 SOLUTION_FLOW_FILENAME= solution_flow.dat
246 %
247 % Restart adjoint input file
248 SOLUTION_ADJ_FILENAME= solution_adj.dat
249 %
250 % Output file format (PARAVIEW, TECPLOT)
251 OUTPUT_FORMAT= TECPLOT
252 %
253 % Output file convergence history (w/o extension)
254 CONV_FILENAME= history
255 %
256 % Output file restart flow
257 RESTART_FLOW_FILENAME= restart_flow.dat
258 %
259 % Output file restart adjoint
260 RESTART_ADJ_FILENAME= restart_adj.dat
261 %
262 % Output file flow (w/o extension) variables
263 VOLUME_FLOW_FILENAME= flow
264 %
265 % Output file adjoint (w/o extension) variables
266 VOLUME_ADJ_FILENAME= adjoint
267 %
268 % Output objective function gradient (using continuous adjoint)
269 GRAD_OBJFUNC_FILENAME= of_grad.dat
270 %
271 % Output file surface flow coefficient (w/o extension)
272 SURFACE_FLOW_FILENAME= surface_flow
273 %
274 % Output file surface adjoint coefficient (w/o extension)
275 SURFACE_ADJ_FILENAME= surface_adjoint
276 %
277 % Writing solution file frequency
278 WRT_SOL_FREQ= 250
279 %
280 % Writing convergence history frequency
281 WRT_CON_FREQ= 1
282 %
283 % Write binary restart files
284 WRT_BINARY_RESTART = NO
285 %
286 % Read binary restart files
287 READ_BINARY_RESTART = NO
288
289 % -------------------- FREE-FORM DEFORMATION PARAMETERS -----------------------%
290 %
291 % Tolerance of the Free-Form Deformation point inversion
292 FFD_TOLERANCE= 1E-10
293 %
294 % Maximum number of iterations in the Free-Form Deformation point inversion
295 FFD_ITERATIONS= 500
296 %
297 % FFD box definition: 3D case (FFD_BoxTag, X1, Y1, Z1, X2, Y2, Z2, X3, Y3, Z3, X4, Y4, Z4,
298 % X5, Y5, Z5, X6, Y6, Z6, X7, Y7, Z7, X8, Y8, Z8)
299 % 2D case (FFD_BoxTag, X1, Y1, 0.0, X2, Y2, 0.0, X3, Y3, 0.0, X4, Y4, 0.0,
300 % 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
301 FFD_DEFINITION= (MAIN_BOX, 0.5, -0.25, 0, 1.5, -0.25, 0, 1.5, 0.25, 0, 0.5, 0.25, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
302 %
303 % FFD box degree: 3D case (x_degree, y_degree, z_degree)
304 % 2D case (x_degree, y_degree, 0)
305 FFD_DEGREE= (10, 1,0)
306 %
307 % Surface continuity at the intersection with the FFD (1ST_DERIVATIVE, 2ND_DERIVATIVE)
308 FFD_CONTINUITY= 2ND_DERIVATIVE
309 % ------------------------ GRID DEFORMATION PARAMETERS ------------------------%
310 %
311 % Kind of deformation (FFD_SETTING, HICKS_HENNE, HICKS_HENNE_NORMAL, PARABOLIC,
312 % HICKS_HENNE_SHOCK, NACA_4DIGITS, DISPLACEMENT, ROTATION,
313 % FFD_CONTROL_POINT, FFD_DIHEDRAL_ANGLE, FFD_TWIST_ANGLE,
314 % FFD_ROTATION)
315 % Marker of the surface in which we are going apply the shape deformation
316 DV_MARKER= ( lower )
317 %
318 DV_KIND= FFD_CONTROL_POINT_2D
319 %
320 %
321 % Parameters of the shape deformation
322 % - HICKS_HENNE_FAMILY ( Lower(0)/Upper(1) side, x_Loc )
323 % - NACA_4DIGITS ( 1st digit, 2nd digit, 3rd and 4th digit )
324 % - PARABOLIC ( 1st digit, 2nd and 3rd digit )
325 % - DISPLACEMENT ( x_Disp, y_Disp, z_Disp )
326 % - ROTATION ( x_Orig, y_Orig, z_Orig, x_End, y_End, z_End )
327 DV_PARAM= (MAIN_BOX, 3,0, 0,1.0,0,0 )
328 %
329 % Value of the shape deformation deformation
330 DV_VALUE= 0.5
331 % Number of smoothing iterations for FEA mesh deformation
332 DEFORM_LINEAR_ITER= 500
333 %
334 % Number of nonlinear deformation iterations (surface deformation increments)
335 DEFORM_NONLINEAR_ITER= 1
336 %
337 % Print the residuals during mesh deformation to the console (YES, NO)
338 DEFORM_CONSOLE_OUTPUT= YES
339 %
340 % Minimum residual criteria for the linear solver convergence of grid deformation
341 DEFORM_LINEAR_SOLVER_ERROR= 1E-14
342 %
343 % Type of element stiffness imposed for FEA mesh deformation (INVERSE_VOLUME,
344 % WALL_DISTANCE, CONSTANT_STIFFNESS)
345 DEFORM_STIFFNESS_TYPE= INVERSE_VOLUME
346
347 % --------------------- OPTIMAL SHAPE DESIGN DEFINITION -----------------------%
348 %
349 % Available flow based objective functions or constraint functions
350 % DRAG, LIFT, SIDEFORCE, EFFICIENCY,
351 % FORCE_X, FORCE_Y, FORCE_Z,
352 % MOMENT_X, MOMENT_Y, MOMENT_Z,
353 % THRUST, TORQUE, FIGURE_OF_MERIT,
354 % EQUIVALENT_AREA, NEARFIELD_PRESSURE,
355 % TOTAL_HEATFLUX, MAXIMUM_HEATFLUX,
356 % INVERSE_DESIGN_PRESSURE, INVERSE_DESIGN_HEATFLUX,
357 % FREE_SURFACE, SURFACE_TOTAL_PRESSURE, SURFACE_MASSFLOW
358 %
359 % Available geometrical based objective functions or constraint functions
360 % AIRFOIL_AREA, AIRFOIL_THICKNESS, AIRFOIL_CHORD, AIRFOIL_TOC, AIRFOIL_AOA,
361 % WING_VOLUME, WING_MIN_THICKNESS, WING_MAX_THICKNESS, WING_MAX_CHORD, WING_MIN_TOC, WING_MAX_TWIST, WING_MAX_CURVATURE, WIN
362 % STATION#_WIDTH, STATION#_AREA, STATION#_THICKNESS, STATION#_CHORD, STATION#_TOC,
363 % STATION#_TWIST (where # is the index of the station defined in GEO_LOCATION_STATIONS)
364 %
365 % Available design variables
366 % HICKS_HENNE ( 1, Scale | Mark. List | Lower(0)/Upper(1) side, x_Loc )
367 % SPHERICAL ( 3, Scale | Mark. List | ControlPoint_Index, Theta_Disp, R_Disp )
368 % NACA_4DIGITS ( 4, Scale | Mark. List | 1st digit, 2nd digit, 3rd and 4th digit )
369 % DISPLACEMENT ( 5, Scale | Mark. List | x_Disp, y_Disp, z_Disp )
370 % ROTATION ( 6, Scale | Mark. List | x_Axis, y_Axis, z_Axis, x_Turn, y_Turn, z_Turn )
371 % FFD_CONTROL_POINT ( 7, Scale | Mark. List | FFD_BoxTag, i_Ind, j_Ind, k_Ind, x_Mov, y_Mov, z_Mov )
372 % FFD_TWIST ( 9, Scale | Mark. List | FFD_BoxTag, x_Orig, y_Orig, z_Orig, x_End, y_End, z_End )
373 % FFD_ROTATION ( 10, Scale | Mark. List | FFD_BoxTag, x_Orig, y_Orig, z_Orig, x_End, y_End, z_End )
374 % FFD_CAMBER ( 11, Scale | Mark. List | FFD_BoxTag, i_Ind, j_Ind )
375 % FFD_THICKNESS ( 12, Scale | Mark. List | FFD_BoxTag, i_Ind, j_Ind )
376 % FOURIER ( 14, Scale | Mark. List | Lower(0)/Upper(1) side, index, cos(0)/sin(1) )
377 % FFD_CONTROL_POINT_2D ( 15, Scale | Mark. List | FFD_BoxTag, i_Ind, j_Ind, x_Mov, y_Mov )
378 % FFD_CAMBER_2D ( 16, Scale | Mark. List | FFD_BoxTag, i_Ind )
379 % FFD_THICKNESS_2D ( 17, Scale | Mark. List | FFD_BoxTag, i_Ind )
380 % FFD_CONTROL_SURFACE ( 18, Scale | Mark. List | FFD_BoxTag, x_Orig, y_Orig, z_Orig, x_End, y_End, z_End )
381 %
382 % Optimization objective function with scaling factor, separated by semicolons.
383 % To include quadratic penalty function: use OPT_CONSTRAINT option syntax within the OPT_OBJECTIVE list.
384 % ex= Objective * Scale
385 OPT_OBJECTIVE=SURFACE_TOTAL_PRESSURE*-1E-4; (DRAG = 0.05)*1E6
386 %
387 % Use combined objective within gradient evaluation: may reduce cost to compute gradients when using the adjoint formulation.
388 OPT_COMBINE_OBJECTIVE = YES
389 %
390 % Optimization constraint functions with scaling factors, separated by semicolons
391 % ex= (Objective = Value ) * Scale, use '>','<','='
392 OPT_CONSTRAINT= NONE
393 %
394 % Maximum number of iterations
395 OPT_ITERATIONS= 10
396 %
397 % Requested accuracy
398 OPT_ACCURACY= 1E-6
399 %
400 % Upper bound for each design variable
401 OPT_BOUND_UPPER= 0.1
402 %
403 % Lower bound for each design variable
404 OPT_BOUND_LOWER= -0.1
405 %
406 % Optimization design variables, separated by semicolons
407 DEFINITION_DV= (15, 1.0| lower | MAIN_BOX, 3,0,0,1.0);(15, 1.0| lower | MAIN_BOX, 4,0,0,1.0);(15, 1.0| lower | MAIN_BOX, 5,0,0,
408

© 2019 GitHub, Inc.


Terms
Privacy
Security
Status
Help

Contact GitHub
Pricing
API
Training
Blog
About

Potrebbero piacerti anche