WARPXM v1.10.0
Loading...
Searching...
No Matches
pulse.h
Go to the documentation of this file.
1#ifndef wmapplication_mhd_pulse_h
2#define wmapplication_mhd_pulse_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace mhd
14{
15
31{
32public:
38
43 ~PlasmaPulse() override;
44
49 void setup(const WxCryptSet& wxc) override;
50
56 const std::vector<int>& getOutputVariableIndexes(int flag) const override
57 {
58 return _output_fluid;
59 }
60
68 void evaluate_function(const real* q,
69 const real* aux,
70 const solverVariables_t* pSV,
71 real* result) const override;
72
73protected:
74 std::vector<int> _output_fluid;
75
80 std::vector<real> center;
81
82private:
83 PlasmaPulse& operator=(const PlasmaPulse& var);
84 PlasmaPulse(const PlasmaPulse& var);
85};
86} // namespace mhd
87} // namespace functions
88} // namespace apps
89} // namespace wxm
90
91#endif
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
Initializes a simple plasma pulse.
Definition: pulse.h:31
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
real P_in
Definition: pulse.h:76
real rho_out
Definition: pulse.h:76
real radius
Definition: pulse.h:78
real rho_in
Definition: pulse.h:76
real gamma
Definition: pulse.h:77
void setup(const WxCryptSet &wxc) override
Setup.
std::vector< real > center
Definition: pulse.h:80
std::vector< int > _output_fluid
Definition: pulse.h:74
real P_out
Definition: pulse.h:76
real transition_width
Definition: pulse.h:79
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: pulse.h:56
list apps
Definition: shock_tube.py:33
warpy mhd
Definition: mhd_shock.py:32
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