WARPXM v1.10.0
Loading...
Searching...
No Matches
intraspecies_cyl_source.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
5
6// STL includes
7#include <memory>
8
9namespace wxm
10{
11namespace apps
12{
13namespace viscousmhd
14{
26{
27public:
29
30 ~IntraspeciesCyl() override;
31
32 void setup(const WxCryptSet& wxc) override;
33
34 const std::vector<int>& getInputVariableIndexes(int flag) const override
35 {
36 return _input_variables;
37 }
38 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
39 {
40 return _aux_variables;
41 }
42 const std::vector<int>& getOutputVariableIndexes(int flag) const override
43 {
44 return _output_variables;
45 }
46
47 real source(const real* q,
48 const real* aux,
49 const elementGeometry_t* pEG,
50 real* source) const override;
51
52protected:
53
56
59
62
65
68
70
73
77
81
86
92 int _ir, _ith, _iz; // r, theta, and z indices
93
94 std::vector<int> _input_variables;
95 std::vector<int> _aux_variables;
96 std::vector<int> _output_variables;
97
98private:
99 IntraspeciesCyl& operator=(const IntraspeciesCyl& var) = delete;
100 IntraspeciesCyl(const IntraspeciesCyl& var) = delete;
101};
102
103} // namespace viscousmhd
104} // namespace apps
105} // 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_source.h:26
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: intraspecies_cyl_source.h:34
std::vector< int > _input_variables
Definition: intraspecies_cyl_source.h:94
real _nuptau
Normalized collision frequency, needed if using Chodura resistivity.
Definition: intraspecies_cyl_source.h:64
int _ir
Definition: intraspecies_cyl_source.h:92
real _const_k
Constant thermal conductivity coefficient (if absent, physical value is computed)
Definition: intraspecies_cyl_source.h:79
real _const_mu
Constant viscosity coefficient (if absent, physical value is computed)
Definition: intraspecies_cyl_source.h:75
int _radial_index
Index of radial component (optional; defaults to 0).
Definition: intraspecies_cyl_source.h:91
real _gas_gamma
Adiabatic Index.
Definition: intraspecies_cyl_source.h:55
real _coulomb_log
Coulomb log (defaults to 10).
Definition: intraspecies_cyl_source.h:67
void setup(const WxCryptSet &wxc) override
real _minimum_frequency
Minimum collision frequency (defaults to 0).
Definition: intraspecies_cyl_source.h:72
real _mass
Mass of species.
Definition: intraspecies_cyl_source.h:61
real _min_density
Density floor.
Definition: intraspecies_cyl_source.h:83
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: intraspecies_cyl_source.h:38
bool _ifconst_mu
Definition: intraspecies_cyl_source.h:76
real _collision_coefficient
Definition: intraspecies_cyl_source.h:69
std::vector< int > _output_variables
Definition: intraspecies_cyl_source.h:96
int _ith
Definition: intraspecies_cyl_source.h:92
real _charge
Ion charge of species.
Definition: intraspecies_cyl_source.h:58
real _min_pressure
Pressure floor.
Definition: intraspecies_cyl_source.h:85
std::vector< int > _aux_variables
Definition: intraspecies_cyl_source.h:95
int _iz
Definition: intraspecies_cyl_source.h:92
bool _ifconst_k
Definition: intraspecies_cyl_source.h:80
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: intraspecies_cyl_source.h:42
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