Skip to content

Commit 1d14e38

Browse files
committed
Cleaned regression tests for rough flat plate and moved to parallel regression
1 parent 26ce36f commit 1d14e38

File tree

6 files changed

+49
-469
lines changed

6 files changed

+49
-469
lines changed

SU2_CFD/src/solvers/CTurbSSTSolver.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ void CTurbSSTSolver::BC_HeatFlux_Wall(CGeometry *geometry, CSolver **solver_cont
491491
nodes->SetSolution_Old(iPoint,solution);
492492
nodes->SetSolution(iPoint,solution);
493493
LinSysRes.SetBlock_Zero(iPoint);
494-
495494
} else { // smooth wall
496495
/*--- Set wall values ---*/
497496
su2double density = solver_container[FLOW_SOL]->GetNodes()->GetDensity(iPoint);

TestCases/parallel_regression.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,22 @@ def main():
408408
turb_flatplate_CC_Sarkar.test_vals = [-1.195053, 2.089306, 1.529063, 5.164703, -3.700917, 8.162921]
409409
test_list.append(turb_flatplate_CC_Sarkar)
410410

411+
# FLAT PLATE, ROUGHNESS BC KNOPP SST
412+
turb_flatplate_sst_roughBCKnopp = TestCase('turb_sst_flatplate_roughBCKnopp')
413+
turb_flatplate_sst_roughBCKnopp.cfg_dir = "rans/flatplate/roughness/bc_knopp"
414+
turb_flatplate_sst_roughBCKnopp.cfg_file = "turb_SST_flatplate_roughBCKnopp.cfg"
415+
turb_flatplate_sst_roughBCKnopp.test_iter = 10
416+
turb_flatplate_sst_roughBCKnopp.test_vals = [10.000000, 0.053020, -3.454853, -0.684543, -0.886080, 2.140376, 1.043068, 4.808919, -0.203494, 0.053645]
417+
test_list.append(turb_flatplate_sst_roughBCKnopp)
418+
419+
# FLAT PLATE, ROUGHNESS BC AUPOIX SST
420+
turb_flatplate_sst_roughBCAupoix = TestCase('turb_sst_flatplate_roughBCAupoix')
421+
turb_flatplate_sst_roughBCAupoix.cfg_dir = "rans/flatplate/roughness/bc_aupoix"
422+
turb_flatplate_sst_roughBCAupoix.cfg_file = "turb_SST_flatplate_roughBCAupoix.cfg"
423+
turb_flatplate_sst_roughBCAupoix.test_iter = 10
424+
turb_flatplate_sst_roughBCAupoix.test_vals = [10.000000, 0.053252, -3.575414, -0.761810, -0.998912, 2.003238, 0.907276, 4.807309, -0.197354, 0.051349]
425+
test_list.append(turb_flatplate_sst_roughBCAupoix)
426+
411427
# ONERA M6 Wing
412428
turb_oneram6 = TestCase('turb_oneram6')
413429
turb_oneram6.cfg_dir = "rans/oneram6"
Lines changed: 11 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -1,248 +1,109 @@
1-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2-
% %
3-
% SU2 configuration file %
4-
% Case description: Turbulent flow over flat plate with zero pressure gradient %
5-
% Author: Thomas D. Economon %
6-
% Institution: Stanford University %
7-
% Date: 2011.11.10 %
8-
% File Version 5.0.0 "Raven" %
9-
% %
10-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2+
% %
3+
% SU2 configuration file %
4+
% Case description: Turbulent flow over rough flat plate with zero pressure gradient %
5+
% Author: Thomas D. Economon %
6+
% Institution: Stanford University %
7+
% Date: 2011.11.10 %
8+
% File Version 8.3.0 "Harrier" %
9+
% %
10+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1111

1212
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
1313
%
14-
% Physical governing equations (EULER, NAVIER_STOKES,
15-
% WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
16-
% POISSON_EQUATION)
1714
SOLVER= RANS
18-
%
19-
% If Navier-Stokes, kind of turbulent model (NONE, SA, SA_NEG, SST)
2015
KIND_TURB_MODEL= SST
2116
WALL_ROUGHNESS = (wall, 400e-6)
2217
KIND_ROUGHSST_MODEL = LIMITER_AUPOIX
23-
%
24-
% Mathematical problem (DIRECT, CONTINUOUS_ADJOINT)
2518
MATH_PROBLEM= DIRECT
26-
%
27-
% Restart solution (NO, YES)
2819
RESTART_SOL= NO
2920
READ_BINARY_RESTART= YES
3021

3122
% ----------- COMPRESSIBLE AND INCOMPRESSIBLE FREE-STREAM DEFINITION ----------%
32-
%
33-
% Mach number (non-dimensional, based on the free-stream values)
3423
MACH_NUMBER= 0.2
35-
%
36-
% Angle of attack (degrees)
3724
AOA= 0.0
38-
%
39-
% Side-slip angle (degrees)
4025
SIDESLIP_ANGLE= 0.0
41-
%
42-
% Free-stream temperature (288.15 K by default)
4326
FREESTREAM_TEMPERATURE= 300.0
44-
%
45-
% Reynolds number (non-dimensional, based on the free-stream values)
4627
REYNOLDS_NUMBER= 5000000.0
47-
%
48-
% Reynolds length (in meters)
4928
REYNOLDS_LENGTH= 1.0
5029

5130
% ---------------------- REFERENCE VALUE DEFINITION ---------------------------%
5231
%
53-
% Reference origin for moment computation
5432
REF_ORIGIN_MOMENT_X = 0.25
5533
REF_ORIGIN_MOMENT_Y = 0.00
5634
REF_ORIGIN_MOMENT_Z = 0.00
57-
%
58-
% Reference length for pitching, rolling, and yawing non-dimensional moment
5935
REF_LENGTH= 1.0
60-
%
61-
% Reference area for force coefficients (0 implies automatic calculation)
6236
REF_AREA= 2.0
6337

6438
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
6539
%
66-
% Navier-Stokes wall boundary marker(s) (NONE = no marker)
6740
MARKER_HEATFLUX= ( wall, 0.0 )
68-
%
69-
% Inlet boundary marker(s) (NONE = no marker)
70-
% Format: ( inlet marker, total temperature, total pressure, flow_direction_x,
71-
% flow_direction_y, flow_direction_z, ... )
7241
MARKER_INLET= ( inlet, 302.4, 118309.784, 1.0, 0.0, 0.0 )
73-
%
74-
% Outlet boundary marker(s) (NONE = no marker)
75-
% Format: ( outlet marker, back pressure, ... )
7642
MARKER_OUTLET= ( outlet, 115056.0, farfield, 115056.0 )
77-
%
78-
% Symmetry boundary marker(s) (NONE = no marker)
7943
MARKER_SYM= ( symmetry )
80-
%
81-
% Marker(s) of the surface to be plotted or designed
8244
MARKER_PLOTTING= ( wall )
83-
%
84-
% Marker(s) of the surface where the functional (Cd, Cl, etc.) will be evaluated
8545
MARKER_MONITORING= ( wall )
8646

8747
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
8848
%
89-
% Numerical method for spatial gradients (GREEN_GAUSS, LEAST_SQUARES,
90-
% WEIGHTED_LEAST_SQUARES)
9149
NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
92-
%
93-
% Courant-Friedrichs-Lewy condition of the finest grid
9450
CFL_NUMBER= 100.0
95-
%
96-
% Adaptive CFL number (NO, YES)
9751
CFL_ADAPT= YES
98-
%
99-
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
100-
% CFL max value )
10152
CFL_ADAPT_PARAM= ( 0.1, 2.0, 100.0, 1e5 )
102-
%
103-
% Runge-Kutta alpha coefficients
10453
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
105-
%
106-
% Number of total iterations
10754
ITER= 99999
10855

