WARPXM v1.10.0
Loading...
Searching...
No Matches
intraspecies_cyl.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
5#include "app_setup_helper.h"
6
7// STL includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace five_moment
15{
40{
41public:
43
44 ~IntraspeciesCyl() override;
45
46 void setup(const WxCryptSet& wxc) override;
47
48 const std::vector<int>& getInputVariableIndexes(int flag) const override
49 {
50 return _input_variables;
51 }
52 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
53 {
54 return _aux_variables;
55 }
56 const std::vector<int>& getOutputVariableIndexes(int flag) const override
57 {
58 return _input_variables;
59 }
60
61 real source(const real* q,
62 const real* aux,
63 const elementGeometry_t* pEG,
64 real* source) const override;
65
66protected:
68 std::unique_ptr<AppSetupHelper> _setup_helper;
69
85
88 int _ir;
89 int _ith;
90 int _iz;
91
92 std::vector<int> _input_variables;
93 std::vector<int> _aux_variables;
94
95private:
96 IntraspeciesCyl& operator=(const IntraspeciesCyl& var) = delete;
97 IntraspeciesCyl(const IntraspeciesCyl& var) = delete;
98};
99} // namespace five_moment
100} // namespace apps
101} // 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
Implements the source terms for intraspecies collisions arising from a cylindrical geometry.
Definition: intraspecies_cyl.h:40
real _minimum_frequency
Definition: intraspecies_cyl.h:80
void setup(const WxCryptSet &wxc) override
real _charge
Definition: intraspecies_cyl.h:73
real _coulomb_log
Definition: intraspecies_cyl.h:76
std::vector< int > _input_variables
Definition: intraspecies_cyl.h:92
bool _ifconst_k
Definition: intraspecies_cyl.h:83
int _ir
Definition: intraspecies_cyl.h:88
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: intraspecies_cyl.h:52
real _nuptau
Definition: intraspecies_cyl.h:75
std::unique_ptr< AppSetupHelper > _setup_helper
Helper object that automates common setup routines.
Definition: intraspecies_cyl.h:68
std::vector< int > _aux_variables
Definition: intraspecies_cyl.h:93
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: intraspecies_cyl.h:48
bool _is_neutral
Definition: intraspecies_cyl.h:86
int _iz
Definition: intraspecies_cyl.h:90
real _gas_gamma
Adiabatic index.
Definition: intraspecies_cyl.h:72
real _mass
Definition: intraspecies_cyl.h:74
real _min_pressure
Minimum normalized pressure used in calculations.
Definition: intraspecies_cyl.h:71
real _diffusivity_max
Definition: intraspecies_cyl.h:79
int _radial_index
Definition: intraspecies_cyl.h:87
real _collision_coefficient
Definition: intraspecies_cyl.h:77
real _const_k
Definition: intraspecies_cyl.h:84
real _const_mu
Definition: intraspecies_cyl.h:82
real _diffusivity_min
Definition: intraspecies_cyl.h:78
int _ith
Definition: intraspecies_cyl.h:89
bool _ifconst_mu
Definition: intraspecies_cyl.h:81
real _min_density
Minimum normalized mass density used in calculations.
Definition: intraspecies_cyl.h:70
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: intraspecies_cyl.h:56
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const 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