WARPXM v1.10.0
Loading...
Searching...
No Matches
2d2v_landau_damping.h
Go to the documentation of this file.
1#ifndef kinetics2d2v_landau_damping_h
2#define kinetics2d2v_landau_damping_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace kinetics
14{
15
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 indexes
70 real _mass; // A
72 real _n0; // n0
73 std::vector<real> _perturbation; // [alpha_x, alpha_y]
74 std::vector<real> _wave_number; // [k_x, k_y]
75 std::vector<real> _velocity; // [vx, vy, vz]
76
77private:
78 LandauDamping2d2v& operator=(const LandauDamping2d2v& var);
80};
81
82} // namespace kinetics
83} // namespace functions
84} // namespace apps
85} // namespace wxm
86
87#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
2D2V Landau Damping Initial Condition This is a Maxwellian distribution of f in velocity space multip...
Definition: 2d2v_landau_damping.h:26
real _n0
Definition: 2d2v_landau_damping.h:72
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
std::vector< real > _perturbation
Definition: 2d2v_landau_damping.h:73
void setup(const WxCryptSet &wxc) override
Setup.
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: 2d2v_landau_damping.h:51
std::vector< real > _velocity
Definition: 2d2v_landau_damping.h:75
std::vector< int > _distribution
Definition: 2d2v_landau_damping.h:69
std::vector< real > _wave_number
Definition: 2d2v_landau_damping.h:74
real _thermal_velocity
Definition: 2d2v_landau_damping.h:71
real _mass
Definition: 2d2v_landau_damping.h:70
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