WARPXM v1.10.0
Loading...
Searching...
No Matches
bdependent_diffusivity_cyl_source.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
5
6namespace wxm
7{
8namespace apps
9{
10namespace viscousmhd
11{
25{
26public:
28
30
31 void setup(const WxCryptSet& wxc) override;
32
33 const std::vector<int>& getInputVariableIndexes(int flag) const override
34 {
35 return _input_variables;
36 }
37 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
38 {
39 return _aux_variables;
40 }
41 const std::vector<int>& getOutputVariableIndexes(int flag) const override
42 {
43 return _output_variables;
44 }
45
46 real source(const real* q,
47 const real* aux,
48 const elementGeometry_t* pEG,
49 real* source) const override;
50
51protected:
54
57
60
63
66
69
72
75
78
81
87 int _ir, _ith, _iz; // r, theta, and z indices
88
89 std::vector<int> _input_variables;
90 std::vector<int> _aux_variables;
91 std::vector<int> _output_variables;
92
93private:
95 operator=(const BdependentDiffusivityCylSource& var) = delete;
97};
98
99} // namespace viscousmhd
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 cylindrical source terms for B-dependent diffusivity for MHD.
Definition: bdependent_diffusivity_cyl_source.h:25
real _n_min
Minimum density for B-dependent diffusivities.
Definition: bdependent_diffusivity_cyl_source.h:65
std::vector< int > _aux_variables
Definition: bdependent_diffusivity_cyl_source.h:90
real _min_pressure
Pressure floor.
Definition: bdependent_diffusivity_cyl_source.h:80
real _charge
Charge of species.
Definition: bdependent_diffusivity_cyl_source.h:56
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: bdependent_diffusivity_cyl_source.h:33
real _D_min
Minimum diffusivity for B-dependent diffusivities.
Definition: bdependent_diffusivity_cyl_source.h:68
std::vector< int > _input_variables
Definition: bdependent_diffusivity_cyl_source.h:89
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: bdependent_diffusivity_cyl_source.h:37
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
real _B_ref
Reference magnetic field for B-dependent diffusivities.
Definition: bdependent_diffusivity_cyl_source.h:62
void setup(const WxCryptSet &wxc) override
int _ir
Definition: bdependent_diffusivity_cyl_source.h:87
real _D_therm0
Thermal diffusivity coefficient for B=0.
Definition: bdependent_diffusivity_cyl_source.h:74
std::vector< int > _output_variables
Definition: bdependent_diffusivity_cyl_source.h:91
int _iz
Definition: bdependent_diffusivity_cyl_source.h:87
real _gas_gamma
Adiabatic Index.
Definition: bdependent_diffusivity_cyl_source.h:53
real _D_mom0
Momentum diffusivity coefficient for B=0.
Definition: bdependent_diffusivity_cyl_source.h:71
int _radial_index
Index of radial component (optional; defaults to 0).
Definition: bdependent_diffusivity_cyl_source.h:86
real _mass
Mass of species.
Definition: bdependent_diffusivity_cyl_source.h:59
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: bdependent_diffusivity_cyl_source.h:41
real _min_density
Density floor.
Definition: bdependent_diffusivity_cyl_source.h:77
int _ith
Definition: bdependent_diffusivity_cyl_source.h:87
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