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 imhd
17{
42{
43public:
45
47
48 void setup(const WxCryptSet& wxc) override;
49
50 const std::vector<int>& getInputVariableIndexes(int flag) const override
51 {
52 return q_indexes_;
53 }
54
55 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
56 {
57 return grad_q_indexes_;
58 }
59
60 const std::vector<int>& getOutputVariableIndexes(int flag) const override
61 {
62 return q_indexes_;
63 }
64
65 real source(const real* q,
66 const real* aux,
67 const elementGeometry_t* pEG,
68 real* source) const override;
69
70protected:
72 std::unique_ptr<wxm::apps::mhd_two_temperature::AppSetupHelper> setup_helper_;
73
77
80 int ir_, ith_, iz_;
82
83 std::vector<int> q_indexes_;
84 std::vector<int> grad_q_indexes_;
85
86private:
87 CylSource& operator=(const CylSource& var) = delete;
88 CylSource(const CylSource& var) = delete;
89};
90
91} // namespace imhd
92} // namespace mhd_two_temperature
93} // namespace apps
94} // 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 Two Temperature Ideal MHD equations arising from a cylindrical geo...
Definition: cyl_source.h:42
real gas_gamma_
Definition: cyl_source.h:74
std::unique_ptr< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: cyl_source.h:72
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: cyl_source.h:60
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: cyl_source.h:55
real min_pressure_floor_
Definition: cyl_source.h:76
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: cyl_source.h:50
real min_density_floor_
Definition: cyl_source.h:75
void setup(const WxCryptSet &wxc) override
int radial_index_
Definition: cyl_source.h:78
int ir_
r, theta, and z indices
Definition: cyl_source.h:80
bool rmin_eq_0_
Definition: cyl_source.h:81
std::vector< int > grad_q_indexes_
Definition: cyl_source.h:84
std::vector< int > q_indexes_
Definition: cyl_source.h:83
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