10956
% ----------------------- SLOPE LIMITER DEFINITION ----------------------------%
11057
%
111-
% Coefficient for the limiter
11258
VENKAT_LIMITER_COEFF= 0.1
113-
%
114-
% Coefficient for the sharp edges limiter
11559
ADJ_SHARP_LIMITER_COEFF= 3.0
116-
%
117-
% Reference coefficient (sensitivity) for detecting sharp edges.
11860
REF_SHARP_EDGES= 3.0
119-
%
120-
% Remove sharp edges from the sensitivity evaluation (NO, YES)
12161
SENS_REMOVE_SHARP= NO
12262

12363
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
12464
%
125-
% Multi-Grid Levels (0 = no multi-grid)
12665
MGLEVEL= 0
127-
%
128-
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
129-
MGCYCLE= V_CYCLE
130-
%
131-
% Multi-grid pre-smoothing level
132-
MG_PRE_SMOOTH= ( 1, 2, 3, 3 )
133-
%
134-
% Multi-grid post-smoothing level
135-
MG_POST_SMOOTH= ( 2, 2, 2, 2)
136-
%
137-
% Jacobi implicit smoothing of the correction
138-
MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 )
139-
%
140-
% Damping factor for the residual restriction
141-
MG_DAMP_RESTRICTION= 0.8
142-
%
143-
% Damping factor for the correction prolongation
144-
MG_DAMP_PROLONGATION= 0.8
145-
14666
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
14767
%
148-
% Convective numerical method (JST, LAX-FRIEDRICH, CUSP, ROE, AUSM, HLLC,
149-
% TURKEL_PREC, MSW)
15068
CONV_NUM_METHOD_FLOW= ROE
15169
%
152-
% Monotonic Upwind Scheme for Conservation Laws (TVD) in the flow equations.
153-
% Required for 2nd order upwind schemes (NO, YES)
15470
MUSCL_FLOW= YES
155-
%
156-
% Slope limiter (NONE, VENKATAKRISHNAN, VENKATAKRISHNAN_WANG,
157-
% BARTH_JESPERSEN, VAN_ALBADA_EDGE)
15871
SLOPE_LIMITER_FLOW= NONE
159-
%
160-
% 2nd and 4th order artificial dissipation coefficients
16172
JST_SENSOR_COEFF= ( 0.5, 0.02 )
162-
%
163-
% Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT)
16473
TIME_DISCRE_FLOW= EULER_IMPLICIT
16574

