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
6
7// std includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace mhd_two_temperature
15{
16namespace imhd
17{
40{
41public:
43 ~InjectionSource() override;
44 void setup(const WxCryptSet& wxc) override;
45
46 const std::vector<int>& getInputVariableIndexes(int flag) const override
47 {
48 return var_idcs_;
49 }
50 const std::vector<int>& getOutputVariableIndexes(int flag) const override
51 {
52 return var_idcs_;
53 }
54 real source(const real* q,
55 const real* aux,
56 const elementGeometry_t* pEG,
57 real* source) const override;
58
59protected:
61 std::unique_ptr<wxm::apps::mhd_two_temperature::AppSetupHelper> setup_helper_;
62
63 std::vector<int> var_idcs_;
64
76private:
77 InjectionSource& operator=(const InjectionSource& var);
79};
80} // namespace imhd
81} // namespace mhd_two_temperature
82} // namespace apps
83} // 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 Two-Temperature Ideal MHD.
Definition: injection_source.h:40
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
real gas_gamma_
Gamma.
Definition: injection_source.h:65
std::vector< int > var_idcs_
Definition: injection_source.h:63
real ndot_
ndot
Definition: injection_source.h:66
real Zi_
Ion charge.
Definition: injection_source.h:69
real wr_bump_
1/2-width of bump in r-direction
Definition: injection_source.h:74
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: injection_source.h:46
real z_bump_
center of bump in z-direction
Definition: injection_source.h:71
void setup(const WxCryptSet &wxc) override
real Ai_
Ion mass.
Definition: injection_source.h:68
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: injection_source.h:50
real wz_bump_
1/2-width of bump in z-direction
Definition: injection_source.h:72
std::unique_ptr< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: injection_source.h:61
real temperature_
Temperaure
Definition: injection_source.h:67
real r_bump_
center of bump in r-direction
Definition: injection_source.h:73
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