WARPXM v1.10.0
Loading...
Searching...
No Matches
axis_bc.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
5
6namespace wxm
7{
8namespace apps
9{
10namespace mhd
11{
12namespace bc
13{
14class AxisBC : public WmApplication
15{
16public:
18
19 ~AxisBC() override;
20
21 void setup(const WxCryptSet& wxc) override;
22
23 const std::vector<int>& getInputVariableIndexes(int flag) const override
24 {
25 return _mhd_fluid;
26 }
27
28 const std::vector<int>& getOutputVariableIndexes(int flag) const override
29 {
30 return _mhd_fluid;
31 }
32
33 // redefinition of bc
34 void bc_q(const real* q_in,
35 const real* aux_in,
36 const real* aux_out,
37 const solverVariables_t* pFV,
38 real* q_out) const override;
39
40protected:
41 // r, theta, and z indices
42 int _ir, _ith, _iz;
43
44 std::vector<int> _mhd_fluid;
45
46private:
47 AxisBC& operator=(AxisBC& var);
48 AxisBC(const AxisBC& var);
49};
50} // namespace bc
51} // namespace mhd
52} // namespace apps
53} // 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
Definition: axis_bc.h:15
void setup(const WxCryptSet &wxc) override
std::vector< int > _mhd_fluid
Definition: axis_bc.h:44
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: axis_bc.h:28
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.
int _ir
Definition: axis_bc.h:42
int _iz
Definition: axis_bc.h:42
int _ith
Definition: axis_bc.h:42
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: axis_bc.h:23
list apps
Definition: shock_tube.py:33
warpy mhd
Definition: mhd_shock.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