WARPXM v1.10.0
Loading...
Searching...
No Matches
cyl_source.h
Go to the documentation of this file.
1#ifndef WMAPPLICATION_PHMAXWELL_CYL_SOURCE_H
2#define WMAPPLICATION_PHMAXWELL_CYL_SOURCE_H
3
4// Wm includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace phmaxwell
12{
34{
35public:
37
38 ~CylSource() override;
39
40 void setup(const WxCryptSet& wxc) override;
41
42 const std::vector<int>& getInputVariableIndexes(int flag) const override
43 {
44 return _variables;
45 }
46
47 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
48 {
49 return _aux_variables;
50 }
51
52 const std::vector<int>& getOutputVariableIndexes(int flag) const override
53 {
54 return _variables;
55 }
56
57 real source(const real* q,
58 const real* aux,
59 const elementGeometry_t* pEG,
60 real* source) const override;
61
62protected:
67 int _ir, _ith, _iz; // r, theta, and z indices
69
72
73 std::vector<int> _variables;
74 std::vector<int> _aux_variables;
75
76private:
77 CylSource& operator=(const CylSource& var) = delete;
78 CylSource(const CylSource& var) = delete;
79};
80} // namespace phmaxwell
81} // namespace apps
82} // namespace wxm
83
84#endif // WMAPPLICATION_PHMAXWELL_CYL_SOURCE_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
Implements the source terms in phMaxwell equations arising from a cylindrical geometry.
Definition: cyl_source.h:34
real _chi
Definition: cyl_source.h:70
int _ith
Definition: cyl_source.h:67
int _ir
Definition: cyl_source.h:67
real _gamma
Definition: cyl_source.h:71
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: cyl_source.h:52
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: cyl_source.h:47
int _radial_index
Definition: cyl_source.h:66
bool _rmin_eq_0
Definition: cyl_source.h:68
std::vector< int > _variables
Definition: cyl_source.h:73
std::vector< int > _aux_variables
Definition: cyl_source.h:74
real _factor
Definition: cyl_source.h:65
real _omega_p_tau
Definition: cyl_source.h:63
void setup(const WxCryptSet &wxc) override
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: cyl_source.h:42
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
int _iz
Definition: cyl_source.h:67
real _skin_depth_norm
Definition: cyl_source.h:64
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