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
5
6// STL includes
7#include <memory>
8
9namespace wxm
10{
11namespace apps
12{
13namespace imhd
14{
38{
39public:
41
43
44 void setup(const WxCryptSet& wxc) override;
45
46 const std::vector<int>& getInputVariableIndexes(int flag) const override
47 {
48 return _input_variables;
49 }
50
51 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
52 {
53 return _aux_variables;
54 }
55
56 const std::vector<int>& getOutputVariableIndexes(int flag) const override
57 {
58 return _input_variables;
59 }
60
61 real source(const real* q,
62 const real* aux,
63 const elementGeometry_t* pEG,
64 real* source) const override;
65
66protected:
71 int _ir, _ith, _iz; // r, theta, and z indices
73
74 std::vector<int> _input_variables;
75 std::vector<int> _aux_variables;
76
77private:
78 CylSource& operator=(const CylSource& var) = delete;
79 CylSource(const CylSource& var) = delete;
80};
81
82} // namespace imhd
83} // namespace apps
84} // 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 Ideal MHD equations arising from a cylindrical geometry.
Definition: cyl_source.h:38
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: cyl_source.h:56
real _min_pressure
Definition: cyl_source.h:69
void setup(const WxCryptSet &wxc) override
std::vector< int > _aux_variables
Definition: cyl_source.h:75
real _min_density
Definition: cyl_source.h:68
int _radial_index
Definition: cyl_source.h:70
int _ith
Definition: cyl_source.h:71
int _iz
Definition: cyl_source.h:71
bool _rmin_eq_0
Definition: cyl_source.h:72
std::vector< int > _input_variables
Definition: cyl_source.h:74
real _gas_gamma
Definition: cyl_source.h:67
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: cyl_source.h:46
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
int _ir
Definition: cyl_source.h:71
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: cyl_source.h:51
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