WARPXM v1.10.0
Loading...
Searching...
No Matches
maxwellian.h
Go to the documentation of this file.
1#ifndef wmapplication_kinetics1d1v_maxwellian_distribution_function_h
2#define wmapplication_kinetics1d1v_maxwellian_distribution_function_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace kinetics
14{
15
21{
22public:
28
34
39 void setup(const WxCryptSet& wxc) override;
40
46 const std::vector<int>& getOutputVariableIndexes(int flag) const override
47 {
48 return _distribution;
49 }
50
58 void evaluate_function(const real* q,
59 const real* aux,
60 const solverVariables_t* pSV,
61 real* result) const override;
62
63 void bc_q_kinetic(const real* q_in,
64 const real* aux_in,
65 const solverVariables_t* pFV,
66 real* q_out) const override;
67
68
69protected:
70 std::vector<int> _distribution; // output variable
71
73
75 std::vector<real> _velocity;
77
78private:
79 Maxwellian& operator=(const Maxwellian& var);
80 Maxwellian(const Maxwellian& var);
81};
82
83} // namespace kinetics
84} // namespace functions
85} // namespace apps
86} // namespace wxm
87
88#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
Initailize Maxwellian Distribution.
Definition: maxwellian.h:21
std::vector< real > _velocity
Definition: maxwellian.h:75
std::vector< int > _distribution
Definition: maxwellian.h:70
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: maxwellian.h:46
void setup(const WxCryptSet &wxc) override
Setup.
real _pressure
Definition: maxwellian.h:76
void bc_q_kinetic(const real *q_in, const real *aux_in, const solverVariables_t *pFV, real *q_out) const override
real _mass
Definition: maxwellian.h:72
real _density
Definition: maxwellian.h:74
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