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