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