WARPXM v1.10.0
Loading...
Searching...
No Matches
artificial_viscosity_limiter.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
5
6namespace wxm
7{
8namespace apps
9{
10namespace five_moment
11{
12namespace limiters
13{
14
27{
28public:
33
38
43 void setup(const WxCryptSet& wxc) override;
44
50 const std::vector<int>& getInputVariableIndexes(int flag) const override
51 {
52 return _input_variables;
53 }
54
60 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
61 {
62 return _aux_variables;
63 }
64
70 const std::vector<int>& getOutputVariableIndexes(int flag) const override
71 {
72 return _output_variables;
73 }
74
85 const real* q_r,
86 const real* aux_l,
87 const real* aux_r,
88 const solverVariables_t* pFV,
89 real* numericalFlux) const override;
90
99 const real* aux,
100 const solverVariables_t* pSV,
101 std::vector<std::vector<real>>& internalFlux) const override;
102
103 // specific calls
104
115 const real* q_r,
116 const real* aux_l,
117 const real* aux_r,
118 const solverVariables_t* pFV,
119 real* numericalFlux) const;
120
131 const real* q_r,
132 const real* aux_l,
133 const real* aux_r,
134 const solverVariables_t* pFV,
135 real* numericalFlux) const;
136
137protected:
138 // viscous multiplier of the limiter
140 // gradient calculation method ("ip" or "ldg")
141 std::string _gradient_method;
142 // diffusion factor multiplier ("fabs" or "squared")
143 std::string _diffusion_factor;
144
145 std::vector<int> _input_variables;
146 std::vector<int> _aux_variables;
147 std::vector<int> _output_variables;
148};
149
150} // namespace limiters
151} // namespace five_moment
152} // namespace apps
153} // namespace wxm
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 divergence Adds a diffusion te...
Definition: artificial_viscosity_limiter.h:27
std::vector< int > _aux_variables
Definition: artificial_viscosity_limiter.h:146
real _coefficient
Definition: artificial_viscosity_limiter.h:139
std::string _diffusion_factor
Definition: artificial_viscosity_limiter.h:143
void setup(const WxCryptSet &wxc) override
Setup function.
std::vector< int > _output_variables
Definition: artificial_viscosity_limiter.h:147
std::string _gradient_method
Definition: artificial_viscosity_limiter.h:141
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 parent.
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Grab auxiliary variable indices.
Definition: artificial_viscosity_limiter.h:60
std::vector< int > _input_variables
Definition: artificial_viscosity_limiter.h:145
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
Numerical flux call as determined by local discontinuous galerkin method.
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
Numerical flux call as determined by interior penalty method.
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: artificial_viscosity_limiter.h:50
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 parent.
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: artificial_viscosity_limiter.h:70
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