WARPXM v1.10.0
Loading...
Searching...
No Matches
electric_field.h
Go to the documentation of this file.
1#pragma once
2
4
6
7// std includes
8#include <memory>
9#include <vector>
10
11namespace wxm
12{
13namespace apps
14{
15namespace mhd_two_temperature
16{
17namespace imhd
18{
19
32{
33public:
35
36 ~ElectricField() override;
37
38 void setup(const WxCryptSet& wxc) override;
39
40 const std::vector<int>& getInputVariableIndexes(int flag) const override
41 {
42 return mhd_fluid_indices_;
43 }
44
45 const std::vector<int>& getOutputVariableIndexes(int flag) const override
46 {
48 }
49
59 void evaluate_function(const real* q,
60 const real* aux,
61 const solverVariables_t* pSV,
62 real* result) const override;
63
64protected:
66 std::unique_ptr<wxm::apps::mhd_two_temperature::AppSetupHelper> setup_helper_;
67
69
70 std::vector<int> mhd_fluid_indices_;
71 std::vector<int> electric_field_indices_;
72
73private:
74 ElectricField& operator=(const ElectricField& var);
75 ElectricField(const ElectricField& var);
76};
77} // namespace imhd
78} // namespace mhd_two_temperature
79} // namespace apps
80} // 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
Class that calculates the electric field from Ohm's Law using ideal terms E = -u x B.
Definition: electric_field.h:32
real min_density_floor_
Definition: electric_field.h:68
std::vector< int > electric_field_indices_
Definition: electric_field.h:71
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: electric_field.h:40
std::unique_ptr< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: electric_field.h:66
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: electric_field.h:45
std::vector< int > mhd_fluid_indices_
Definition: electric_field.h:70
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of fluxes from parent.
void setup(const WxCryptSet &wxc) override
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