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// wxm includes
6
7// STL includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace five_moment
15{
16namespace limiters
17{
18
39{
40public:
42
44
45 void setup(const WxCryptSet& wxc) override;
46
47 const std::vector<int>& getInputVariableIndexes(int flag) const override
48 {
49 return _input_variables;
50 }
51 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
52 {
53 return _aux_variables;
54 }
55 const std::vector<int>& getOutputVariableIndexes(int flag) const override
56 {
57 return _input_variables;
58 }
59
60 real source(const real* q,
61 const real* aux,
62 const elementGeometry_t* pEG,
63 real* source) const override;
64
65protected:
67 std::unique_ptr<AppSetupHelper> _setup_helper;
68
78
80
81 int _ir, _ith, _iz; // r, theta, and z indices
82
84
85 std::vector<int> _input_variables;
86 std::vector<int> _aux_variables;
87
88private:
90 operator=(const ArtificialDissipationCylSource& var) = delete;
92};
93
94} // namespace limiters
95} // namespace five_moment
96} // namespace apps
97} // 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:39
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: artificial_dissipation_cyl_source.h:55
real _min_density
Minimum normalized mass density used in calculations.
Definition: artificial_dissipation_cyl_source.h:69
bool _use_v_anom
Definition: artificial_dissipation_cyl_source.h:83
real _gas_gamma
Adiabatic index.
Definition: artificial_dissipation_cyl_source.h:71
int _ith
Definition: artificial_dissipation_cyl_source.h:81
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:86
real _diff_cap
Definition: artificial_dissipation_cyl_source.h:77
std::vector< int > _input_variables
Definition: artificial_dissipation_cyl_source.h:85
real _coeff_dens
Definition: artificial_dissipation_cyl_source.h:74
real _min_pressure
Minimum normalized pressure used in calculations.
Definition: artificial_dissipation_cyl_source.h:70
real _dx_cut
Definition: artificial_dissipation_cyl_source.h:79
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: artificial_dissipation_cyl_source.h:51
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: artificial_dissipation_cyl_source.h:47
std::unique_ptr< AppSetupHelper > _setup_helper
Helper object that automates common setup routines.
Definition: artificial_dissipation_cyl_source.h:67
real _mass
Definition: artificial_dissipation_cyl_source.h:73
int _ir
Definition: artificial_dissipation_cyl_source.h:81
int _iz
Definition: artificial_dissipation_cyl_source.h:81
real _coeff_heat
Definition: artificial_dissipation_cyl_source.h:76
real _coeff_mom
Definition: artificial_dissipation_cyl_source.h:75
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