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{
27{
28public:
30 ~InjectionSource() override;
31 void setup(const WxCryptSet& wxc) override;
32
33 const std::vector<int>& getInputVariableIndexes(int flag) const override
34 {
35 return _var_idcs;
36 }
37 const std::vector<int>& getOutputVariableIndexes(int flag) const override
38 {
39 return _var_idcs;
40 }
41 real source(const real* q,
42 const real* aux,
43 const elementGeometry_t* pEG,
44 real* source) const override;
45
46protected:
47 std::vector<int> _var_idcs;
48
53
54 real _z_bump; // center of bump in z-direction
55 real _wz_bump; // 1/2-width of bump in z-direction
56 real _r_bump; // center of bump in r-direction
57 real _wr_bump; // 1/2-width of bump in r-direction
58
59private:
60 InjectionSource& operator=(const InjectionSource& var);
62};
63} // namespace imhd
64} // namespace apps
65} // 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:27
real _temperature
Definition: injection_source.h:51
real _wz_bump
Definition: injection_source.h:55
real _wr_bump
Definition: injection_source.h:57
std::vector< int > _var_idcs
Definition: injection_source.h:47
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: injection_source.h:33
real _z_bump
Definition: injection_source.h:54
real _ndot
Definition: injection_source.h:50
real _r_bump
Definition: injection_source.h:56
real _Ai
Definition: injection_source.h:52
real _gas_gamma
Definition: injection_source.h:49
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:37
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