WARPXM v1.10.0
Loading...
Searching...
No Matches
minus_electric_field_dot_tangent.h
Go to the documentation of this file.
1#pragma once
2
3// General includes
5
6// STL includes
7#include <memory>
8
9namespace wxm
10{
11namespace apps
12{
13namespace mhd
14{
15namespace bc
16{
17
25{
26public:
28
30
31 void setup(const WxCryptSet& wxc) override;
32
33 const std::vector<int>& getInputVariableIndexes(int flag) const override
34 {
35 return _fluid_idcs;
36 }
37
38 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
39 {
41 }
42
43 const std::vector<int>& getOutputVariableIndexes(int flag) const override
44 {
46 }
47
48 // redefinition of bc
49 void bc_q(const real* q_in,
50 const real* aux_in,
51 const real* aux_out,
52 const solverVariables_t* pFV,
53 real* q_out) const override;
54
55protected:
56 std::vector<int> _fluid_idcs; // conserved variable vector to output to
57 std::vector<int> _gradient_fluid_idcs; // conserved variable vector to output to
58 std::vector<int>
59 _electric_field_dot_tangent_idcs; // conserved variable vector to output to
60
61 // direction multiplier
64
65 // pointer to subapplication
66 std::unique_ptr<WmApplication> _ef_app;
67
68private:
71};
72
73} // namespace bc
74} // namespace mhd
75} // namespace apps
76} // 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 E dot t Used for calculating potential, phi = -\int_a^b(E dot t)dl.
Definition: minus_electric_field_dot_tangent.h:25
std::vector< int > _electric_field_dot_tangent_idcs
Definition: minus_electric_field_dot_tangent.h:59
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: minus_electric_field_dot_tangent.h:33
void setup(const WxCryptSet &wxc) override
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: minus_electric_field_dot_tangent.h:43
real _direction_multiplier
Definition: minus_electric_field_dot_tangent.h:63
bool _flip_direction_multiplier
Definition: minus_electric_field_dot_tangent.h:62
std::vector< int > _gradient_fluid_idcs
Definition: minus_electric_field_dot_tangent.h:57
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.
std::unique_ptr< WmApplication > _ef_app
Definition: minus_electric_field_dot_tangent.h:66
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: minus_electric_field_dot_tangent.h:38
std::vector< int > _fluid_idcs
Definition: minus_electric_field_dot_tangent.h:56
list apps
Definition: shock_tube.py:33
warpy mhd
Definition: mhd_shock.py:32
bc
Definition: advection2d_conservation.py:32
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