Skip to content

Commit ef023f9

Browse files
committed
making the second pass, still need to readd some comments.
1 parent fa43fc1 commit ef023f9

279 files changed

Lines changed: 530 additions & 25892 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

TestCases/ddes/flatplate/ddes_flatplate.cfg

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
% Author: Thomas D. Economon %
66
% Institution: Stanford University %
77
% Date: 2011.11.10 %
8-
% File Version 7.4.0 "Blackbird" %
8+
% File Version 7.4.0 "Blackbird" %
99
% %
1010
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1111

@@ -56,24 +56,11 @@ MARKER_MONITORING= ( wall )
5656

5757
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
5858
%
59-
% Numerical method for spatial gradients (GREEN_GAUSS, LEAST_SQUARES,
60-
% WEIGHTED_LEAST_SQUARES)
6159
NUM_METHOD_GRAD= GREEN_GAUSS
62-
%
63-
% Courant-Friedrichs-Lewy condition of the finest grid
6460
CFL_NUMBER= 10.0
65-
%
66-
% Adaptive CFL number (NO, YES)
6761
CFL_ADAPT= NO
68-
%
69-
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
70-
% CFL max value )
7162
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
72-
%
73-
% Runge-Kutta alpha coefficients
7463
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
75-
%
76-
% Number of total iterations
7764
TIME_ITER= 10
7865

7966
% ----------------------- SLOPE LIMITER DEFINITION ----------------------------%

TestCases/deformation/brick_hex_rans/def_brick_hex_rans.cfg

Lines changed: 2 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -17,231 +17,94 @@ RESTART_SOL= NO
1717

1818
% ----------- COMPRESSIBLE AND INCOMPRESSIBLE FREE-STREAM DEFINITION ----------%
1919
%
20-
% Mach number (non-dimensional, based on the free-stream values)
2120
MACH_NUMBER= 0.5
22-
%
23-
% Angle of attack (degrees)
2421
AOA= 0.0
25-
%
26-
% Free-stream pressure (101325.0 N/m^2 by default, only Euler flows)
2722
FREESTREAM_PRESSURE= 101325.0
28-
%
29-
% Free-stream temperature (273.15 K by default)
3023
FREESTREAM_TEMPERATURE= 273.15
3124

3225
% -------------- COMPRESSIBLE AND INCOMPRESSIBLE FLUID CONSTANTS --------------%
3326
%
34-
% Ratio of specific heats (1.4 (air), only for compressible flows)
3527
GAMMA_VALUE= 1.4
36-
%
37-
% Specific gas constant (287.87 J/kg*K (air), only for compressible flows)
3828
GAS_CONSTANT= 287.87
3929

4030
% ---------------------- REFERENCE VALUE DEFINITION ---------------------------%
4131
%
42-
% Reference origin for moment computation (m or in)
4332
REF_ORIGIN_MOMENT_X = 0.25
4433
REF_ORIGIN_MOMENT_Y = 0.00
4534
REF_ORIGIN_MOMENT_Z = 0.00
46-
%
47-
% Reference length for pitching, rolling, and yawing non-dimensional moment
4835
REF_LENGTH= 1.0
49-
%
50-
% Reference area for force coefficients (0 implies automatic calculation)
5136
REF_AREA= 1.0
5237

5338
% ----------------------- BOUNDARY CONDITION DEFINITION -----------------------%
5439
%
55-
% Marker of the Euler boundary (0 = no marker)
5640
MARKER_EULER= ( z_m )
57-
%
58-
% Marker of the far field (0 = no marker)
5941
MARKER_FAR= ( x_p, x_m, y_p, z_p, y_m )
60-
%
61-
% Marker of the surface which is going to be plotted or designed
6242
MARKER_PLOTTING= ( z_m )
63-
%
64-
% Marker of the surface where the functional (Cd, Cl, etc.) will be evaluated
6543
MARKER_MONITORING= ( z_m )
6644

6745
% ------------- COMMON PARAMETERS TO DEFINE THE NUMERICAL METHOD --------------%
68-
% Numerical method for spatial gradients (GREEN_GAUSS, LEAST_SQUARES,
69-
% WEIGHTED_LEAST_SQUARES)
70-
NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
7146
%
72-
% Courant-Friedrichs-Lewy condition of the finest grid
47+
NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
7348
CFL_NUMBER= 4.0
74-
%
75-
% Runge-Kutta alpha coefficients
7649
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
77-
%
78-
% Number of total iterations
7950
ITER= 5
80-
%
81-
% Linear solver for the implicit formulation (LU_SGS, SYM_GAUSS_SEIDEL, BCGSTAB)
8251
LINEAR_SOLVER= FGMRES
83-
%
84-
% Min error of the linear solver for the implicit formulation
8552
LINEAR_SOLVER_ERROR= 1E-6
86-
%
87-
% Max number of iterations of the linear solver for the implicit formulation
8853
LINEAR_SOLVER_ITER= 5
8954

