WARPXM v1.10.0
Loading...
Searching...
No Matches
2d2v_kh_instability_fluid_maxwellian.h
Go to the documentation of this file.
1#ifndef kinetics2d2v_distribution_kelvin_helmholtz_instability_fluid_maxwellian_h
2#define kinetics2d2v_distribution_kelvin_helmholtz_instability_fluid_maxwellian_h
3
4// WARPXM includes
6
7// STL includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace functions
15{
16namespace kinetics
17{
18
32{
33public:
39
45
50 void setup(const WxCryptSet& wxc) override;
51
57 const std::vector<int>& getOutputVariableIndexes(int flag) const override
58 {
59 return _distribution;
60 }
61
69 void evaluate_function(const real* q,
70 const real* aux,
71 const solverVariables_t* pSV,
72 real* result) const override;
73
74 void bc_q_kinetic(const real* q_in,
75 const real* aux_in,
76 const solverVariables_t* pFV,
77 real* q_out) const override;
78
79protected:
80 // Variables
81 std::vector<int> _distribution; // output variable
84
85 // pointer to subapplications
86 std::unique_ptr<WmApplication> _fluid_ic_app;
87
88private:
93};
94
95} // namespace kinetics
96} // namespace functions
97} // namespace apps
98} // namespace wxm
99
100#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 Kelvin-Helmholtz Instability using the Maxwellians as the initial condition for the distribution...
Definition: 2d2v_kh_instability_fluid_maxwellian.h:32
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
real _gamma
Definition: 2d2v_kh_instability_fluid_maxwellian.h:82
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: 2d2v_kh_instability_fluid_maxwellian.h:57
real _mass
Definition: 2d2v_kh_instability_fluid_maxwellian.h:83
std::vector< int > _distribution
Definition: 2d2v_kh_instability_fluid_maxwellian.h:81
std::unique_ptr< WmApplication > _fluid_ic_app
Definition: 2d2v_kh_instability_fluid_maxwellian.h:86
void bc_q_kinetic(const real *q_in, const real *aux_in, const solverVariables_t *pFV, real *q_out) const 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