WARPXM v1.10.0
Loading...
Searching...
No Matches
timed_source.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5// Wm includes
7
8namespace wxm
9{
10namespace apps
11{
12namespace imhd
13{
38{
39public:
41 ~TimedSource() override;
42 void setup(const WxCryptSet& wxc) override;
43
44 const std::vector<int>& getInputVariableIndexes(int flag) const override
45 {
46 return _var_idcs;
47 }
48 const std::vector<int>& getOutputVariableIndexes(int flag) const override
49 {
50 return _var_idcs;
51 }
52 real source(const real* q,
53 const real* aux,
54 const elementGeometry_t* pEG,
55 real* source) const override;
56
57protected:
58 std::vector<int> _var_idcs;
59
67 std::unique_ptr<WmApplication>
79private:
80 TimedSource& operator=(const TimedSource& var);
81 TimedSource(const TimedSource& var);
82};
83} // namespace imhd
84} // namespace apps
85} // 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
This plasma source allows for plasma between times t_start and t_end using the same bump function sty...
Definition: timed_source.h:38
real _r_bump
center of bump in r-direction
Definition: timed_source.h:75
real _wz_bump
1/2-width of bump in z-direction
Definition: timed_source.h:74
real _Zi
Ion charge.
Definition: timed_source.h:64
real _v_source
velocity of the source term
Definition: timed_source.h:77
real _ndot
Definition: timed_source.h:61
real _Ai
Definition: timed_source.h:63
real _z_bump
center of bump in z-direction
Definition: timed_source.h:73
real _gas_gamma
Definition: timed_source.h:60
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: timed_source.h:48
std::unique_ptr< WmApplication > _variable_ndot_profile_app
subapplication pointer defining variable ndot profile
Definition: timed_source.h:68
real _wr_bump
1/2-width of bump in r-direction
Definition: timed_source.h:76
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
std::vector< int > _var_idcs
Definition: timed_source.h:58
real _t_end
end time of heaviside source term
Definition: timed_source.h:72
bool _variable_ndot
variable ndot boolean
Definition: timed_source.h:66
real _temperature
Definition: timed_source.h:62
real _t_start
start time of heaviside source term
Definition: timed_source.h:71
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: timed_source.h:44
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