WARPXM v1.10.0
Loading...
Searching...
No Matches
reaction_source.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
5
6// STL includes
7#include <memory>
8
9namespace wxm
10{
11namespace apps
12{
13namespace five_moment
14{
15
21{
22public:
24
26
27 void setup(const WxCryptSet& wxc) override;
28
29 const std::vector<int>& getInputVariableIndexes(int flag) const override
30 {
31 return _input_variables;
32 }
33
34 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
35 {
36 return _aux_variables;
37 }
38
39 const std::vector<int>& getOutputVariableIndexes(int flag) const override
40 {
41 return _input_variables;
42 }
43
44 real source(const real* q,
45 const real* aux,
46 const elementGeometry_t* pEG,
47 real* source) const override;
48
49protected:
51 int _atom;
63
64 std::vector<int> _input_variables;
65 std::vector<int> _aux_variables;
66
67 // pointer to subapplications and boolean
68 std::unique_ptr<WmApplication> _floor_app;
70
71private:
72 reaction_source_t& operator=(const reaction_source_t& var);
74};
75} // namespace five_moment
76} // namespace apps
77} // 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
Implements source terms for atomic reactions.
Definition: reaction_source.h:21
real _phi_ion
Definition: reaction_source.h:59
std::vector< int > _aux_variables
Definition: reaction_source.h:65
void setup(const WxCryptSet &wxc) override
real _Ae
Definition: reaction_source.h:52
int _species
Definition: reaction_source.h:50
real _Ai
Definition: reaction_source.h:53
real _ni_floor
Definition: reaction_source.h:61
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
real _eps0
Definition: reaction_source.h:58
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: reaction_source.h:29
real _omct
Definition: reaction_source.h:56
bool _has_floor_app
Definition: reaction_source.h:69
real _dt_lambda
Definition: reaction_source.h:62
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: reaction_source.h:34
real _ompt
Definition: reaction_source.h:55
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: reaction_source.h:39
int _atom
Definition: reaction_source.h:51
real _L
Definition: reaction_source.h:57
real _Aa
Definition: reaction_source.h:54
std::unique_ptr< WmApplication > _floor_app
Definition: reaction_source.h:68
std::vector< int > _input_variables
Definition: reaction_source.h:64
real _phi_eff
Definition: reaction_source.h:60
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