WARPXM v1.10.0
Loading...
Searching...
No Matches
bloch_periodic_bc.h
Go to the documentation of this file.
1#ifndef WXM_APPS_BLOCH_PERIODIC_BC_H
2#define WXM_APPS_BLOCH_PERIODIC_BC_H
3
4// Wm includes
6
7namespace wxm
8{
9namespace apps
10{
11
16{
17public:
19
21
22 void setup(const WxCryptSet& wxc) override;
23
24 const std::vector<int>& getInputVariableIndexes(int flag) const override
25 {
26 return _input_variables;
27 }
28 const std::vector<int>& getOutputVariableIndexes(int flag) const override
29 {
30 return _out_variables;
31 }
32
33 void bc_q(const real* q_in,
34 const real* aux_in,
35 const real* aux_out,
36 const solverVariables_t* pFV,
37 real* q_out) const override;
38
39protected:
40 std::vector<int> _input_variables;
41 std::vector<int> _out_variables;
42
43private:
44 std::vector<double> _k;
45 std::vector<double> _a;
46 bloch_periodic_bc& operator=(const bloch_periodic_bc& var);
48};
49} // namespace apps
50} // namespace wxm
51
52#endif
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
Virtual Bloch-Floquet periodic boundary condition for an arbitrary variable.
Definition: bloch_periodic_bc.h:16
std::vector< int > _input_variables
Definition: bloch_periodic_bc.h:40
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: bloch_periodic_bc.h:28
std::vector< int > _out_variables
Definition: bloch_periodic_bc.h:41
void setup(const WxCryptSet &wxc) override
void bc_q(const real *q_in, const real *aux_in, const real *aux_out, const solverVariables_t *pFV, real *q_out) const override
Boundary Condition Application which sets the boundary condition on ghost nodes.
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: bloch_periodic_bc.h:24
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