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
7
8// STL includes
9#include <memory>
10
11namespace wxm
12{
13namespace apps
14{
15namespace mhd_two_temperature
16{
17namespace viscousmhd
18{
31{
32public:
34
35 ~IntraspeciesCyl() override;
36
37 void setup(const WxCryptSet& wxc) override;
38
39 const std::vector<int>& getInputVariableIndexes(int flag) const override
40 {
41 return q_indexes_;
42 }
43 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
44 {
45 return grad_q_indexes_;
46 }
47 const std::vector<int>& getOutputVariableIndexes(int flag) const override
48 {
49 return q_indexes_;
50 }
51
52 real source(const real* q,
53 const real* aux,
54 const elementGeometry_t* pEG,
55 real* source) const override;
56
57protected:
59 std::unique_ptr<wxm::apps::mhd_two_temperature::AppSetupHelper> setup_helper_;
60
63
66
69
72
77
82
89 int ir_, ith_, iz_;
90
91 std::vector<int> q_indexes_;
92 std::vector<int> grad_q_indexes_;
93
94private:
95 IntraspeciesCyl& operator=(const IntraspeciesCyl& var) = delete;
96 IntraspeciesCyl(const IntraspeciesCyl& var) = delete;
97};
98
99} // namespace viscousmhd
100} // namespace mhd_two_temperature
101} // namespace apps
102} // 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
For the Cartesian flux application IntraspeciesCllisionsTerms.
Definition: intraspecies_cyl_source.h:31
real min_density_floor_
Density floor.
Definition: intraspecies_cyl_source.h:79
int radial_index_
Index of radial component (optional; defaults to 0).
Definition: intraspecies_cyl_source.h:87
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: intraspecies_cyl_source.h:39
std::vector< int > grad_q_indexes_
Definition: intraspecies_cyl_source.h:92
real min_pressure_floor_
Pressure floor.
Definition: intraspecies_cyl_source.h:81
int iz_
Definition: intraspecies_cyl_source.h:89
int ir_
r, theta, and z indices
Definition: intraspecies_cyl_source.h:89
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
real const_ion_k_
Constant thermal conductivity coefficient (if absent, physical value is computed)
Definition: intraspecies_cyl_source.h:75
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: intraspecies_cyl_source.h:43
real const_electron_k_
Definition: intraspecies_cyl_source.h:76
real Ai_
Mass of species.
Definition: intraspecies_cyl_source.h:68
real Zi_
Ion charge of species.
Definition: intraspecies_cyl_source.h:65
real const_ion_mu_
Constant viscosity coefficient (if absent, physical value is computed)
Definition: intraspecies_cyl_source.h:71
real gas_gamma_
Adiabatic Index.
Definition: intraspecies_cyl_source.h:62
int ith_
Definition: intraspecies_cyl_source.h:89
std::vector< int > q_indexes_
Definition: intraspecies_cyl_source.h:91
std::unique_ptr< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: intraspecies_cyl_source.h:59
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: intraspecies_cyl_source.h:47
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