Skip to content

Commit 7708678

Browse files
Merge branch 'develop' of https://github.com/su2code/SU2 into bug_fix_cht_flamelet_solver
2 parents bd44854 + 9e9f1a2 commit 7708678

18 files changed

Lines changed: 250 additions & 287 deletions

File tree

Common/include/option_structure.hpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,8 +1020,9 @@ inline SST_ParsedOptions ParseSSTOptions(const SST_OPTIONS *SST_Options, unsigne
10201020

10211021
const bool default_version = !found_1994 && !found_1994m && !found_2003 && !found_2003m;
10221022

1023-
const bool sst_1994 = found_1994 || found_1994m || default_version;
1024-
const bool sst_2003 = found_2003 || found_2003m;
1023+
const bool sst_1994 = found_1994 || found_1994m;
1024+
/*--- Default version since v8. ---*/
1025+
const bool sst_2003 = found_2003 || found_2003m || default_version;
10251026

10261027
/*--- When V2003m or V1994m is selected, we automatically select sst_m. ---*/
10271028
const bool sst_m = found_1994m || found_2003m || default_version;
@@ -1037,12 +1038,6 @@ inline SST_ParsedOptions ParseSSTOptions(const SST_OPTIONS *SST_Options, unsigne
10371038
SSTParsedOptions.version = SST_OPTIONS::V2003;
10381039
} else {
10391040
SSTParsedOptions.version = SST_OPTIONS::V1994;
1040-
1041-
if (rank==MASTER_NODE) {
1042-
std::cout <<
1043-
"WARNING: The current SST-1994m model is inconsistent with literature. We recommend using the SST-2003m model.\n"
1044-
"In SU2 v8 the 2003m model will become default, and the inconsistency will be fixed." << std::endl;
1045-
}
10461041
}
10471042

10481043
// Parse production modifications

SU2_CFD/include/numerics/turbulent/turb_sources.hpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct CSAVariables {
4949
const su2double cw1 = cb1 / k2 + (1 + cb2) / sigma;
5050
const su2double cr1 = 0.5;
5151
const su2double CRot = 1.0;
52-
const su2double c2 = 0.7, c3 = 0.9;
52+
const su2double c2 = 0.7, c3 = 0.9;
5353

5454
/*--- List of auxiliary functions ---*/
5555
su2double ft2, d_ft2, r, d_r, g, d_g, glim, fw, d_fw, Ji, d_Ji, S, Shat, d_Shat, fv1, d_fv1, fv2, d_fv2;
@@ -805,11 +805,6 @@ class CSourcePieceWise_TurbSST final : public CNumerics {
805805
const su2double prod_limit = prod_lim_const * beta_star * Density_i * ScalarVar_i[1] * ScalarVar_i[0];
806806

807807
su2double P = Eddy_Viscosity_i * pow(P_Base, 2);
808-
809-
if (sstParsedOptions.version == SST_OPTIONS::V1994) {
810-
/*--- INTRODUCE THE SST-V1994m BUG WHERE DIVERGENCE TERM WILL BE REMOVED ---*/
811-
P -= 2.0 / 3.0 * Density_i * ScalarVar_i[0] * diverg;
812-
}
813808
su2double pk = max(0.0, min(P, prod_limit));
814809

815810
const auto& eddy_visc_var = sstParsedOptions.version == SST_OPTIONS::V1994 ? VorticityMag : StrainMag_i;
@@ -818,8 +813,7 @@ class CSourcePieceWise_TurbSST final : public CNumerics {
818813
/*--- Production limiter only for V2003, recompute for V1994. ---*/
819814
su2double pw;
820815
if (sstParsedOptions.version == SST_OPTIONS::V1994) {
821-
/*--- INTRODUCE THE SST-V1994m BUG WHERE DIVERGENCE TERM WILL BE REMOVED ---*/
822-
pw = alfa_blended * Density_i * max(pow(P_Base, 2) - 2.0 / 3.0 * zeta * diverg, 0.0);
816+
pw = alfa_blended * Density_i * pow(P_Base, 2);
823817
} else {
824818
pw = (alfa_blended * Density_i / Eddy_Viscosity_i) * pk;
825819
}

SU2_CFD/src/solvers/CAdjNSSolver.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -766,12 +766,8 @@ void CAdjNSSolver::Viscous_Sensitivity(CGeometry *geometry, CSolver **solver_con
766766
Enthalpy = solver_container[FLOW_SOL]->GetNodes()->GetEnthalpy(iPoint);
767767

768768
/*--- Turbulent kinetic energy ---*/
769-
/// TODO: This does not seem to be consistent with the primal treatment.
770-
if (config->GetKind_Turb_Model() == TURB_MODEL::SST)
771-
val_turb_ke = solver_container[TURB_SOL]->GetNodes()->GetSolution(iPoint,0);
772-
else
773-
val_turb_ke = 0.0;
774-
769+
// turb_ke is not considered in the stress tensor, see #797
770+
val_turb_ke = 0.0;
775771
CNumerics::ComputeStressTensor(nDim, tau, PrimVar_Grad+1, Laminar_Viscosity, Density, val_turb_ke);
776772

777773
/*--- Form normal_grad_gridvel = \partial_n (u_omega) ---*/

TestCases/axisymmetric_rans/air_nozzle/air_nozzle_restart.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ SOLUTION_FILENAME= solution_flow.dat
9393
RESTART_FILENAME= restart_flow.dat
9494
OUTPUT_WRT_FREQ= 1000
9595
SCREEN_OUTPUT= (INNER_ITER, RMS_DENSITY, RMS_ENERGY, RMS_TKE, RMS_DISSIPATION, TOTAL_HEATFLUX, \
96-
RMS_ADJ_DENSITY, RMS_ADJ_ENERGY, RMS_ADJ_TKE, RMS_ADJ_DISSIPATION, SENS_AOA, SENS_MACH)
96+
RMS_ADJ_DENSITY, RMS_ADJ_ENERGY, RMS_ADJ_TKE, RMS_ADJ_DISSIPATION)

TestCases/disc_adj_incomp_rans/naca0012/turb_naca0012_sst.cfg

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
%
1414
SOLVER= INC_RANS
1515
KIND_TURB_MODEL= SST
16-
MATH_PROBLEM= DISCRETE_ADJOINT
1716
RESTART_SOL= NO
1817

1918
% -------------------- INCOMPRESSIBLE FREE-STREAM DEFINITION ------------------%
@@ -45,11 +44,9 @@ MARKER_MONITORING= ( airfoil )
4544
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
4645
%
4746
NUM_METHOD_GRAD= GREEN_GAUSS
48-
CFL_NUMBER= 25.0
47+
CFL_NUMBER= 1500.0
4948
CFL_ADAPT= NO
50-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 25.0, 10000.0 )
51-
MAX_DELTA_TIME= 1E6
52-
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
49+
QUASI_NEWTON_NUM_SAMPLES= 30
5350
ITER= 99999
5451
OBJECTIVE_FUNCTION= DRAG
5552
OBJECTIVE_WEIGHT = 1.0
@@ -67,7 +64,7 @@ LINEAR_SOLVER= FGMRES
6764
LINEAR_SOLVER_PREC= ILU
6865
LINEAR_SOLVER_ILU_FILL_IN= 0
6966
LINEAR_SOLVER_ERROR= 1E-10
70-
LINEAR_SOLVER_ITER= 10
67+
LINEAR_SOLVER_ITER= 15
7168

7269
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
7370
%
@@ -115,7 +112,7 @@ GRAD_OBJFUNC_FILENAME= of_grad.dat
115112
SURFACE_FILENAME= surface_flow
116113
SURFACE_ADJ_FILENAME= surface_adjoint
117114
OUTPUT_WRT_FREQ= 250
118-
SCREEN_OUTPUT= (INNER_ITER, RMS_ADJ_PRESSURE, RMS_ADJ_TKE, RMS_ADJ_DISSIPATION, SENS_PRESS, SENS_AOA)
115+
SCREEN_OUTPUT= (INNER_ITER, RMS_ADJ_PRESSURE, RMS_ADJ_TKE, RMS_ADJ_DISSIPATION, SENS_PRESS, SENS_AOA, LINSOL_RESIDUAL)
119116

120117
% --------------------- OPTIMAL SHAPE DESIGN DEFINITION -----------------------%
121118
%

TestCases/disc_adj_turbomachinery/transonic_stator_2D/transonic_stator.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
%
1515
SOLVER= RANS
1616
KIND_TURB_MODEL= SST
17-
MATH_PROBLEM= DISCRETE_ADJOINT
17+
SST_OPTIONS= V1994m
1818
RESTART_SOL= NO
1919
NZONES= 1
2020

@@ -185,4 +185,4 @@ GRAD_OBJFUNC_FILENAME= of_grad.dat
185185
SURFACE_FILENAME= surface_flow
186186
SURFACE_ADJ_FILENAME= surface_adjoint
187187
OUTPUT_WRT_FREQ= 500
188-
SCREEN_OUTPUT=(INNER_ITER, RMS_ADJ_DENSITY, RMS_ADJ_TKE)
188+
SCREEN_OUTPUT=(INNER_ITER, RMS_RES)

0 commit comments

Comments
 (0)