WARPXM v1.10.0
Loading...
Searching...
No Matches
general_maxwellian_two_stream.h
Go to the documentation of this file.
1#ifndef wmapplication_function_kinetics_general_maxwellian_two_stream_h
2#define wmapplication_function_kinetics_general_maxwellian_two_stream_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace kinetics
14{
26{
27public:
33
39
44 void setup(const WxCryptSet& wxc) override;
45
51 const std::vector<int>& getOutputVariableIndexes(int flag) const override
52 {
53 return _distribution;
54 }
55
63 void evaluate_function(const real* q,
64 const real* aux,
65 const solverVariables_t* pSV,
66 real* result) const override;
67
68protected:
69 std::vector<int> _distribution; // output variable
70
71 // real _thermal_velocity; // v_th
72 // real _density0; // n0
73 // real _perturbation; // A
74 // real _wave_number; // k
75 // real _velocity_separation; // v'
76
77
79
82 std::vector<real> _velocity1;
83 std::vector<real> _velocity2;
86
87private:
90};
91
92} // namespace kinetics
93} // namespace functions
94} // namespace apps
95} // namespace wxm
96
97#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
General Maxwellian Two-Stream Instability Initial Condition We initialize 2 counterstreaming Maxwelli...
Definition: general_maxwellian_two_stream.h:26
real _pressure2
Definition: general_maxwellian_two_stream.h:85
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
void setup(const WxCryptSet &wxc) override
Setup.
std::vector< real > _velocity1
Definition: general_maxwellian_two_stream.h:82
std::vector< int > _distribution
Definition: general_maxwellian_two_stream.h:69
std::vector< real > _velocity2
Definition: general_maxwellian_two_stream.h:83
real _n2
Definition: general_maxwellian_two_stream.h:81
real _pressure1
Definition: general_maxwellian_two_stream.h:84
real _mass
Definition: general_maxwellian_two_stream.h:78
real _n1
Definition: general_maxwellian_two_stream.h:80
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: general_maxwellian_two_stream.h:51
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