WARPXM v1.10.0
Loading...
Searching...
No Matches
twofluid_to_imhd.h
Go to the documentation of this file.
1#ifndef WXM_APPS_TWOFLUID_TO_IMHD_H
2#define WXM_APPS_TWOFLUID_TO_IMHD_H
3
4// Wm includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace imhd
12{
23{
24public:
26
28
29 void setup(const WxCryptSet& wxc) override;
30
31 const std::vector<int>& getInputVariableIndexes(int flag) const override
32 {
33 return input_variables_;
34 }
35 const std::vector<int>& getOutputVariableIndexes(int flag) const override
36 {
37 return out_variables_;
38 }
39
40 void bc_q(const real* q_in,
41 const real* aux_in,
42 const real* aux_out,
43 const solverVariables_t* pFV,
44 real* q_out) const override;
45
46 void evaluate_function(const real* q_in,
47 const real* aux,
48 const solverVariables_t* pFV,
49 real* q_out) const override;
50
51protected:
52 std::vector<int> input_variables_;
53 std::vector<int> out_variables_;
54
55private:
56 // mass ratios of two species
57 real Aa, Ab;
58 // charges of two species
59 real Za, Zb;
60 // Za/Zb*Tb/Ta
61 real ztheta_ba;
62
63 twofluid_to_imhd& operator=(const twofluid_to_imhd& var);
65};
66} // namespace imhd
67} // namespace apps
68} // namespace wxm
69
70#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
Boundary condition for converting two-fluid variables to ideal MHD variables.
Definition: twofluid_to_imhd.h:23
std::vector< int > input_variables_
Definition: twofluid_to_imhd.h:52
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: twofluid_to_imhd.h:35
void setup(const WxCryptSet &wxc) override
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: twofluid_to_imhd.h:31
void evaluate_function(const real *q_in, const real *aux, const solverVariables_t *pFV, real *q_out) const override
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::vector< int > out_variables_
Definition: twofluid_to_imhd.h:53
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