WARPXM v1.10.0
Loading...
Searching...
No Matches
cyl_source.h
Go to the documentation of this file.
1#ifndef WMAPPLICATION_MAXWELL_CYL_SOURCE_H
2#define WMAPPLICATION_MAXWELL_CYL_SOURCE_H
3
4// Wm includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace maxwell
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:
68 int _ir, _ith, _iz; // r, theta, and z indices
70
71 std::vector<int> _variables;
72 std::vector<int> _aux_variables;
73
74private:
75 CylSource& operator=(const CylSource& var) = delete;
76 CylSource(const CylSource& var) = delete;
77};
78} // namespace maxwell
79} // namespace apps
80} // namespace wxm
81
82#endif // WMAPPLICATION_MAXWELL_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 Maxwell equations arising from a cylindrical geometry.
Definition: cyl_source.h:34
std::vector< int > _variables
Definition: cyl_source.h:71
real _omega_p_tau
Definition: cyl_source.h:63
real _skin_depth_norm
Definition: cyl_source.h:64
int _ith
Definition: cyl_source.h:68
real _rel_permittivity
Definition: cyl_source.h:66
bool _rmin_eq_0
Definition: cyl_source.h:69
real _factor
Definition: cyl_source.h:65
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: cyl_source.h:47
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: cyl_source.h:42
int _ir
Definition: cyl_source.h:68
void setup(const WxCryptSet &wxc) override
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: cyl_source.h:52
std::vector< int > _aux_variables
Definition: cyl_source.h:72
int _iz
Definition: cyl_source.h:68
int _radial_index
Definition: cyl_source.h:67
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
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