WARPXM v1.10.0
Loading...
Searching...
No Matches
advection_bc_flux.h
Go to the documentation of this file.
1#ifndef WXM_APPS_FLUX_BC_ADVECTION_H
2#define WXM_APPS_FLUX_BC_ADVECTION_H
3
4// Wm includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace bc
12{
13namespace flux_bc
14{
15namespace advection
16{
17
26{
27public:
37 ~AdvectionBCFlux() override;
38
43 void setup(const WxCryptSet& wxc) override;
44
50 const std::vector<int>& getInputVariableIndexes(int flag) const override
51 {
52 return _variables;
53 }
54
60 const std::vector<int>& getOutputVariableIndexes(int flag) const override
61 {
62 return _variables;
63 }
64
75 const real* q_r,
76 const real* aux_l,
77 const real* aux_r,
78 const solverVariables_t* pFV,
79 real* numericalFlux) const override;
80
81protected:
83 std::vector<real> _velocity;
84 std::vector<int> _variables;
85
86private:
87 AdvectionBCFlux& operator=(const AdvectionBCFlux& var);
89}; // namespace advection
90} // namespace advection
91} // namespace flux_bc
92} // namespace bc
93} // namespace apps
94} // namespace wxm
95
96#endif // WXM_APPS_FLUX_BC_ARBITRARY_SINGLE_VARIABLE_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
Flux Bounary Condition for Advection Equation This boundary condition is meant to set the boundary co...
Definition: advection_bc_flux.h:26
std::vector< int > _variables
Definition: advection_bc_flux.h:84
real _qr_imposed
Definition: advection_bc_flux.h:82
real bcNumericalFlux(const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const override
Redefinition of the boundary condition numerical flux.
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: advection_bc_flux.h:50
std::vector< real > _velocity
Definition: advection_bc_flux.h:83
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: advection_bc_flux.h:60
void setup(const WxCryptSet &wxc) override
Setup.
list apps
Definition: shock_tube.py:33
bc
Definition: advection2d_conservation.py:32
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