Skip to content

Commit 75612da

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feature_species
2 parents 0c50a17 + 0a88a1a commit 75612da

57 files changed

Lines changed: 802 additions & 745 deletions

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: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ class CConfig {
478478
CONDUCTIVITYMODEL_TURB Kind_ConductivityModel_Turb; /*!< \brief Kind of the Turbulent Thermal Conductivity Model */
479479
DIFFUSIVITYMODEL Kind_Diffusivity_Model; /*!< \brief Kind of the mass diffusivity Model */
480480
FREESTREAM_OPTION Kind_FreeStreamOption; /*!< \brief Kind of free stream option to choose if initializing with density or temperature */
481-
unsigned short Kind_Solver, /*!< \brief Kind of solver Euler, NS, Continuous adjoint, etc. */
482-
Kind_FluidModel, /*!< \brief Kind of the Fluid Model: Ideal or Van der Walls, ... . */
481+
MAIN_SOLVER Kind_Solver; /*!< \brief Kind of solver: Euler, NS, Continuous adjoint, etc. */
482+
unsigned short Kind_FluidModel, /*!< \brief Kind of the Fluid Model: Ideal, van der Waals, etc. */
483483
Kind_InitOption, /*!< \brief Kind of Init option to choose if initializing with Reynolds number or with thermodynamic conditions */
484484
Kind_GridMovement, /*!< \brief Kind of the static mesh movement. */
485485
*Kind_SurfaceMovement, /*!< \brief Kind of the static mesh movement. */
@@ -568,9 +568,9 @@ class CConfig {
568568

569569
unsigned short nTurbVar; /*!< \brief Number of Turbulence variables, i.e. 1 for SA-types, 2 for SST. */
570570
TURB_MODEL Kind_Turb_Model; /*!< \brief Turbulent model definition. */
571-
unsigned short Kind_Trans_Model; /*!< \brief Transition model definition. */
572571
SPECIES_MODEL Kind_Species_Model; /*!< \brief Species model definition. */
573572
unsigned short Kind_SGS_Model; /*!< \brief LES SGS model definition. */
573+
TURB_TRANS_MODEL Kind_Trans_Model; /*!< \brief Transition model definition. */
574574
unsigned short Kind_ActDisk, Kind_Engine_Inflow,
575575
*Kind_Data_Riemann,
576576
*Kind_Data_Giles; /*!< \brief Kind of inlet boundary treatment. */
@@ -3602,25 +3602,18 @@ class CConfig {
36023602
* \param[in] val_zone - Zone where the soler is applied.
36033603
* \return Governing equation that we are solving.
36043604
*/
3605-
unsigned short GetKind_Solver(void) const { return Kind_Solver; }
3606-
3607-
/*!
3608-
* \brief Governing equations of the flow (it can be different from the run time equation).
3609-
* \param[in] val_zone - Zone where the soler is applied.
3610-
* \return Governing equation that we are solving.
3611-
*/
3612-
void SetKind_Solver(unsigned short val_solver) { Kind_Solver = val_solver; }
3605+
MAIN_SOLVER GetKind_Solver(void) const { return Kind_Solver; }
36133606

36143607
/*!
36153608
* \brief Return true if a fluid solver is in use.
36163609
*/
36173610
bool GetFluidProblem(void) const {
36183611
switch (Kind_Solver) {
3619-
case EULER : case NAVIER_STOKES: case RANS:
3620-
case INC_EULER : case INC_NAVIER_STOKES: case INC_RANS:
3621-
case NEMO_EULER : case NEMO_NAVIER_STOKES:
3622-
case DISC_ADJ_INC_EULER: case DISC_ADJ_INC_NAVIER_STOKES: case DISC_ADJ_INC_RANS:
3623-
case DISC_ADJ_EULER: case DISC_ADJ_NAVIER_STOKES: case DISC_ADJ_RANS:
3612+
case MAIN_SOLVER::EULER : case MAIN_SOLVER::NAVIER_STOKES: case MAIN_SOLVER::RANS:
3613+
case MAIN_SOLVER::INC_EULER : case MAIN_SOLVER::INC_NAVIER_STOKES: case MAIN_SOLVER::INC_RANS:
3614+
case MAIN_SOLVER::NEMO_EULER : case MAIN_SOLVER::NEMO_NAVIER_STOKES:
3615+
case MAIN_SOLVER::DISC_ADJ_INC_EULER: case MAIN_SOLVER::DISC_ADJ_INC_NAVIER_STOKES: case MAIN_SOLVER::DISC_ADJ_INC_RANS:
3616+
case MAIN_SOLVER::DISC_ADJ_EULER: case MAIN_SOLVER::DISC_ADJ_NAVIER_STOKES: case MAIN_SOLVER::DISC_ADJ_RANS:
36243617
return true;
36253618
default:
36263619
return false;
@@ -3631,23 +3624,23 @@ class CConfig {
36313624
* \brief Return true if a structural solver is in use.
36323625
*/
36333626
bool GetStructuralProblem(void) const {
3634-
return (Kind_Solver == FEM_ELASTICITY) || (Kind_Solver == DISC_ADJ_FEM);
3627+
return (Kind_Solver == MAIN_SOLVER::FEM_ELASTICITY) || (Kind_Solver == MAIN_SOLVER::DISC_ADJ_FEM);
36353628
}
36363629

36373630
/*!
36383631
* \brief Return true if a heat solver is in use.
36393632
*/
36403633
bool GetHeatProblem(void) const {
3641-
return (Kind_Solver == HEAT_EQUATION) || (Kind_Solver == DISC_ADJ_HEAT);
3634+
return (Kind_Solver == MAIN_SOLVER::HEAT_EQUATION) || (Kind_Solver == MAIN_SOLVER::DISC_ADJ_HEAT);
36423635
}
36433636

36443637
/*!
36453638
* \brief Return true if a high order FEM solver is in use.
36463639
*/
36473640
bool GetFEMSolver(void) const {
36483641
switch (Kind_Solver) {
3649-
case FEM_EULER: case FEM_NAVIER_STOKES: case FEM_RANS: case FEM_LES:
3650-
case DISC_ADJ_FEM_EULER: case DISC_ADJ_FEM_NS: case DISC_ADJ_FEM_RANS:
3642+
case MAIN_SOLVER::FEM_EULER: case MAIN_SOLVER::FEM_NAVIER_STOKES: case MAIN_SOLVER::FEM_RANS: case MAIN_SOLVER::FEM_LES:
3643+
case MAIN_SOLVER::DISC_ADJ_FEM_EULER: case MAIN_SOLVER::DISC_ADJ_FEM_NS: case MAIN_SOLVER::DISC_ADJ_FEM_RANS:
36513644
return true;
36523645
default:
36533646
return false;
@@ -3659,7 +3652,7 @@ class CConfig {
36593652
*/
36603653
bool GetNEMOProblem(void) const {
36613654
switch (Kind_Solver) {
3662-
case NEMO_EULER : case NEMO_NAVIER_STOKES:
3655+
case MAIN_SOLVER::NEMO_EULER : case MAIN_SOLVER::NEMO_NAVIER_STOKES:
36633656
return true;
36643657
default:
36653658
return false;
@@ -4292,7 +4285,7 @@ class CConfig {
42924285
* \brief Get the kind of the transition model.
42934286
* \return Kind of the transion model.
42944287
*/
4295-
unsigned short GetKind_Trans_Model(void) const { return Kind_Trans_Model; }
4288+
TURB_TRANS_MODEL GetKind_Trans_Model(void) const { return Kind_Trans_Model; }
42964289

42974290
/*!
42984291
* \brief Get the kind of the species model.
@@ -6355,7 +6348,7 @@ class CConfig {
63556348
* \param[in] val_solver - Solver of the simulation.
63566349
* \param[in] val_system - Runtime system that we are solving.
63576350
*/
6358-
void SetGlobalParam(unsigned short val_solver, unsigned short val_system);
6351+
void SetGlobalParam(MAIN_SOLVER val_solver, unsigned short val_system);
63596352

63606353
/*!
63616354
* \brief Center of rotation for a rotational periodic boundary.

Common/include/option_structure.hpp

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -225,71 +225,71 @@ static const MapType<std::string, AVERAGE_TYPE> Average_Map = {
225225
/*!
226226
* \brief different solver types for the CFD component
227227
*/
228-
enum ENUM_MAIN_SOLVER {
229-
NO_SOLVER = 0, /*!< \brief Definition of no solver. */
230-
EULER = 1, /*!< \brief Definition of the Euler's solver. */
231-
NAVIER_STOKES = 2, /*!< \brief Definition of the Navier-Stokes' solver. */
232-
RANS = 3, /*!< \brief Definition of the Reynolds-averaged Navier-Stokes' (RANS) solver. */
233-
INC_EULER = 4, /*!< \brief Definition of the incompressible Euler's solver. */
234-
INC_NAVIER_STOKES =5, /*!< \brief Definition of the incompressible Navier-Stokes' solver. */
235-
INC_RANS = 6, /*!< \brief Definition of the incompressible Reynolds-averaged Navier-Stokes' (RANS) solver. */
236-
HEAT_EQUATION = 7, /*!< \brief Definition of the finite volume heat solver. */
237-
FEM_ELASTICITY = 9, /*!< \brief Definition of a FEM solver. */
238-
ADJ_EULER = 10, /*!< \brief Definition of the continuous adjoint Euler's solver. */
239-
ADJ_NAVIER_STOKES = 11, /*!< \brief Definition of the continuous adjoint Navier-Stokes' solver. */
240-
ADJ_RANS = 12, /*!< \brief Definition of the continuous adjoint Reynolds-averaged Navier-Stokes' (RANS) solver. */
241-
TEMPLATE_SOLVER = 13, /*!< \brief Definition of template solver. */
242-
DISC_ADJ_EULER = 15, /*!< \brief Definition of the discrete adjoint Euler solver. */
243-
DISC_ADJ_RANS = 16, /*!< \brief Definition of the discrete adjoint Reynolds-averaged Navier-Stokes' (RANS) solver. */
244-
DISC_ADJ_NAVIER_STOKES = 17, /*!< \brief Definition of the discrete adjoint Navier-Stokes' solver. */
245-
DISC_ADJ_INC_EULER = 18, /*!< \brief Definition of the discrete adjoint incompressible Euler solver. */
246-
DISC_ADJ_INC_RANS = 19, /*!< \brief Definition of the discrete adjoint imcompressible Reynolds-averaged Navier-Stokes' (RANS) solver. */
247-
DISC_ADJ_INC_NAVIER_STOKES = 20, /*!< \brief Definition of the discrete adjoint imcompressible Navier-Stokes'. */
248-
DISC_ADJ_HEAT = 21, /*!< \brief Definition of the discrete adjoint heat solver. */
249-
DISC_ADJ_FEM_EULER = 22, /*!< \brief Definition of the discrete adjoint FEM Euler solver. */
250-
DISC_ADJ_FEM_RANS = 23, /*!< \brief Definition of the discrete adjoint FEM Reynolds-averaged Navier-Stokes' (RANS) solver. */
251-
DISC_ADJ_FEM_NS = 24, /*!< \brief Definition of the discrete adjoint FEM Navier-Stokes' solver. */
252-
DISC_ADJ_FEM = 25, /*!< \brief Definition of the discrete adjoint FEM solver. */
253-
FEM_EULER = 26, /*!< \brief Definition of the finite element Euler's solver. */
254-
FEM_NAVIER_STOKES = 27, /*!< \brief Definition of the finite element Navier-Stokes' solver. */
255-
FEM_RANS = 28, /*!< \brief Definition of the finite element Reynolds-averaged Navier-Stokes' (RANS) solver. */
256-
FEM_LES = 29, /*!< \brief Definition of the finite element Large Eddy Simulation Navier-Stokes' (LES) solver. */
257-
MULTIPHYSICS = 30,
258-
NEMO_EULER = 41, /*!< \brief Definition of the NEMO Euler solver. */
259-
NEMO_NAVIER_STOKES = 42 /*!< \brief Definition of the NEMO NS solver. */
260-
};
261-
static const MapType<std::string, ENUM_MAIN_SOLVER> Solver_Map = {
262-
MakePair("NONE", NO_SOLVER)
263-
MakePair("EULER", EULER)
264-
MakePair("NAVIER_STOKES", NAVIER_STOKES)
265-
MakePair("RANS", RANS)
266-
MakePair("INC_EULER", INC_EULER)
267-
MakePair("INC_NAVIER_STOKES", INC_NAVIER_STOKES)
268-
MakePair("INC_RANS", INC_RANS)
269-
MakePair("FEM_EULER", FEM_EULER)
270-
MakePair("FEM_NAVIER_STOKES", FEM_NAVIER_STOKES)
271-
MakePair("FEM_RANS", FEM_RANS)
272-
MakePair("FEM_LES", FEM_LES)
273-
MakePair("NEMO_EULER",NEMO_EULER)
274-
MakePair("NEMO_NAVIER_STOKES",NEMO_NAVIER_STOKES)
275-
MakePair("ADJ_EULER", ADJ_EULER)
276-
MakePair("ADJ_NAVIER_STOKES", ADJ_NAVIER_STOKES)
277-
MakePair("ADJ_RANS", ADJ_RANS )
278-
MakePair("HEAT_EQUATION", HEAT_EQUATION)
279-
MakePair("ELASTICITY", FEM_ELASTICITY)
280-
MakePair("DISC_ADJ_EULER", DISC_ADJ_EULER)
281-
MakePair("DISC_ADJ_RANS", DISC_ADJ_RANS)
282-
MakePair("DISC_ADJ_NAVIERSTOKES", DISC_ADJ_NAVIER_STOKES)
283-
MakePair("DISC_ADJ_INC_EULER", DISC_ADJ_INC_EULER)
284-
MakePair("DISC_ADJ_INC_RANS", DISC_ADJ_INC_RANS)
285-
MakePair("DISC_ADJ_INC_NAVIERSTOKES", DISC_ADJ_INC_NAVIER_STOKES)
286-
MakePair("DISC_ADJ_HEAT_EQUATION", DISC_ADJ_HEAT)
287-
MakePair("DISC_ADJ_FEM_EULER", DISC_ADJ_FEM_EULER)
288-
MakePair("DISC_ADJ_FEM_RANS", DISC_ADJ_FEM_RANS)
289-
MakePair("DISC_ADJ_FEM_NS", DISC_ADJ_FEM_NS)
290-
MakePair("DISC_ADJ_FEM", DISC_ADJ_FEM)
291-
MakePair("TEMPLATE_SOLVER", TEMPLATE_SOLVER)
292-
MakePair("MULTIPHYSICS", MULTIPHYSICS)
228+
enum class MAIN_SOLVER {
229+
NONE, /*!< \brief Definition of no solver. */
230+
EULER, /*!< \brief Definition of the Euler's solver. */
231+
NAVIER_STOKES, /*!< \brief Definition of the Navier-Stokes' solver. */
232+
RANS, /*!< \brief Definition of the Reynolds-averaged Navier-Stokes' (RANS) solver. */
233+
INC_EULER, /*!< \brief Definition of the incompressible Euler's solver. */
234+
INC_NAVIER_STOKES, /*!< \brief Definition of the incompressible Navier-Stokes' solver. */
235+
INC_RANS, /*!< \brief Definition of the incompressible Reynolds-averaged Navier-Stokes' (RANS) solver. */
236+
HEAT_EQUATION, /*!< \brief Definition of the finite volume heat solver. */
237+
FEM_ELASTICITY, /*!< \brief Definition of a FEM solver. */
238+
ADJ_EULER, /*!< \brief Definition of the continuous adjoint Euler's solver. */
239+
ADJ_NAVIER_STOKES, /*!< \brief Definition of the continuous adjoint Navier-Stokes' solver. */
240+
ADJ_RANS, /*!< \brief Definition of the continuous adjoint Reynolds-averaged Navier-Stokes' (RANS) solver. */
241+
TEMPLATE_SOLVER, /*!< \brief Definition of template solver. */
242+
DISC_ADJ_EULER, /*!< \brief Definition of the discrete adjoint Euler solver. */
243+
DISC_ADJ_RANS, /*!< \brief Definition of the discrete adjoint Reynolds-averaged Navier-Stokes' (RANS) solver. */
244+
DISC_ADJ_NAVIER_STOKES, /*!< \brief Definition of the discrete adjoint Navier-Stokes' solver. */
245+
DISC_ADJ_INC_EULER, /*!< \brief Definition of the discrete adjoint incompressible Euler solver. */
246+
DISC_ADJ_INC_RANS, /*!< \brief Definition of the discrete adjoint incompressible Reynolds-averaged Navier-Stokes' (RANS) solver. */
247+
DISC_ADJ_INC_NAVIER_STOKES, /*!< \brief Definition of the discrete adjoint incompressible Navier-Stokes'. */
248+
DISC_ADJ_HEAT, /*!< \brief Definition of the discrete adjoint heat solver. */
249+
DISC_ADJ_FEM_EULER, /*!< \brief Definition of the discrete adjoint FEM Euler solver. */
250+
DISC_ADJ_FEM_RANS, /*!< \brief Definition of the discrete adjoint FEM Reynolds-averaged Navier-Stokes' (RANS) solver. */
251+
DISC_ADJ_FEM_NS, /*!< \brief Definition of the discrete adjoint FEM Navier-Stokes' solver. */
252+
DISC_ADJ_FEM, /*!< \brief Definition of the discrete adjoint FEM solver. */
253+
FEM_EULER, /*!< \brief Definition of the finite element Euler's solver. */
254+
FEM_NAVIER_STOKES, /*!< \brief Definition of the finite element Navier-Stokes' solver. */
255+
FEM_RANS, /*!< \brief Definition of the finite element Reynolds-averaged Navier-Stokes' (RANS) solver. */
256+
FEM_LES, /*!< \brief Definition of the finite element Large Eddy Simulation Navier-Stokes' (LES) solver. */
257+
MULTIPHYSICS,
258+
NEMO_EULER, /*!< \brief Definition of the NEMO Euler solver. */
259+
NEMO_NAVIER_STOKES, /*!< \brief Definition of the NEMO NS solver. */
260+
};
261+
static const MapType<std::string, MAIN_SOLVER> Solver_Map = {
262+
MakePair("NONE", MAIN_SOLVER::NONE)
263+
MakePair("EULER", MAIN_SOLVER::EULER)
264+
MakePair("NAVIER_STOKES", MAIN_SOLVER::NAVIER_STOKES)
265+
MakePair("RANS", MAIN_SOLVER::RANS)
266+
MakePair("INC_EULER", MAIN_SOLVER::INC_EULER)
267+
MakePair("INC_NAVIER_STOKES", MAIN_SOLVER::INC_NAVIER_STOKES)
268+
MakePair("INC_RANS", MAIN_SOLVER::INC_RANS)
269+
MakePair("FEM_EULER", MAIN_SOLVER::FEM_EULER)
270+
MakePair("FEM_NAVIER_STOKES", MAIN_SOLVER::FEM_NAVIER_STOKES)
271+
MakePair("FEM_RANS", MAIN_SOLVER::FEM_RANS)
272+
MakePair("FEM_LES", MAIN_SOLVER::FEM_LES)
273+
MakePair("NEMO_EULER",MAIN_SOLVER::NEMO_EULER)
274+
MakePair("NEMO_NAVIER_STOKES",MAIN_SOLVER::NEMO_NAVIER_STOKES)
275+
MakePair("ADJ_EULER", MAIN_SOLVER::ADJ_EULER)
276+
MakePair("ADJ_NAVIER_STOKES", MAIN_SOLVER::ADJ_NAVIER_STOKES)
277+
MakePair("ADJ_RANS", MAIN_SOLVER::ADJ_RANS )
278+
MakePair("HEAT_EQUATION", MAIN_SOLVER::HEAT_EQUATION)
279+
MakePair("ELASTICITY", MAIN_SOLVER::FEM_ELASTICITY)
280+
MakePair("DISC_ADJ_EULER", MAIN_SOLVER::DISC_ADJ_EULER)
281+
MakePair("DISC_ADJ_RANS", MAIN_SOLVER::DISC_ADJ_RANS)
282+
MakePair("DISC_ADJ_NAVIERSTOKES", MAIN_SOLVER::DISC_ADJ_NAVIER_STOKES)
283+
MakePair("DISC_ADJ_INC_EULER", MAIN_SOLVER::DISC_ADJ_INC_EULER)
284+
MakePair("DISC_ADJ_INC_RANS", MAIN_SOLVER::DISC_ADJ_INC_RANS)
285+
MakePair("DISC_ADJ_INC_NAVIERSTOKES", MAIN_SOLVER::DISC_ADJ_INC_NAVIER_STOKES)
286+
MakePair("DISC_ADJ_HEAT_EQUATION", MAIN_SOLVER::DISC_ADJ_HEAT)
287+
MakePair("DISC_ADJ_FEM_EULER", MAIN_SOLVER::DISC_ADJ_FEM_EULER)
288+
MakePair("DISC_ADJ_FEM_RANS", MAIN_SOLVER::DISC_ADJ_FEM_RANS)
289+
MakePair("DISC_ADJ_FEM_NS", MAIN_SOLVER::DISC_ADJ_FEM_NS)
290+
MakePair("DISC_ADJ_FEM", MAIN_SOLVER::DISC_ADJ_FEM)
291+
MakePair("TEMPLATE_SOLVER", MAIN_SOLVER::TEMPLATE_SOLVER)
292+
MakePair("MULTIPHYSICS", MAIN_SOLVER::MULTIPHYSICS)
293293
};
294294

295295
/*!
@@ -932,15 +932,15 @@ static const MapType<std::string, TURB_MODEL> Turb_Model_Map = {
932932
/*!
933933
* \brief Types of transition models
934934
*/
935-
enum ENUM_TRANS_MODEL {
936-
NO_TRANS_MODEL = 0, /*!< \brief No transition model. */
937-
LM = 1, /*!< \brief Kind of transition model (Langtry-Menter (LM) for SST and Spalart-Allmaras). */
938-
BC = 2 /*!< \brief Kind of transition model (BAS-CAKMAKCIOGLU (BC) for Spalart-Allmaras). */
935+
enum class TURB_TRANS_MODEL {
936+
NONE, /*!< \brief No transition model. */
937+
LM, /*!< \brief Kind of transition model (Langtry-Menter (LM) for SST and Spalart-Allmaras). */
938+
BC /*!< \brief Kind of transition model (BAS-CAKMAKCIOGLU (BC) for Spalart-Allmaras). */
939939
};
940-
static const MapType<std::string, ENUM_TRANS_MODEL> Trans_Model_Map = {
941-
MakePair("NONE", NO_TRANS_MODEL)
942-
MakePair("LM", LM)
943-
MakePair("BC", BC)
940+
static const MapType<std::string, TURB_TRANS_MODEL> Trans_Model_Map = {
941+
MakePair("NONE", TURB_TRANS_MODEL::NONE)
942+
MakePair("LM", TURB_TRANS_MODEL::LM)
943+
MakePair("BC", TURB_TRANS_MODEL::BC)
944944
};
945945

946946
/*!

Common/include/toolboxes/MMS/CVerificationSolution.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CVerificationSolution {
4646
unsigned short nDim; /*!< \brief Number of dimension of the problem. */
4747
unsigned short nVar; /*!< \brief Number of variables of the problem */
4848

49-
unsigned short Kind_Solver; /*!< \brief The kind of solver we are running. */
49+
MAIN_SOLVER Kind_Solver; /*!< \brief The kind of solver we are running. */
5050

5151
private:
5252

0 commit comments

Comments
 (0)