WARPXM v1.10.0
Loading...
Searching...
No Matches
advection.h
Go to the documentation of this file.
1#ifndef WXM_APPS_ADVECTION_H
2#define WXM_APPS_ADVECTION_H
3
4// Wm includes
6
7namespace wxm
8{
9namespace apps
10{
11
13{
14public:
16
17 ~advection_t() override;
18
19 void setup(const WxCryptSet& wxc) override;
20
21 const std::vector<int>& getInputVariableIndexes(int flag) const override
22 {
23 return _variables;
24 }
25
26 const std::vector<int>& getOutputVariableIndexes(int flag) const override
27 {
28 return _variables;
29 }
30
32 const real* q_r,
33 const real* aux_l,
34 const real* aux_r,
35 const solverVariables_t* pFV,
36 real* numericalFlux) const override;
38 const real* aux,
39 const solverVariables_t* pSV,
40 std::vector<std::vector<real>>& internalFlux) const override;
41
42protected:
43 std::vector<real> _velocity;
44
45 std::vector<int> _variables;
46
47private:
48 advection_t& operator=(const advection_t& var);
49 advection_t(const advection_t& var);
50};
51} // namespace apps
52} // namespace wxm
53
54#endif // WXM_APPS_ADVECTION_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
Definition: advection.h:13
std::vector< real > _velocity
Definition: advection.h:43
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: advection.h:26
void setup(const WxCryptSet &wxc) override
real internal_flux(const real *q, const real *aux, const solverVariables_t *pSV, std::vector< std::vector< real > > &internalFlux) const override
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
std::vector< int > _variables
Definition: advection.h:45
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: advection.h:21
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