Skip to content

Commit 20923bc

Browse files
committed
Introduce nVarTurb in CConfig to be used in species solver.
And some other smaller comment updates/ cleanup.
1 parent a4836f4 commit 20923bc

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Common/include/CConfig.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ class CConfig {
554554
STRUCT_DEFORMATION Kind_Struct_Solver; /*!< \brief Determines the geometric condition (small or large deformations) for structural analysis. */
555555
unsigned short Kind_DV_FEA; /*!< \brief Kind of Design Variable for FEA problems.*/
556556

557+
unsigned short nTurbVar; /*!< \brief Number of Turbulence variables, i.e. 1 for SA-types, 2 for SST. */
557558
TURB_MODEL Kind_Turb_Model; /*!< \brief Turbulent model definition. */
558559
unsigned short Kind_SGS_Model; /*!< \brief LES SGS model definition. */
559560
unsigned short Kind_Trans_Model, /*!< \brief Transition model definition. */
@@ -4179,6 +4180,12 @@ class CConfig {
41794180
*/
41804181
void SetKind_SU2(SU2_COMPONENT val_kind_su2) { Kind_SU2 = val_kind_su2 ; }
41814182

4183+
/*!
4184+
* \brief Get the number of Turbulence Variables.
4185+
* \return Number of Turbulence Variables.
4186+
*/
4187+
unsigned short GetnTurbVar(void) const { return nTurbVar; }
4188+
41824189
/*!
41834190
* \brief Get the kind of the turbulence model.
41844191
* \return Kind of the turbulence model.

Common/src/CConfig.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5075,6 +5075,17 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
50755075
if (GetGasModel() == "ARGON") {monoatomic = true;}
50765076
else {monoatomic = false;}
50775077

5078+
/*--- Set number of Turbulence Variables. ---*/
5079+
switch(Kind_Turb_Model) {
5080+
case TURB_MODEL::NONE:
5081+
nTurbVar = 0; break;
5082+
case TURB_MODEL::SA: case TURB_MODEL::SA_COMP: case TURB_MODEL::SA_E_COMP: case TURB_MODEL::SA_E:
5083+
case TURB_MODEL::SA_NEG:
5084+
nTurbVar = 1; break;
5085+
case TURB_MODEL::SST: case TURB_MODEL::SST_SUST:
5086+
nTurbVar = 2; break;
5087+
}
5088+
50785089
// This option is deprecated. After a grace period until 7.2.0 the usage warning should become an error.
50795090
if(OptionIsSet("CONV_CRITERIA") && rank == MASTER_NODE) {
50805091
cout << "\n\nWARNING: CONV_CRITERIA is deprecated. SU2 will choose the criteria automatically based on the CONV_FIELD.\n"

0 commit comments

Comments
 (0)