WARPXM v1.10.0
Loading...
Searching...
No Matches
uniform_maxwell.h
Go to the documentation of this file.
1#ifndef wmapplication_function_maxwell_uniform_field_h
2#define wmapplication_function_maxwell_uniform_field_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace maxwell
14{
15
23{
24public:
30
35 ~UniformMaxwell() override;
36
41 void setup(const WxCryptSet& wxc) override;
42
48 const std::vector<int>& getOutputVariableIndexes(int flag) const override
49 {
50 return _output_fields;
51 }
52
60 void evaluate_function(const real* q,
61 const real* aux,
62 const solverVariables_t* pSV,
63 real* result) const override;
64
65 void bc_q(const real* q_in,
66 const real* aux_in,
67 const real* aux_out,
68 const solverVariables_t* pFV,
69 real* q_out) const override;
70
71
72protected:
73 std::vector<int> _output_fields;
74
75 std::vector<real> _field_values;
76
77private:
78 UniformMaxwell& operator=(const UniformMaxwell& var);
80};
81} // namespace maxwell
82} // namespace functions
83} // namespace apps
84} // namespace wxm
85
86#endif
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
Input uniform field values.
Definition: uniform_maxwell.h:23
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
std::vector< real > _field_values
Definition: uniform_maxwell.h:75
void bc_q(const real *q_in, const real *aux_in, const real *aux_out, const solverVariables_t *pFV, real *q_out) const override
Boundary Condition Application which sets the boundary condition on ghost nodes.
void setup(const WxCryptSet &wxc) override
Setup.
std::vector< int > _output_fields
Definition: uniform_maxwell.h:73
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: uniform_maxwell.h:48
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