WARPXM v1.10.0
Loading...
Searching...
No Matches
2d2v_counter_streaming_beams.h
Go to the documentation of this file.
1#ifndef kinetics2d2v_counterstreaming_beams_h
2#define kinetics2d2v_counterstreaming_beams_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace kinetics
14{
16{
17public:
23
29
34 void setup(const WxCryptSet& wxc) override;
35
41 const std::vector<int>& getOutputVariableIndexes(int flag) const override
42 {
43 return _distribution;
44 }
45
53 void evaluate_function(const real* q,
54 const real* aux,
55 const solverVariables_t* pSV,
56 real* result) const override;
57
58protected:
59 std::vector<int> _distribution; // output variable indexes
60
64 std::vector<real> _velocity1;
65 std::vector<real> _velocity2;
68
69 std::vector<real> _perturbation; // [alpha_x, alpha_y]
70 std::vector<real> _wave_number; // [k_x, k_y]
71
72private:
75};
76
77} // namespace kinetics
78} // namespace functions
79} // namespace apps
80} // namespace wxm
81
82#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
Definition: 2d2v_counter_streaming_beams.h:16
real _mass
Definition: 2d2v_counter_streaming_beams.h:61
real _pressure2
Definition: 2d2v_counter_streaming_beams.h:67
std::vector< real > _velocity1
Definition: 2d2v_counter_streaming_beams.h:64
std::vector< real > _velocity2
Definition: 2d2v_counter_streaming_beams.h:65
std::vector< real > _perturbation
Definition: 2d2v_counter_streaming_beams.h:69
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: 2d2v_counter_streaming_beams.h:41
std::vector< real > _wave_number
Definition: 2d2v_counter_streaming_beams.h:70
real _n1
Definition: 2d2v_counter_streaming_beams.h:62
real _pressure1
Definition: 2d2v_counter_streaming_beams.h:66
std::vector< int > _distribution
Definition: 2d2v_counter_streaming_beams.h:59
real _n2
Definition: 2d2v_counter_streaming_beams.h:63
void setup(const WxCryptSet &wxc) override
Setup.
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
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