9055
% --------------------- FLOW NUMERICAL METHOD DEFINITION ----------------------%
9156
%
92-
% Convective numerical method (JST, LAX-FRIEDRICH, ROE-1ST_ORDER,
93-
% ROE-2ND_ORDER, AUSM-1ST_ORDER, AUSM-2ND_ORDER,
94-
% HLLC-1ST_ORDER, HLLC-2ND_ORDER)
9557
CONV_NUM_METHOD_FLOW= JST
96-
%
97-
% 2nd and 4th order artificial dissipation coefficients
9858
JST_SENSOR_COEFF= ( 0.5, 0.02 )
99-
%
100-
% Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT)
10159
TIME_DISCRE_FLOW= EULER_IMPLICIT
10260

10361
% ----------------------- DESIGN VARIABLE PARAMETERS --------------------------%
10462
%
105-
% Kind of deformation (TRANSLATION, ROTATION, SCALE,
106-
% FFD_SETTING,
107-
% FFD_CONTROL_POINT, FFD_CAMBER, FFD_THICKNESS
108-
% FFD_NACELLE, FFD_TWIST, FFD_ROTATION,
109-
% FFD_CONTROL_POINT_2D, FFD_CAMBER_2D, FFD_THICKNESS_2D,
110-
% HICKS_HENNE, PARABOLIC, NACA_4DIGITS, AIRFOIL)
11163
DV_KIND= FFD_CONTROL_POINT
112-
%
113-
% Marker of the surface in which we are going apply the shape deformation
11464
DV_MARKER= ( z_m )
115-
%
116-
% Parameters of the shape deformation
117-
% - TRANSLATION ( x_Disp, y_Disp, z_Disp ), as a unit vector
118-
% - ROTATION ( x_Orig, y_Orig, z_Orig, x_End, y_End, z_End )
119-
% - SCALE ( 1.0 )
120-
% - FFD_SETTING ( 1.0 )
121-
% - FFD_CONTROL_POINT ( FFD_BoxTag, i_Ind, j_Ind, k_Ind, x_Disp, y_Disp, z_Disp )
122-
% - FFD_CAMBER ( FFD_BoxTag, i_Ind, j_Ind )
123-
% - FFD_THICKNESS ( FFD_BoxTag, i_Ind, j_Ind )
124-
% - FFD_TWIST_ANGLE ( FFD_BoxTag, x_Orig, y_Orig, z_Orig, x_End, y_End, z_End )
125-
% - FFD_ROTATION ( FFD_BoxTag, x_Orig, y_Orig, z_Orig, x_End, y_End, z_End )
126-
% - FFD_CONTROL_POINT_2D ( FFD_BoxTag, i_Ind, j_Ind, x_Disp, y_Disp )
127-
% - FFD_CAMBER_2D ( FFD_BoxTag, i_Ind )
128-
% - FFD_THICKNESS_2D ( FFD_BoxTag, i_Ind )
129-
% - HICKS_HENNE ( Lower Surface (0)/Upper Surface (1)/Only one Surface (2), x_Loc )
130-
% - PARABOLIC ( Center, Thickness )
131-
% - NACA_4DIGITS ( 1st digit, 2nd digit, 3rd and 4th digit )
132-
% - AIRFOIL ( 1.0 )
13365
DV_PARAM= ( MAIN_BOX, 2, 2, 1, 0.0, 0.0, 1.0 )
134-
%
135-
% Value of the shape deformation
13666
DV_VALUE= 3.0
13767

13868
% ------------------------ GRID DEFORMATION PARAMETERS ------------------------%
13969
%
140-
% Linear solver or smoother for implicit formulations (FGMRES, RESTARTED_FGMRES, BCGSTAB)
14170
DEFORM_LINEAR_SOLVER= FGMRES
142-
%
143-
% Preconditioner of the Krylov linear solver (ILU, LU_SGS, JACOBI)
14471
DEFORM_LINEAR_SOLVER_PREC= LU_SGS
145-
%
146-
% Number of smoothing iterations for mesh deformation
14772
DEFORM_LINEAR_SOLVER_ITER= 1000
148-
%
149-
% Number of nonlinear deformation iterations (surface deformation increments)
15073
DEFORM_NONLINEAR_ITER= 1
151-
%
152-
% Print the residuals during mesh deformation to the console (YES, NO)
15374
DEFORM_CONSOLE_OUTPUT= YES
154-
%
155-
% Minimum residual criteria for the linear solver convergence of grid deformation
15675
DEFORM_LINEAR_SOLVER_ERROR= 1E-14
157-
%
158-
% Deformation coefficient (in theory from -1.0 to 0.5, a large value is also valid)
15976
DEFORM_COEFF = 1E6
160-
%
161-
% Type of element stiffness imposed for FEA mesh deformation (INVERSE_VOLUME,
162-
% WALL_DISTANCE, CONSTANT_STIFFNESS)
16377
DEFORM_STIFFNESS_TYPE= INVERSE_VOLUME
16478

