WARPXM v1.10.0
Loading...
Searching...
No Matches
cyl_source.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
6
7// STL includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace mhd_two_temperature
15{
16namespace resistive_mhd
17{
47{
48public:
50
52
53 void setup(const WxCryptSet& wxc) override;
54
55 const std::vector<int>& getInputVariableIndexes(int flag) const override
56 {
57 return q_indexes_;
58 }
59
60 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
61 {
62 return grad_q_indexes_;
63 }
64
65 const std::vector<int>& getOutputVariableIndexes(int flag) const override
66 {
67 return q_indexes_;
68 }
69
70 real source(const real* q,
71 const real* aux,
72 const elementGeometry_t* pEG,
73 real* source) const override;
74
75protected:
77 std::unique_ptr<wxm::apps::mhd_two_temperature::AppSetupHelper> setup_helper_;
78
88 int ir_, ith_, iz_;
89
96 std::string resistivity_type_;
97
100
101 std::vector<int> q_indexes_;
102 std::vector<int> grad_q_indexes_;
103
104private:
105 CylSource& operator=(const CylSource& var) = delete;
106 CylSource(const CylSource& var) = delete;
107};
108} // namespace resistive_mhd
109} // namespace mhd_two_temperature
110} // namespace apps
111} // 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 in the resistive diffusion terms that are added to Two-Temperature Ideal ...
Definition: cyl_source.h:47
void setup(const WxCryptSet &wxc) override
std::vector< int > grad_q_indexes_
Definition: cyl_source.h:102
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
int ir_
r, theta, and z indices
Definition: cyl_source.h:88
std::unique_ptr< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: cyl_source.h:77
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: cyl_source.h:65
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: cyl_source.h:55
std::string resistivity_type_
Definition: cyl_source.h:96
real constant_resistivity_eta_
Definition: cyl_source.h:90
std::vector< int > q_indexes_
Definition: cyl_source.h:101
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: cyl_source.h:60
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