WARPXM v1.10.0
Loading...
Searching...
No Matches
kh_instability.h
Go to the documentation of this file.
1#ifndef wmapplication_kh_instability_h
2#define wmapplication_kh_instability_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace five_moment
14{
15
23{
24public:
30
35 ~KH_Instability() override;
36
41 void setup(const WxCryptSet& wxc) override;
42
48 const std::vector<int>& getOutputVariableIndexes(int flag) const override
49 {
50 return _output_fluid;
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
71protected:
72 std::vector<int> _output_fluid;
73
85 std::vector<real> _perturbation_center;
89
90private:
91 KH_Instability& operator=(const KH_Instability& var);
93};
94} // namespace five_moment
95} // namespace functions
96} // namespace apps
97} // namespace wxm
98
99#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
Initialization and boundary conditions for electromagnetic Rayleigh-Taylor and Kelvin-Helmholtz insta...
Definition: kh_instability.h:23
real _perturbation_amplitude
Definition: kh_instability.h:87
real _pressure_top
Definition: kh_instability.h:81
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.
real _pressure_bottom
Definition: kh_instability.h:82
real _drift_velocity
Definition: kh_instability.h:84
real _n_top
Definition: kh_instability.h:78
void setup(const WxCryptSet &wxc) override
Setup.
real _perturbation_wavelength
Definition: kh_instability.h:86
real _mass
Definition: kh_instability.h:75
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
real _gamma
Definition: kh_instability.h:74
real _charge
Definition: kh_instability.h:76
real _n_bottom
Definition: kh_instability.h:77
std::vector< real > _perturbation_center
Definition: kh_instability.h:85
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: kh_instability.h:48
real _shear_velocity
Definition: kh_instability.h:83
real _perturbation_transition_width
Definition: kh_instability.h:88
std::vector< int > _output_fluid
Definition: kh_instability.h:72
real _temperature_bottom
Definition: kh_instability.h:80
real _temperature_top
Definition: kh_instability.h:79
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