16579
% -------------------- FREE-FORM DEFORMATION PARAMETERS -----------------------%
16680
%
167-
% Tolerance of the Free-Form Deformation point inversion
16881
FFD_TOLERANCE= 1E-15
169-
%
170-
% Maximum number of iterations in the Free-Form Deformation point inversion
17182
FFD_ITERATIONS= 1000
172-
%
173-
% FFD box definition: 3D case (FFD_BoxTag, X1, Y1, Z1, X2, Y2, Z2, X3, Y3, Z3, X4, Y4, Z4,
174-
% X5, Y5, Z5, X6, Y6, Z6, X7, Y7, Z7, X8, Y8, Z8)
175-
% 2D case (FFD_BoxTag, X1, Y1, 0.0, X2, Y2, 0.0, X3, Y3, 0.0, X4, Y4, 0.0,
176-
% 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
17783
FFD_DEFINITION= (MAIN_BOX, 0.01, 0.01, -0.25, 1.99, 0.01, -0.25, 1.99, 0.99, -0.25, 0.01, 0.99, -0.25, 0.01, 0.01, 0.25, 1.99, 0.01, 0.25, 1.99, 0.99, 0.25, 0.01, 0.99, 0.25)
178-
%
179-
% FFD box degree: 3D case (x_degree, y_degree, z_degree)
180-
% 2D case (x_degree, y_degree, 0)
18184
FFD_DEGREE= (4, 4, 1)
182-
%
183-
% Surface continuity at the intersection with the FFD (1ST_DERIVATIVE, 2ND_DERIVATIVE)
18485
FFD_CONTINUITY= 1ST_DERIVATIVE
18586

18687
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
18788
%
188-
%
189-
% Min value of the residual (log10 of the residual)
19089
CONV_RESIDUAL_MINVAL= -10
191-
%
192-
% Start Cauchy criteria at iteration number
19390
CONV_STARTITER= 10
194-
%
195-
% Number of elements to apply the criteria
19691
CONV_CAUCHY_ELEMS= 100
197-
%
198-
% Epsilon to control the series convergence
19992
CONV_CAUCHY_EPS= 1E-6
200-
%
20193

20294
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
203-
% Mesh input file
204-
MESH_FILENAME= mesh_brick_hex_rans_ffd.su2
20595
%
206-
% Mesh input file format (SU2, CGNS, NETCDF_ASCII)
96+
MESH_FILENAME= mesh_brick_hex_rans_ffd.su2
20797
MESH_FORMAT= SU2
208-
%
209-
% Mesh output file
21098
MESH_OUT_FILENAME= mesh_out.su2
211-
%
212-
% Restart flow input file
21399
SOLUTION_FILENAME= solution_flow.dat
214-
%
215-
% Restart adjoint input file
216100
SOLUTION_ADJ_FILENAME= solution_adj.dat
217-
%
218101
TABULAR_FORMAT= CSV
219-
%
220-
% Output file convergence history (w/o extension)
221102
CONV_FILENAME= history
222-
%
223-
% Output file restart flow
224103
RESTART_FILENAME= restart_flow.dat
225-
%
226-
% Output file restart adjoint
227104
RESTART_ADJ_FILENAME= restart_adj.dat
228-
%
229-
% Output file flow (w/o extension) variables
230105
VOLUME_FILENAME= flow
231-
%
232-
% Output file adjoint (w/o extension) variables
233106
VOLUME_ADJ_FILENAME= adjoint
234-
%
235-
% Output Objective function gradient (using continuous adjoint)
236107
GRAD_OBJFUNC_FILENAME= of_grad.dat
237-
%
238-
% Output file surface flow coefficient (w/o extension)
239108
SURFACE_FILENAME= surface_flow
240-
%
241-
% Output file surface adjoint coefficient (w/o extension)
242109
SURFACE_ADJ_FILENAME= surface_adjoint
243-
%
244-
% Writing solution file frequency
245110
OUTPUT_WRT_FREQ= 250
246-
%
247-

0 commit comments

Comments
 (0)