WARPXM v1.10.0
Loading...
Searching...
No Matches
two_stream.h
Go to the documentation of this file.
1#ifndef TWO_STREAM_APP_H
2#define TWO_STREAM_APP_H
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace five_moment
14{
15
21{
22public:
28
33 ~two_stream() override;
34
39 void setup(const WxCryptSet& wxc) override;
40
46 const std::vector<int>& getOutputVariableIndexes(int flag) const override
47 {
48 return _output_fluid;
49 }
50
58 void evaluate_function(const real* q,
59 const real* aux,
60 const solverVariables_t* pSV,
61 real* result) const override;
62
63protected:
64 std::vector<int> _output_fluid;
65
67 real _A; // mass ratio
68 real _vs; // streaming velocity
69 // p for pertubation
70 real _pa; // n for density, amplitude of perturbation
71 real _pk; // k for wavenumber
72 real _press; // pressure
73
74private:
75 two_stream& operator=(const two_stream& var);
76 two_stream(const two_stream& var);
77};
78
79} // namespace five_moment
80} // namespace functions
81} // namespace apps
82} // namespace wxm
83
84#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
Class to set IC for 1D counter-streaming electrons and ions.
Definition: two_stream.h:21
real _pa
Definition: two_stream.h:70
void setup(const WxCryptSet &wxc) override
Setup.
real _A
Definition: two_stream.h:67
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
real _press
Definition: two_stream.h:72
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: two_stream.h:46
real _gamma
Definition: two_stream.h:66
real _pk
Definition: two_stream.h:71
real _vs
Definition: two_stream.h:68
std::vector< int > _output_fluid
Definition: two_stream.h:64
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