WARPXM v1.10.0
Loading...
Searching...
No Matches
intraspecies_collisions.h
Go to the documentation of this file.
1#ifndef WXM_APPS_5MOMENT_INTRASPECIESCOLLISIONS_H
2#define WXM_APPS_5MOMENT_INTRASPECIESCOLLISIONS_H
3
4// Wm includes
6
7// #include "5-moment_base.h"
8
9namespace wxm
10{
11namespace apps
12{
13namespace five_moment
14{
39{
40public:
42
44
45 void setup(const WxCryptSet& wxc) override;
46
47 const std::vector<int>& getInputVariableIndexes(int flag) const override
48 {
49 return _input_variables;
50 }
51 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
52 {
53 return _aux_variables;
54 }
55 const std::vector<int>& getOutputVariableIndexes(int flag) const override
56 {
57 return _output_variables;
58 }
59
60 // redefinition of fluxes from parent
62 const real* q_r,
63 const real* aux_l,
64 const real* aux_r,
65 const solverVariables_t* pFV,
66 real* numericalFlux) const override;
67
69 const real* aux,
70 const solverVariables_t* pSV,
71 std::vector<std::vector<real>>& internalFlux) const override;
72
73 // specific calls
75 const real* q_r,
76 const real* aux_l,
77 const real* aux_r,
78 const solverVariables_t* pFV,
79 real* numericalFlux) const;
80
82 const real* q_r,
83 const real* aux_l,
84 const real* aux_r,
85 const solverVariables_t* pFV,
86 real* numericalFlux) const;
87
88protected:
100 std::string _gradient_method;
106
110 int _ir;
111 int _ith;
112
113 std::vector<int> _input_variables;
114 std::vector<int> _aux_variables;
115 std::vector<int> _output_variables;
116
117private:
118 IntraspeciesCollisions& operator=(const IntraspeciesCollisions& var) = delete;
120};
121} // namespace five_moment
122} // namespace apps
123} // namespace wxm
124
125#endif // WXM_APPS_5MOMENT_INTRASPECIESCOLLISIONS_H
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
Implements Navier-Stokes style collisions.
Definition: intraspecies_collisions.h:39
real _collision_coefficient
Definition: intraspecies_collisions.h:94
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: intraspecies_collisions.h:55
void setup(const WxCryptSet &wxc) override
int _ith
Definition: intraspecies_collisions.h:111
real _mass
Definition: intraspecies_collisions.h:91
real _minimum_frequency
Definition: intraspecies_collisions.h:97
std::string _gradient_method
Definition: intraspecies_collisions.h:100
std::vector< int > _output_variables
Definition: intraspecies_collisions.h:115
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: intraspecies_collisions.h:47
std::vector< int > _input_variables
Definition: intraspecies_collisions.h:113
real _coulomb_log
Definition: intraspecies_collisions.h:93
bool _is_cyl
Definition: intraspecies_collisions.h:109
bool _is_const_k
Definition: intraspecies_collisions.h:103
real _min_pressure
Definition: intraspecies_collisions.h:99
real _diffusivity_max
Definition: intraspecies_collisions.h:96
real _charge
Definition: intraspecies_collisions.h:90
bool _is_const_mu
Definition: intraspecies_collisions.h:101
real numerical_flux_ldg(const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const
real _min_density
Definition: intraspecies_collisions.h:98
real _cfl_diff
Definition: intraspecies_collisions.h:105
int _ir
Definition: intraspecies_collisions.h:110
real numerical_flux_ip(const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const
real _diffusivity_min
Definition: intraspecies_collisions.h:95
real internal_flux(const real *q, const real *aux, const solverVariables_t *pSV, std::vector< std::vector< real > > &internalFlux) const override
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: intraspecies_collisions.h:51
real _gas_gamma
Definition: intraspecies_collisions.h:89
real _nuptau
Definition: intraspecies_collisions.h:92
real _const_mu
Definition: intraspecies_collisions.h:102
bool _is_neutral
Definition: intraspecies_collisions.h:107
real numerical_flux(const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const override
std::vector< int > _aux_variables
Definition: intraspecies_collisions.h:114
real _const_k
Definition: intraspecies_collisions.h:104
int _radial_index
Definition: intraspecies_collisions.h:108
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