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 imhd
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:
50 int _atom;
62
63 std::vector<int> _input_variables;
64 std::vector<int> _aux_variables;
65
66 // pointer to subapplications and boolean
67 std::unique_ptr<WmApplication> _floor_app;
69
70private:
71 reaction_source_t& operator=(const reaction_source_t& var);
73};
74} // namespace imhd
75} // namespace apps
76} // 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 _ni_floor
Definition: reaction_source.h:60
real _phi_ion
Definition: reaction_source.h:57
real _Ai
Definition: reaction_source.h:51
real _Zi
Definition: reaction_source.h:59
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
real _eps0
Definition: reaction_source.h:56
std::vector< int > _aux_variables
Definition: reaction_source.h:64
int _atom
Definition: reaction_source.h:50
std::unique_ptr< WmApplication > _floor_app
Definition: reaction_source.h:67
std::vector< int > _input_variables
Definition: reaction_source.h:63
real _phi_eff
Definition: reaction_source.h:58
void setup(const WxCryptSet &wxc) override
real _L
Definition: reaction_source.h:55
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: reaction_source.h:39
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: reaction_source.h:34
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: reaction_source.h:29
bool _has_floor_app
Definition: reaction_source.h:68
real _dt_lambda
Definition: reaction_source.h:61
real _ompt
Definition: reaction_source.h:53
real _Aa
Definition: reaction_source.h:52
real _omct
Definition: reaction_source.h:54
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