WARPXM v1.10.0
Loading...
Searching...
No Matches
artificial_viscosity_limiter_meier.h
Go to the documentation of this file.
1#ifndef WXM_APPS_5MOMENT_ARTIFICIAL_VISCOSITY_LIMITER_MEIER_H
2#define WXM_APPS_5MOMENT_ARTIFICIAL_VISCOSITY_LIMITER_MEIER_H
3
4// Wm includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace five_moment
12{
13namespace limiters
14{
15
45{
46public:
51
56
61 void setup(const WxCryptSet& wxc) override;
62
68 const std::vector<int>& getInputVariableIndexes(int flag) const override
69 {
70 return _input_variables;
71 }
72
78 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
79 {
80 return _aux_variables;
81 }
82
88 const std::vector<int>& getOutputVariableIndexes(int flag) const override
89 {
90 return _output_variables;
91 }
92
104 const real* q_r,
105 const real* aux_l,
106 const real* aux_r,
107 const solverVariables_t* pFV,
108 real* numericalFlux) const override;
109
119 const real* aux,
120 const solverVariables_t* pSV,
121 std::vector<std::vector<real>>& internalFlux) const override;
122
123 // specific calls
124
137 const real* q_r,
138 const real* aux_l,
139 const real* aux_r,
140 const solverVariables_t* pFV,
141 real* numericalFlux) const;
142
155 const real* q_r,
156 const real* aux_l,
157 const real* aux_r,
158 const solverVariables_t* pFV,
159 real* numericalFlux) const;
160
161protected:
162 // viscous multiplier of the limiter
164 // gradient calculation method ("ip" or "ldg")
165 std::string _gradient_method;
166
167 std::vector<int> _input_variables;
168 std::vector<int> _aux_variables;
169 std::vector<int> _output_variables;
170};
171
172} // namespace limiters
173} // namespace five_moment
174} // namespace apps
175} // namespace wxm
176
177#endif // WXM_APPS_5MOMENT__ARTIFICIAL_VISCOSITY_LIMITER_MEIER_H
Base Class for physics applications.
Definition: wmapplication.h:93
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
Class used implementing artificial viscosity limiter based on velocity gradient as desribed in Eric M...
Definition: artificial_viscosity_limiter_meier.h:45
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Get auxiliary variable indices.
Definition: artificial_viscosity_limiter_meier.h:78
std::vector< int > _output_variables
Definition: artificial_viscosity_limiter_meier.h:169
real _coefficient
Definition: artificial_viscosity_limiter_meier.h:163
real numerical_flux_ldg(const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const
Specific Numerical flux definition for local discontinuous galerkin method Called by the numerical fl...
real numerical_flux_ip(const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const
Specific Numerical flux definition for interior penalty method Called by the numerical flux function.
std::vector< int > _aux_variables
Definition: artificial_viscosity_limiter_meier.h:168
const std::vector< int > & getInputVariableIndexes(int flag) const override
Get input variable indices.
Definition: artificial_viscosity_limiter_meier.h:68
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Get output variable indices.
Definition: artificial_viscosity_limiter_meier.h:88
real numerical_flux(const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const override
Numerical flux redefinition from wmapplication parent.
real internal_flux(const real *q, const real *aux, const solverVariables_t *pSV, std::vector< std::vector< real > > &internalFlux) const override
Internal flux redefinition from wmapplication parent.
std::vector< int > _input_variables
Definition: artificial_viscosity_limiter_meier.h:167
std::string _gradient_method
Definition: artificial_viscosity_limiter_meier.h:165
list apps
Definition: shock_tube.py:33
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
Definition: wmapplication.h:38
#define real
Definition: wmoclunstructuredreconstruction.h:11