@@ -531,28 +531,34 @@ class CConfig {
531531 Kind_ConvNumScheme_AdjTurb, /* !< \brief Centered or upwind scheme for the adjoint turbulence model. */
532532 Kind_ConvNumScheme_Species, /* !< \brief Centered or upwind scheme for the species model. */
533533 Kind_ConvNumScheme_Template, /* !< \brief Centered or upwind scheme for the level set equation. */
534+ Kind_FEM, /* !< \brief Finite element scheme for the flow equations. */
535+ Kind_FEM_Flow, /* !< \brief Finite element scheme for the flow equations. */
536+ Kind_Matrix_Coloring; /* !< \brief Type of matrix coloring for sparse Jacobian computation. */
537+
538+ CENTERED
534539 Kind_Centered, /* !< \brief Centered scheme. */
535540 Kind_Centered_Flow, /* !< \brief Centered scheme for the flow equations. */
536541 Kind_Centered_AdjFlow, /* !< \brief Centered scheme for the adjoint flow equations. */
537542 Kind_Centered_Turb, /* !< \brief Centered scheme for the turbulence model. */
538543 Kind_Centered_AdjTurb, /* !< \brief Centered scheme for the adjoint turbulence model. */
539544 Kind_Centered_Species, /* !< \brief Centered scheme for the species model. */
540- Kind_Centered_Template, /* !< \brief Centered scheme for the template model. */
545+ Kind_Centered_Template; /* !< \brief Centered scheme for the template model. */
546+
547+
548+ FEM_SHOCK_CAPTURING_DG Kind_FEM_Shock_Capturing_DG; /* !< \brief Shock capturing method for the FEM DG solver. */
549+ BGS_RELAXATION Kind_BGS_RelaxMethod; /* !< \brief Kind of relaxation method for Block Gauss Seidel method in FSI problems. */
550+ bool ReconstructionGradientRequired; /* !< \brief Enable or disable a second gradient calculation for upwind reconstruction only. */
551+ bool LeastSquaresRequired; /* !< \brief Enable or disable memory allocation for least-squares gradient methods. */
552+ bool Energy_Equation; /* !< \brief Solve the energy equation for incompressible flows. */
553+
554+ UPWIND
541555 Kind_Upwind, /* !< \brief Upwind scheme. */
542556 Kind_Upwind_Flow, /* !< \brief Upwind scheme for the flow equations. */
543557 Kind_Upwind_AdjFlow, /* !< \brief Upwind scheme for the adjoint flow equations. */
544558 Kind_Upwind_Turb, /* !< \brief Upwind scheme for the turbulence model. */
545559 Kind_Upwind_AdjTurb, /* !< \brief Upwind scheme for the adjoint turbulence model. */
546560 Kind_Upwind_Species, /* !< \brief Upwind scheme for the species model. */
547- Kind_Upwind_Template, /* !< \brief Upwind scheme for the template model. */
548- Kind_FEM, /* !< \brief Finite element scheme for the flow equations. */
549- Kind_FEM_Flow, /* !< \brief Finite element scheme for the flow equations. */
550- Kind_Matrix_Coloring; /* !< \brief Type of matrix coloring for sparse Jacobian computation. */
551- FEM_SHOCK_CAPTURING_DG Kind_FEM_Shock_Capturing_DG; /* !< \brief Shock capturing method for the FEM DG solver. */
552- BGS_RELAXATION Kind_BGS_RelaxMethod; /* !< \brief Kind of relaxation method for Block Gauss Seidel method in FSI problems. */
553- bool ReconstructionGradientRequired; /* !< \brief Enable or disable a second gradient calculation for upwind reconstruction only. */
554- bool LeastSquaresRequired; /* !< \brief Enable or disable memory allocation for least-squares gradient methods. */
555- bool Energy_Equation; /* !< \brief Solve the energy equation for incompressible flows. */
561+ Kind_Upwind_Template; /* !< \brief Upwind scheme for the template model. */
556562
557563 bool MUSCL, /* !< \brief MUSCL scheme .*/
558564 MUSCL_Flow, /* !< \brief MUSCL scheme for the flow equations.*/
@@ -1103,7 +1109,7 @@ class CConfig {
11031109 hs_axes[3 ], /* !< \brief principal axes (x, y, z) of the ellipsoid containing the heat source. */
11041110 hs_center[3 ]; /* !< \brief position of the center of the heat source. */
11051111
1106- unsigned short Riemann_Solver_FEM; /* !< \brief Riemann solver chosen for the DG method. */
1112+ UPWIND Riemann_Solver_FEM; /* !< \brief Riemann solver chosen for the DG method. */
11071113 su2double Quadrature_Factor_Straight; /* !< \brief Factor applied during quadrature of elements with a constant Jacobian. */
11081114 su2double Quadrature_Factor_Curved; /* !< \brief Factor applied during quadrature of elements with a non-constant Jacobian. */
11091115 su2double Quadrature_Factor_Time_ADER_DG; /* !< \brief Factor applied during quadrature in time for ADER-DG. */
@@ -1274,7 +1280,7 @@ class CConfig {
12741280
12751281 void addStringListOption (const string name, unsigned short & num_marker, string* & option_field);
12761282
1277- void addConvectOption (const string name, unsigned short & space_field, unsigned short & centered_field, unsigned short & upwind_field);
1283+ void addConvectOption (const string name, unsigned short & space_field, CENTERED & centered_field, UPWIND & upwind_field);
12781284
12791285 void addConvectFEMOption (const string name, unsigned short & space_field, unsigned short & fem_field);
12801286
@@ -2300,8 +2306,8 @@ class CConfig {
23002306 * \param[in] val_muscl - Define if we apply a MUSCL scheme or not.
23012307 * \param[in] val_kind_fem - If FEM, what kind of FEM discretization.
23022308 */
2303- void SetKind_ConvNumScheme (unsigned short val_kind_convnumscheme, unsigned short val_kind_centered,
2304- unsigned short val_kind_upwind, LIMITER val_kind_slopelimit,
2309+ void SetKind_ConvNumScheme (unsigned short val_kind_convnumscheme, CENTERED val_kind_centered,
2310+ UPWIND val_kind_upwind, LIMITER val_kind_slopelimit,
23052311 bool val_muscl, unsigned short val_kind_fem);
23062312
23072313 /* !
@@ -3688,7 +3694,7 @@ class CConfig {
36883694 */
36893695 bool GetAUSMMethod (void ) const {
36903696 switch (Kind_Upwind_Flow) {
3691- case AUSM : case AUSMPLUSUP: case AUSMPLUSUP2: case AUSMPWPLUS:
3697+ case UPWIND:: AUSM : case UPWIND:: AUSMPLUSUP: case UPWIND:: AUSMPLUSUP2: case UPWIND:: AUSMPWPLUS:
36923698 return true ;
36933699 default :
36943700 return false ;
@@ -4341,7 +4347,7 @@ class CConfig {
43414347 * linearized) that is being solved.
43424348 * \return Kind of center scheme for the convective terms.
43434349 */
4344- unsigned short GetKind_Centered (void ) const { return Kind_Centered; }
4350+ CENTERED GetKind_Centered (void ) const { return Kind_Centered; }
43454351
43464352 /* !
43474353 * \brief Get kind of upwind scheme for the convective terms.
@@ -4350,7 +4356,7 @@ class CConfig {
43504356 * linearized) that is being solved.
43514357 * \return Kind of upwind scheme for the convective terms.
43524358 */
4353- unsigned short GetKind_Upwind (void ) const { return Kind_Upwind; }
4359+ UPWIND GetKind_Upwind (void ) const { return Kind_Upwind; }
43544360
43554361 /* !
43564362 * \brief Get if the upwind scheme used MUSCL or not.
@@ -4521,7 +4527,7 @@ class CConfig {
45214527 * during the computation.
45224528 * \return Kind of center convective numerical scheme for the flow equations.
45234529 */
4524- ENUM_CENTERED GetKind_Centered_Flow (void ) const { return static_cast <ENUM_CENTERED>( Kind_Centered_Flow) ; }
4530+ CENTERED GetKind_Centered_Flow (void ) const { return Kind_Centered_Flow; }
45254531
45264532 /* !
45274533 * \brief Get the kind of center convective numerical scheme for the plasma equations.
@@ -4537,7 +4543,7 @@ class CConfig {
45374543 * during the computation.
45384544 * \return Kind of upwind convective numerical scheme for the flow equations.
45394545 */
4540- unsigned short GetKind_Upwind_Flow (void ) const { return Kind_Upwind_Flow; }
4546+ UPWIND GetKind_Upwind_Flow (void ) const { return Kind_Upwind_Flow; }
45414547
45424548 /* !
45434549 * \brief Get the kind of finite element convective numerical scheme for the flow equations.
@@ -4666,15 +4672,15 @@ class CConfig {
46664672 * during the computation.
46674673 * \return Kind of center convective numerical scheme for the adjoint flow equations.
46684674 */
4669- unsigned short GetKind_Centered_AdjFlow (void ) const { return Kind_Centered_AdjFlow; }
4675+ CENTERED GetKind_Centered_AdjFlow (void ) const { return Kind_Centered_AdjFlow; }
46704676
46714677 /* !
46724678 * \brief Get the kind of upwind convective numerical scheme for the adjoint flow equations.
46734679 * \note This value is obtained from the config file, and it is constant
46744680 * during the computation.
46754681 * \return Kind of upwind convective numerical scheme for the adjoint flow equations.
46764682 */
4677- unsigned short GetKind_Upwind_AdjFlow (void ) const { return Kind_Upwind_AdjFlow; }
4683+ UPWIND GetKind_Upwind_AdjFlow (void ) const { return Kind_Upwind_AdjFlow; }
46784684
46794685 /* !
46804686 * \brief Value of the calibrated constant for the high order method (center scheme).
@@ -4718,15 +4724,15 @@ class CConfig {
47184724 * during the computation.
47194725 * \return Kind of center convective numerical scheme for the turbulence equations.
47204726 */
4721- unsigned short GetKind_Centered_Turb (void ) const { return Kind_Centered_Turb; }
4727+ CENTERED GetKind_Centered_Turb (void ) const { return Kind_Centered_Turb; }
47224728
47234729 /* !
47244730 * \brief Get the kind of upwind convective numerical scheme for the turbulence equations.
47254731 * \note This value is obtained from the config file, and it is constant
47264732 * during the computation.
47274733 * \return Kind of upwind convective numerical scheme for the turbulence equations.
47284734 */
4729- unsigned short GetKind_Upwind_Turb (void ) const { return Kind_Upwind_Turb; }
4735+ UPWIND GetKind_Upwind_Turb (void ) const { return Kind_Upwind_Turb; }
47304736
47314737 /* !
47324738 * \brief Get the kind of integration scheme (explicit or implicit)
@@ -4770,15 +4776,30 @@ class CConfig {
47704776 * during the computation.
47714777 * \return Kind of center convective numerical scheme for the Species equations.
47724778 */
4773- unsigned short GetKind_Centered_Species () const { return Kind_Centered_Species; }
4779+ CENTERED GetKind_Centered_Species () const { return Kind_Centered_Species; }
47744780
47754781 /* !
47764782 * \brief Get the kind of upwind convective numerical scheme for the Species equations.
47774783 * \note This value is obtained from the config file, and it is constant
47784784 * during the computation.
47794785 * \return Kind of upwind convective numerical scheme for the Species equations.
47804786 */
4781- unsigned short GetKind_Upwind_Species () const { return Kind_Upwind_Species; }
4787+ UPWIND GetKind_Upwind_Species () const { return Kind_Upwind_Species; }
4788+
4789+ /* !
4790+ * \brief Returns true if bounded scalar mode is on for species transport.
4791+ */
4792+ bool GetBounded_Species () const { return (Kind_Upwind_Species == UPWIND::BOUNDED_SCALAR); }
4793+
4794+ /* !
4795+ * \brief Returns true if bounded scalar mode is on for turbulence transport.
4796+ */
4797+ bool GetBounded_Turb () const { return (Kind_Upwind_Turb == UPWIND::BOUNDED_SCALAR); }
4798+
4799+ /* !
4800+ * \brief Returns true if bounded scalar mode is used for any equation.
4801+ */
4802+ bool GetBounded_Scalar () const { return GetBounded_Species () || GetBounded_Turb (); }
47824803
47834804 /* !
47844805 * \brief Get the kind of convective numerical scheme for the heat equation.
@@ -4794,15 +4815,15 @@ class CConfig {
47944815 * during the computation.
47954816 * \return Kind of center convective numerical scheme for the adjoint turbulence equations.
47964817 */
4797- unsigned short GetKind_Centered_AdjTurb (void ) const { return Kind_Centered_AdjTurb; }
4818+ CENTERED GetKind_Centered_AdjTurb (void ) const { return Kind_Centered_AdjTurb; }
47984819
47994820 /* !
48004821 * \brief Get the kind of upwind convective numerical scheme for the adjoint turbulence equations.
48014822 * \note This value is obtained from the config file, and it is constant
48024823 * during the computation.
48034824 * \return Kind of upwind convective numerical scheme for the adjoint turbulence equations.
48044825 */
4805- unsigned short GetKind_Upwind_AdjTurb (void ) const { return Kind_Upwind_AdjTurb; }
4826+ UPWIND GetKind_Upwind_AdjTurb (void ) const { return Kind_Upwind_AdjTurb; }
48064827
48074828 /* !
48084829 * \brief Provides information about the way in which the turbulence will be treated by the
@@ -8898,7 +8919,7 @@ class CConfig {
88988919 * \note This value is obtained from the config file, and it is constant during the computation.
88998920 * \return Kind of Riemann solver for the DG method (FEM flow solver).
89008921 */
8901- unsigned short GetRiemann_Solver_FEM (void ) const { return Riemann_Solver_FEM; }
8922+ UPWIND GetRiemann_Solver_FEM (void ) const { return Riemann_Solver_FEM; }
89028923
89038924 /* !
89048925 * \brief Get the factor applied during quadrature of straight elements.
0 commit comments