WARPXM v1.10.0
Loading...
Searching...
No Matches
field_source.h
Go to the documentation of this file.
1#ifndef WMAPPLICATION_5MOMENT_FIELDSOURCE_H
2#define WMAPPLICATION_5MOMENT_FIELDSOURCE_H
3
4// Wm includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace five_moment
12{
13
15{
16public:
18
19 ~field_source_t() override;
20
21 void setup(const WxCryptSet& wxc) override;
22
23 const std::vector<int>& getInputVariableIndexes(int flag) const override
24 {
25 return _input_variables;
26 }
27
28 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
29 {
30 return _aux_variables;
31 }
32
33 const std::vector<int>& getOutputVariableIndexes(int flag) const override
34 {
35 return _input_variables;
36 }
37
38 real source(const real* q,
39 const real* aux,
40 const elementGeometry_t* pEG,
41 real* source) const override;
42
43protected:
48
49 std::vector<int> _input_variables;
50 std::vector<int> _aux_variables;
51
52private:
53 field_source_t& operator=(const field_source_t& var);
55};
56} // namespace five_moment
57} // namespace apps
58} // namespace wxm
59
60#endif // WMAPPLICATION_5MOMENT_FIELDSOURCE_H
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
Definition: field_source.h:15
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: field_source.h:33
real _factor
Definition: field_source.h:47
real _skin_depth_norm
Definition: field_source.h:44
real _charge
Definition: field_source.h:45
void setup(const WxCryptSet &wxc) override
real _mass
Definition: field_source.h:46
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: field_source.h:28
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
std::vector< int > _aux_variables
Definition: field_source.h:50
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: field_source.h:23
std::vector< int > _input_variables
Definition: field_source.h:49
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