Skip to content

Commit 4c3311f

Browse files
authored
Merge pull request #1559 from su2code/fix_saneg_variant_testcase
Improve the configuration file for the SA Neg test case
2 parents c8ccde5 + f749e52 commit 4c3311f

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

TestCases/parallel_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,8 @@ def main():
685685
turbmod_sa_neg_rae2822 = TestCase('turbmod_sa_neg_rae2822')
686686
turbmod_sa_neg_rae2822.cfg_dir = "turbulence_models/sa/rae2822"
687687
turbmod_sa_neg_rae2822.cfg_file = "turb_SA_NEG_RAE2822.cfg"
688-
turbmod_sa_neg_rae2822.test_iter = 20
689-
turbmod_sa_neg_rae2822.test_vals = [-2.004689, 0.742306, 0.497308, -5.265793, 0.809463, 0.062016]
688+
turbmod_sa_neg_rae2822.test_iter = 10
689+
turbmod_sa_neg_rae2822.test_vals = [-1.094542, 3.161741, 2.333560, 2.864805, 1.494301, 0.530135]
690690
turbmod_sa_neg_rae2822.su2_exec = "mpirun -n 2 SU2_CFD"
691691
turbmod_sa_neg_rae2822.timeout = 1600
692692
turbmod_sa_neg_rae2822.new_output = True

TestCases/turbulence_models/sa/rae2822/turb_SA_NEG_RAE2822.cfg

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2+
% %
3+
% WARNING %
4+
% This regression test will diverge! %
5+
% %
6+
% This test case is only meant to trigger the negative part of the SA model, %
7+
% to check the integrity of the commits. It is inadvisable to use it as an %
8+
% starting point for tutorials. %
9+
% The rae2822 airfoil is a simple (fast) case. A high angle of attack is being %
10+
% used in order to force the negative part of the SA in a reasonable amount of %
11+
% iterations. With the current configuration, e.g., convective scheme, CFL %
12+
% number, etc, the solution is not stable and diverges after some iterations, %
13+
% around 15. Therefore, this regression test shall only run for iter < 15. %
14+
% %
15+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16+
%
117
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
218
%
319
% Physical governing equations
@@ -14,7 +30,7 @@ RESTART_SOL= NO
1430
MACH_NUMBER= 0.729
1531
%
1632
% Angle of attack (degrees, only for compressible flows)
17-
AOA= 2.31
33+
AOA= 20.31
1834
%
1935
% Free-stream temperature (288.15 K by default)
2036
FREESTREAM_TEMPERATURE= 288.15
@@ -61,7 +77,11 @@ NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
6177
CFL_NUMBER= 2.5
6278
%
6379
% Adaptive CFL number (NO, YES)
64-
CFL_ADAPT= NO
80+
CFL_ADAPT= YES
81+
%
82+
% Parameters of the adaptive CFL number ( factor down, factor up, CFL min value,
83+
% CFL max value )
84+
CFL_ADAPT_PARAM= ( 0.5, 1.5, 400.0, 1000.0 )
6585
%
6686
% Number of total iterations
6787
ITER= 99999
@@ -78,7 +98,7 @@ LINEAR_SOLVER_ITER= 20
7898
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
7999
%
80100
% Multi-Grid Levels (0 = no multi-grid)
81-
MGLEVEL= 3
101+
MGLEVEL= 0
82102
%
83103
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
84104
MGCYCLE= W_CYCLE

0 commit comments

Comments
 (0)