@@ -842,13 +842,13 @@ static const MapType<std::string, ENUM_FEM> FEM_Map = {
842842/* !
843843 * \brief Types of shock capturing method in Discontinuous Galerkin numerical method.
844844 */
845- enum ENUM_SHOCK_CAPTURING_DG {
846- NO_SHOCK_CAPTURING = 0 , /* !< \brief Shock capturing is not used. */
847- PERSSON = 1 /* !< \brief Per-Olof Persson's sub-cell shock capturing method. */
845+ enum class FEM_SHOCK_CAPTURING_DG {
846+ NONE , /* !< \brief Shock capturing is not used. */
847+ PERSSON /* !< \brief Per-Olof Persson's sub-cell shock capturing method. */
848848};
849- static const MapType<std::string, ENUM_SHOCK_CAPTURING_DG > ShockCapturingDG_Map = {
850- MakePair (" NONE" , NO_SHOCK_CAPTURING )
851- MakePair (" PERSSON" , PERSSON)
849+ static const MapType<std::string, FEM_SHOCK_CAPTURING_DG > ShockCapturingDG_Map = {
850+ MakePair (" NONE" , FEM_SHOCK_CAPTURING_DG::NONE )
851+ MakePair (" PERSSON" , FEM_SHOCK_CAPTURING_DG:: PERSSON)
852852};
853853
854854/* !
@@ -926,19 +926,19 @@ static const MapType<std::string, TURB_TRANS_MODEL> Trans_Model_Map = {
926926/* !
927927 * \brief Types of subgrid scale models
928928 */
929- enum ENUM_SGS_MODEL {
930- NO_SGS_MODEL = 0 , /* !< \brief No subgrid scale model. */
931- IMPLICIT_LES = 1 , /* !< \brief Implicit LES, i.e. no explicit SGS model. */
932- SMAGORINSKY = 2 , /* !< \brief Smagorinsky SGS model. */
933- WALE = 3 , /* !< \brief Wall-Adapting Local Eddy-viscosity SGS model. */
934- VREMAN = 4 /* !< \brief Vreman SGS model. */
929+ enum class TURB_SGS_MODEL {
930+ NONE , /* !< \brief No subgrid scale model. */
931+ IMPLICIT_LES, /* !< \brief Implicit LES, i.e. no explicit SGS model. */
932+ SMAGORINSKY , /* !< \brief Smagorinsky SGS model. */
933+ WALE , /* !< \brief Wall-Adapting Local Eddy-viscosity SGS model. */
934+ VREMAN /* !< \brief Vreman SGS model. */
935935};
936- static const MapType<std::string, ENUM_SGS_MODEL > SGS_Model_Map = {
937- MakePair (" NONE" , NO_SGS_MODEL )
938- MakePair (" IMPLICIT_LES" , IMPLICIT_LES)
939- MakePair (" SMAGORINSKY" , SMAGORINSKY)
940- MakePair (" WALE" , WALE)
941- MakePair (" VREMAN" , VREMAN)
936+ static const MapType<std::string, TURB_SGS_MODEL > SGS_Model_Map = {
937+ MakePair (" NONE" , TURB_SGS_MODEL::NONE )
938+ MakePair (" IMPLICIT_LES" , TURB_SGS_MODEL:: IMPLICIT_LES)
939+ MakePair (" SMAGORINSKY" , TURB_SGS_MODEL:: SMAGORINSKY)
940+ MakePair (" WALE" , TURB_SGS_MODEL:: WALE)
941+ MakePair (" VREMAN" , TURB_SGS_MODEL:: VREMAN)
942942};
943943
944944
@@ -2218,35 +2218,35 @@ static const MapType<std::string, ENUM_PROJECTION_FUNCTION> Projection_Function_
22182218/* !
22192219 * \brief the different validation solution
22202220 */
2221- enum ENUM_VERIFICATION_SOLUTIONS {
2222- NO_VERIFICATION_SOLUTION = 0 , /* !< \brief No verification solution, standard solver mode. */
2223- INVISCID_VORTEX = 1 , /* !< \brief Inviscid vortex. Exact solution of the unsteady Euler equations. */
2224- RINGLEB = 2 , /* !< \brief Ringleb flow. Exact solution of the steady Euler equations. */
2225- NS_UNIT_QUAD = 31 , /* !< \brief Exact solution of the laminar Navier Stokes equations without heat conduction. */
2226- TAYLOR_GREEN_VORTEX = 32 , /* !< \brief Taylor Green Vortex. */
2227- INC_TAYLOR_GREEN_VORTEX = 33 , /* !< \brief Incompressible Taylor Green Vortex (2D). */
2228- MMS_NS_UNIT_QUAD = 61 , /* !< \brief Manufactured solution of the laminar Navier Stokes equations on a unit quad. */
2229- MMS_NS_UNIT_QUAD_WALL_BC = 62 , /* !< \brief Manufactured solution of the laminar Navier Stokes equations on a unit quad with wall BC's. */
2230- MMS_NS_TWO_HALF_CIRCLES = 63 , /* !< \brief Manufactured solution of the laminar Navier Stokes equations between two half circles. */
2231- MMS_NS_TWO_HALF_SPHERES = 64 , /* !< \brief Manufactured solution of the laminar Navier Stokes equations between two half spheres. */
2232- MMS_INC_EULER = 65 , /* !< \brief Manufactured solution of the incompressible Euler equations. */
2233- MMS_INC_NS = 66 , /* !< \brief Manufactured solution of the laminar incompressible Navier Stokes equations. */
2234- USER_DEFINED_SOLUTION = 99 , /* !< \brief User defined solution. */
2235- };
2236- static const MapType<std::string, ENUM_VERIFICATION_SOLUTIONS > Verification_Solution_Map = {
2237- MakePair (" NO_VERIFICATION_SOLUTION" , NO_VERIFICATION_SOLUTION )
2238- MakePair (" INVISCID_VORTEX" , INVISCID_VORTEX)
2239- MakePair (" RINGLEB" , RINGLEB)
2240- MakePair (" NS_UNIT_QUAD" , NS_UNIT_QUAD)
2241- MakePair (" TAYLOR_GREEN_VORTEX" , TAYLOR_GREEN_VORTEX)
2242- MakePair (" INC_TAYLOR_GREEN_VORTEX" , INC_TAYLOR_GREEN_VORTEX)
2243- MakePair (" MMS_NS_UNIT_QUAD" , MMS_NS_UNIT_QUAD)
2244- MakePair (" MMS_NS_UNIT_QUAD_WALL_BC" , MMS_NS_UNIT_QUAD_WALL_BC)
2245- MakePair (" MMS_NS_TWO_HALF_CIRCLES" , MMS_NS_TWO_HALF_CIRCLES)
2246- MakePair (" MMS_NS_TWO_HALF_SPHERES" , MMS_NS_TWO_HALF_SPHERES)
2247- MakePair (" MMS_INC_EULER" , MMS_INC_EULER)
2248- MakePair (" MMS_INC_NS" , MMS_INC_NS)
2249- MakePair (" USER_DEFINED_SOLUTION" , USER_DEFINED_SOLUTION)
2221+ enum class VERIFICATION_SOLUTION {
2222+ NONE, /* !< \brief No verification solution, standard solver mode. */
2223+ INVISCID_VORTEX, /* !< \brief Inviscid vortex. Exact solution of the unsteady Euler equations. */
2224+ RINGLEB, /* !< \brief Ringleb flow. Exact solution of the steady Euler equations. */
2225+ NS_UNIT_QUAD, /* !< \brief Exact solution of the laminar Navier Stokes equations without heat conduction. */
2226+ TAYLOR_GREEN_VORTEX, /* !< \brief Taylor Green Vortex. */
2227+ INC_TAYLOR_GREEN_VORTEX, /* !< \brief Incompressible Taylor Green Vortex (2D). */
2228+ MMS_NS_UNIT_QUAD, /* !< \brief Manufactured solution of the laminar Navier Stokes equations on a unit quad. */
2229+ MMS_NS_UNIT_QUAD_WALL_BC, /* !< \brief Manufactured solution of the laminar Navier Stokes equations on a unit quad with wall BC's. */
2230+ MMS_NS_TWO_HALF_CIRCLES, /* !< \brief Manufactured solution of the laminar Navier Stokes equations between two half circles. */
2231+ MMS_NS_TWO_HALF_SPHERES, /* !< \brief Manufactured solution of the laminar Navier Stokes equations between two half spheres. */
2232+ MMS_INC_EULER, /* !< \brief Manufactured solution of the incompressible Euler equations. */
2233+ MMS_INC_NS, /* !< \brief Manufactured solution of the laminar incompressible Navier Stokes equations. */
2234+ USER_DEFINED_SOLUTION, /* !< \brief User defined solution. */
2235+ };
2236+ static const MapType<std::string, VERIFICATION_SOLUTION > Verification_Solution_Map = {
2237+ MakePair (" NO_VERIFICATION_SOLUTION" , VERIFICATION_SOLUTION::NONE )
2238+ MakePair (" INVISCID_VORTEX" , VERIFICATION_SOLUTION:: INVISCID_VORTEX)
2239+ MakePair (" RINGLEB" , VERIFICATION_SOLUTION:: RINGLEB)
2240+ MakePair (" NS_UNIT_QUAD" , VERIFICATION_SOLUTION:: NS_UNIT_QUAD)
2241+ MakePair (" TAYLOR_GREEN_VORTEX" , VERIFICATION_SOLUTION:: TAYLOR_GREEN_VORTEX)
2242+ MakePair (" INC_TAYLOR_GREEN_VORTEX" , VERIFICATION_SOLUTION:: INC_TAYLOR_GREEN_VORTEX)
2243+ MakePair (" MMS_NS_UNIT_QUAD" , VERIFICATION_SOLUTION:: MMS_NS_UNIT_QUAD)
2244+ MakePair (" MMS_NS_UNIT_QUAD_WALL_BC" , VERIFICATION_SOLUTION:: MMS_NS_UNIT_QUAD_WALL_BC)
2245+ MakePair (" MMS_NS_TWO_HALF_CIRCLES" , VERIFICATION_SOLUTION:: MMS_NS_TWO_HALF_CIRCLES)
2246+ MakePair (" MMS_NS_TWO_HALF_SPHERES" , VERIFICATION_SOLUTION:: MMS_NS_TWO_HALF_SPHERES)
2247+ MakePair (" MMS_INC_EULER" , VERIFICATION_SOLUTION:: MMS_INC_EULER)
2248+ MakePair (" MMS_INC_NS" , VERIFICATION_SOLUTION:: MMS_INC_NS)
2249+ MakePair (" USER_DEFINED_SOLUTION" , VERIFICATION_SOLUTION:: USER_DEFINED_SOLUTION)
22502250};
22512251
22522252/* !
0 commit comments