WARPXM v1.10.0
Loading...
Searching...
No Matches
maxwellian_distance_metric.h
Go to the documentation of this file.
1#ifndef vlasovmaxwell_maxwellian_distance_metric_h
2#define vlasovmaxwell_maxwellian_distance_metric_h
3
4// Wm includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace vlasovmaxwell
12{
13
23{
24public:
30
36
41 void setup(const WxCryptSet& wxc) override;
42
48 const std::vector<int>& getInputVariableIndexes(int flag) const override
49 {
50 return _input_var_indices;
51 }
52
58 const std::vector<int>& getOutputVariableIndexes(int flag) const override
59 {
61 }
62
68 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
69 {
70 return _aux_var_indices;
71 }
72
73 // redefinition of fluxes from parent
74 void evaluate_function(const real* q,
75 const real* aux,
76 const solverVariables_t* pSV,
77 real* result) const override;
78
79protected:
81
82 std::vector<int> _input_var_indices;
83 std::vector<int> _output_var_indices;
84 std::vector<int> _aux_var_indices;
85
86private:
89};
90
91} // namespace vlasovmaxwell
92} // namespace apps
93} // namespace wxm
94
95#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
Computes the Maxwellian Distance Metric chi = int(abs(f - fM))dv / n.
Definition: maxwellian_distance_metric.h:23
std::vector< int > _output_var_indices
Definition: maxwellian_distance_metric.h:83
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: maxwellian_distance_metric.h:48
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: maxwellian_distance_metric.h:58
std::vector< int > _aux_var_indices
Definition: maxwellian_distance_metric.h:84
std::vector< int > _input_var_indices
Definition: maxwellian_distance_metric.h:82
real _mass
Definition: maxwellian_distance_metric.h:80
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Grab auxiliary variable indices.
Definition: maxwellian_distance_metric.h:68
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
void setup(const WxCryptSet &wxc) override
Setup.
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