WARPXM v1.10.0
Loading...
Searching...
No Matches
artificial_dissipation_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 five_moment
14{
15namespace limiters
16{
17
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 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
51 {
52 return _aux_variables;
53 }
54 const std::vector<int>& getOutputVariableIndexes(int flag) const override
55 {
56 return _input_variables;
57 }
58
59 real source(const real* q,
60 const real* aux,
61 const elementGeometry_t* pEG,
62 real* source) const override;
63
64protected:
71
73
74 int _ir, _ith, _iz; // r, theta, and z indices
75
77
78 std::vector<int> _input_variables;
79 std::vector<int> _aux_variables;
80
81 // pointer to subapplications and boolean
82 std::unique_ptr<WmApplication> _floor_app;
84
85private:
87 operator=(const ArtificialDissipationCylSource& var) = delete;
89};
90
91} // namespace limiters
92} // namespace five_moment
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 for artificial dissipation limiter arising from a cylindrical geometry.
Definition: artificial_dissipation_cyl_source.h:38
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: artificial_dissipation_cyl_source.h:54
bool _use_v_anom
Definition: artificial_dissipation_cyl_source.h:76
real _gas_gamma
Definition: artificial_dissipation_cyl_source.h:66
int _ith
Definition: artificial_dissipation_cyl_source.h:74
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
std::vector< int > _aux_variables
Definition: artificial_dissipation_cyl_source.h:79
real _diff_cap
Definition: artificial_dissipation_cyl_source.h:70
std::vector< int > _input_variables
Definition: artificial_dissipation_cyl_source.h:78
real _coeff_dens
Definition: artificial_dissipation_cyl_source.h:67
real _dx_cut
Definition: artificial_dissipation_cyl_source.h:72
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: artificial_dissipation_cyl_source.h:50
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: artificial_dissipation_cyl_source.h:46
std::unique_ptr< WmApplication > _floor_app
Definition: artificial_dissipation_cyl_source.h:82
bool _has_floor_app
Definition: artificial_dissipation_cyl_source.h:83
real _mass
Definition: artificial_dissipation_cyl_source.h:65
int _ir
Definition: artificial_dissipation_cyl_source.h:74
int _iz
Definition: artificial_dissipation_cyl_source.h:74
real _coeff_heat
Definition: artificial_dissipation_cyl_source.h:69
real _coeff_mom
Definition: artificial_dissipation_cyl_source.h:68
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