Skip to content

Commit 1cdb7b7

Browse files
authored
Merge branch 'develop' into dev_nemo_muscl_fix
2 parents 88251b4 + b140a4d commit 1cdb7b7

77 files changed

Lines changed: 3104 additions & 2301 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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/include/geometry/CGeometry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class CGeometry {
133133
vector<vector<su2double> > FaceArea_plane; /*!< \brief Vector containing area/volume associated with new points appearing on a single plane */
134134
vector<vector<unsigned long> > Plane_points; /*!< \brief Vector containing points appearing on a single plane */
135135

136-
vector<su2double> XCoordList; /*!< \brief Vector containing points appearing on a single plane */
136+
vector<su2double> XCoordList; /*!< \brief Vector containing points appearing on a single plane */
137137

138138
#if defined(HAVE_MPI) && defined(HAVE_PARMETIS)
139139
vector<vector<unsigned long> > adj_nodes; /*!< \brief Vector of vectors holding each node's adjacency during preparation for ParMETIS. */

Common/src/CConfig.cpp

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,7 +2795,7 @@ void CConfig::SetConfig_Options() {
27952795
/*!\brief MAX_BASIS_DIM \n DESCRIPTION: Maximum number of basis vectors.*/
27962796
addUnsignedShortOption("MAX_BASIS_DIM", maxBasisDim, 100);
27972797

2798-
/*!\brief MAX_BASIS_DIM \n DESCRIPTION: Maximum number of basis vectors.*/
2798+
/*!\brief ROM_SAVE_FREQ \n DESCRIPTION: How often to save snapshots for unsteady problems.*/
27992799
addUnsignedShortOption("ROM_SAVE_FREQ", rom_save_freq, 1);
28002800

28012801
/* END_CONFIG_OPTIONS */
@@ -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"
@@ -6474,8 +6485,8 @@ void CConfig::SetOutput(SU2_COMPONENT val_software, unsigned short val_izone) {
64746485
break;
64756486
case EULER_IMPLICIT:
64766487
cout << "Euler implicit method for the flow equations." << endl;
6477-
if (Kind_Solver == NEMO_NAVIER_STOKES)
6478-
SU2_MPI::Error("Implicit time scheme is not working with NEMO for viscous problems. Use EULER_EXPLICIT.", CURRENT_FUNCTION);
6488+
if (Kind_FluidModel == MUTATIONPP)
6489+
SU2_MPI::Error("Implicit time scheme is not yet implemented with Mutation++. Use EULER_EXPLICIT.", CURRENT_FUNCTION);
64796490
switch (Kind_Linear_Solver) {
64806491
case BCGSTAB:
64816492
case FGMRES:

Common/src/geometry/elements/CTETRA1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ CTETRA1::CTETRA1() : CElementWithKnownSizes<NGAUSS,NNODE,NDIM>() {
4747

4848
val_Ni = Xi; GaussPoint[iGauss].SetNi(val_Ni,0);
4949
val_Ni = Eta; GaussPoint[iGauss].SetNi(val_Ni,1);
50-
val_Ni = 1.0-Xi-Eta-Zeta; GaussPoint[iGauss].SetNi(val_Ni,2);
50+
val_Ni = 1.0-Xi-Eta-Zeta; GaussPoint[iGauss].SetNi(val_Ni,2);
5151
val_Ni = Zeta; GaussPoint[iGauss].SetNi(val_Ni,3);
5252

5353
/*--- dN/d xi, dN/d eta, dN/d zeta ---*/

SU2_CFD/include/drivers/CDriver.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,13 @@ class CDriver {
213213
*/
214214
void Numerics_Preprocessing(CConfig *config, CGeometry **geometry, CSolver ***solver, CNumerics ****&numerics) const;
215215

216+
/*!
217+
* \brief Helper to instantiate turbulence numerics specialized for different flow solvers.
218+
*/
219+
template <class FlowIndices>
220+
void InstantiateTurbulentNumerics(unsigned short nVar_Turb, int offset, const CConfig *config,
221+
const CSolver* turb_solver, CNumerics ****&numerics) const;
222+
216223
/*!
217224
* \brief Definition and allocation of all solver classes.
218225
* \param[in] numerics_container - Description of the numerical method (the way in which the equations are solved).

0 commit comments

Comments
 (0)