WARPXM v1.10.0
Loading...
Searching...
No Matches
injection_source.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
5
6namespace wxm
7{
8namespace apps
9{
10namespace imhd
11{
28{
29public:
31 ~InjectionSource() override;
32 void setup(const WxCryptSet& wxc) override;
33
34 const std::vector<int>& getInputVariableIndexes(int flag) const override
35 {
36 return _var_idcs;
37 }
38 const std::vector<int>& getOutputVariableIndexes(int flag) const override
39 {
40 return _var_idcs;
41 }
42 real source(const real* q,
43 const real* aux,
44 const elementGeometry_t* pEG,
45 real* source) const override;
46
47protected:
48 std::vector<int> _var_idcs;
49
56 real _z_bump; // center of bump in z-direction
57 real _wz_bump; // 1/2-width of bump in z-direction
58 real _r_bump; // center of bump in r-direction
59 real _wr_bump; // 1/2-width of bump in r-direction
60
61private:
62 InjectionSource& operator=(const InjectionSource& var);
64};
65} // namespace imhd
66} // namespace apps
67} // 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
Plasma source injection source for ideal MHD.
Definition: injection_source.h:28
real _temperature
Definition: injection_source.h:52
real _wz_bump
Definition: injection_source.h:57
real _wr_bump
Definition: injection_source.h:59
std::vector< int > _var_idcs
Definition: injection_source.h:48
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: injection_source.h:34
real _Zi
Ion charge.
Definition: injection_source.h:54
real _z_bump
Definition: injection_source.h:56
real _ndot
Definition: injection_source.h:51
real _r_bump
Definition: injection_source.h:58
real _Ai
Definition: injection_source.h:53
real _gas_gamma
Definition: injection_source.h:50
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: injection_source.h:38
void setup(const WxCryptSet &wxc) 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