WARPXM v1.10.0
Loading...
Searching...
No Matches
set_floors_ions_electrons.h
Go to the documentation of this file.
1#pragma once
2
3// WARPXM includes
5
6namespace wxm
7{
8namespace apps
9{
10namespace functions
11{
12namespace five_moment
13{
14
22{
23public:
29
35
40 void setup(const WxCryptSet& wxc) override;
41
47 const std::vector<int>& getInputVariableIndexes(int flag) const override
48 {
49 return _fluids;
50 }
51
57 const std::vector<int>& getOutputVariableIndexes(int flag) const override
58 {
59 return _fluids;
60 }
61
69 void evaluate_function(const real* q,
70 const real* aux,
71 const solverVariables_t* pSV,
72 real* result) const override;
73
74protected:
75 std::vector<int> _fluids;
76
78 real _n_min; // number density floor
79 real _p_min; // pressure floor
80 real _Ai; // ion mass
81 real _Ae; // electron mass
82
83private:
84 SetFloorsIonsElectrons& operator=(const SetFloorsIonsElectrons& var) = delete;
86};
87
88} // namespace five_moment
89} // namespace functions
90} // namespace apps
91} // namespace wxm
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 Density and Pressure floors for ions and electrons for two-fluid case.
Definition: set_floors_ions_electrons.h:22
real _p_min
Definition: set_floors_ions_electrons.h:79
void setup(const WxCryptSet &wxc) override
Setup.
real _gas_gamma
Definition: set_floors_ions_electrons.h:77
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: set_floors_ions_electrons.h:57
real _Ae
Definition: set_floors_ions_electrons.h:81
std::vector< int > _fluids
Definition: set_floors_ions_electrons.h:75
real _Ai
Definition: set_floors_ions_electrons.h:80
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
real _n_min
Definition: set_floors_ions_electrons.h:78
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: set_floors_ions_electrons.h:47
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