Skip to content

Commit

Permalink
Merge pull request #1559 from su2code/fix_saneg_variant_testcase
Browse files Browse the repository at this point in the history
Improve the configuration file for the SA Neg test case
  • Loading branch information
suargi authored Mar 17, 2022
2 parents c8ccde5 + f749e52 commit 4c3311f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
4 changes: 2 additions & 2 deletions TestCases/parallel_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,8 @@ def main():
turbmod_sa_neg_rae2822 = TestCase('turbmod_sa_neg_rae2822')
turbmod_sa_neg_rae2822.cfg_dir = "turbulence_models/sa/rae2822"
turbmod_sa_neg_rae2822.cfg_file = "turb_SA_NEG_RAE2822.cfg"
turbmod_sa_neg_rae2822.test_iter = 20
turbmod_sa_neg_rae2822.test_vals = [-2.004689, 0.742306, 0.497308, -5.265793, 0.809463, 0.062016]
turbmod_sa_neg_rae2822.test_iter = 10
turbmod_sa_neg_rae2822.test_vals = [-1.094542, 3.161741, 2.333560, 2.864805, 1.494301, 0.530135]
turbmod_sa_neg_rae2822.su2_exec = "mpirun -n 2 SU2_CFD"
turbmod_sa_neg_rae2822.timeout = 1600
turbmod_sa_neg_rae2822.new_output = True
Expand Down
26 changes: 23 additions & 3 deletions TestCases/turbulence_models/sa/rae2822/turb_SA_NEG_RAE2822.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% WARNING %
% This regression test will diverge! %
% %
% This test case is only meant to trigger the negative part of the SA model, %
% to check the integrity of the commits. It is inadvisable to use it as an %
% starting point for tutorials. %
% The rae2822 airfoil is a simple (fast) case. A high angle of attack is being %
% used in order to force the negative part of the SA in a reasonable amount of %
% iterations. With the current configuration, e.g., convective scheme, CFL %
% number, etc, the solution is not stable and diverges after some iterations, %
% around 15. Therefore, this regression test shall only run for iter < 15. %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
%
% Physical governing equations
Expand All @@ -14,7 +30,7 @@ RESTART_SOL= NO
MACH_NUMBER= 0.729
%
% Angle of attack (degrees, only for compressible flows)
AOA= 2.31
AOA= 20.31
%
% Free-stream temperature (288.15 K by default)
FREESTREAM_TEMPERATURE= 288.15
Expand Down Expand Up @@ -61,7 +77,11 @@ NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
CFL_NUMBER= 2.5
%
% Adaptive CFL number (NO, YES)
CFL_ADAPT= NO
CFL_ADAPT= YES
%
% Parameters of the adaptive CFL number ( factor down, factor up, CFL min value,
% CFL max value )
CFL_ADAPT_PARAM= ( 0.5, 1.5, 400.0, 1000.0 )
%
% Number of total iterations
ITER= 99999
Expand All @@ -78,7 +98,7 @@ LINEAR_SOLVER_ITER= 20
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
%
% Multi-Grid Levels (0 = no multi-grid)
MGLEVEL= 3
MGLEVEL= 0
%
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
MGCYCLE= W_CYCLE
Expand Down

0 comments on commit 4c3311f

Please sign in to comment.