16675
% -------------------- TURBULENT NUMERICAL METHOD DEFINITION ------------------%
16776
%
168-
% Convective numerical method (SCALAR_UPWIND)
77+
16978
CONV_NUM_METHOD_TURB= SCALAR_UPWIND
170-
%
171-
% Monotonic Upwind Scheme for Conservation Laws (TVD) in the turbulence equations.
172-
% Required for 2nd order upwind schemes (NO, YES)
17379
MUSCL_TURB= NO
174-
%
175-
% Slope limiter (VENKATAKRISHNAN, MINMOD)
17680
SLOPE_LIMITER_TURB= VENKATAKRISHNAN
177-
%
178-
% Time discretization (EULER_IMPLICIT)
17981
TIME_DISCRE_TURB= EULER_IMPLICIT
18082

18183
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
18284
%
183-
% Convergence criteria (CAUCHY, RESIDUAL)
18485
CONV_FIELD= RMS_DENSITY
185-
%
186-
% Min value of the residual (log10 of the residual)
18786
CONV_RESIDUAL_MINVAL= -14
188-
%
189-
% Start convergence criteria at iteration number
19087
CONV_STARTITER= 10
191-
%
192-
% Number of elements to apply the criteria
19388
CONV_CAUCHY_ELEMS= 100
194-
%
195-
% Epsilon to control the series convergence
19689
CONV_CAUCHY_EPS= 1E-6
19790
%
19891

19992
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
20093
%
201-
% Mesh input file
20294
MESH_FILENAME= mesh_flatplate_turb_137x97.su2
203-
%
204-
% Mesh input file format (SU2, CGNS, NETCDF_ASCII)
20595
MESH_FORMAT= SU2
206-
%
207-
% Mesh output file
20896
MESH_OUT_FILENAME= mesh_out.su2
209-
%
210-
% Restart flow input file
21197
SOLUTION_FILENAME= solution_flow.dat
212-
%
213-
% Restart adjoint input file
21498
SOLUTION_ADJ_FILENAME= solution_adj.dat
215-
%
216-
% Output file format (PARAVIEW, TECPLOT, SLT)
21799
TABULAR_FORMAT= CSV
218-
%
219-
% Output file convergence history (w/o extension)
220100
CONV_FILENAME= history
221-
%
222-
% Output file restart flow
223101
RESTART_FILENAME= restart_flow.dat
224-
%
225-
% Output file restart adjoint
226102
RESTART_ADJ_FILENAME= restart_adj.dat
227-
%
228-
% Output file flow (w/o extension) variables
229103
VOLUME_FILENAME= flow
230-
%
231-
% Output file adjoint (w/o extension) variables
232104
VOLUME_ADJ_FILENAME= adjoint
233-
%
234-
% Output objective function gradient (using continuous adjoint)
235105
GRAD_OBJFUNC_FILENAME= of_grad.dat
236-
%
237-
% Output file surface flow coefficient (w/o extension)
238106
SURFACE_FILENAME= surface_flow
239-
%
240-
% Output file surface adjoint coefficient (w/o extension)
241107
SURFACE_ADJ_FILENAME= surface_adjoint
242-
%
243-
% Writing solution file frequency
244108
OUTPUT_WRT_FREQ= 1000
245-
%
246-
%
247-
% Screen output
248109
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_RES, LIFT, DRAG)

0 commit comments

Comments
 (0)