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 mhd
14{
15namespace limiters
16{
17
28{
29public:
34
39
44 void setup(const WxCryptSet& wxc) override;
45
51 const std::vector<int>& getInputVariableIndexes(int flag) const override
52 {
54 }
55
61 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
62 {
64 }
65
71 const std::vector<int>& getOutputVariableIndexes(int flag) const override
72 {
74 }
75
76 real source(const real* q,
77 const real* aux,
78 const elementGeometry_t* pEG,
79 real* source) const override;
80
81protected:
84
87
90
93
96
99
102
105
108
113
116
120 int _ir, _ith, _iz; // r, theta, and z indices
121
122 std::vector<int> _fluid_variable_indices;
124
125private:
127 operator=(const ArtificialDissipationCylSource& var) = delete;
129};
130
131} // namespace limiters
132} // namespace mhd
133} // namespace apps
134} // 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
Cylindrical source terms for the MHD artificial dissipation limiter.
Definition: artificial_dissipation_cyl_source.h:28
int _iz
Definition: artificial_dissipation_cyl_source.h:120
real _coeff_mom
Coefficient on artificial diffusivity for moment.
Definition: artificial_dissipation_cyl_source.h:101
int _ir
Index of radial component.
Definition: artificial_dissipation_cyl_source.h:120
real _coeff_heat
Coefficient on artificial diffusivity for heat flux.
Definition: artificial_dissipation_cyl_source.h:104
const std::vector< int > & getInputVariableIndexes(int flag) const override
Get input variable indices.
Definition: artificial_dissipation_cyl_source.h:51
real _diff_cap
Maximum diffusivity.
Definition: artificial_dissipation_cyl_source.h:107
std::vector< int > _fluid_gradient_variable_indices
Definition: artificial_dissipation_cyl_source.h:123
real _gas_gamma
Adiabatic Index.
Definition: artificial_dissipation_cyl_source.h:83
real _mass
Mass of species.
Definition: artificial_dissipation_cyl_source.h:86
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Get auxiliary variable indices.
Definition: artificial_dissipation_cyl_source.h:61
int _ith
Definition: artificial_dissipation_cyl_source.h:120
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
std::vector< int > _fluid_variable_indices
Definition: artificial_dissipation_cyl_source.h:122
real _min_pressure
Pressure floor.
Definition: artificial_dissipation_cyl_source.h:95
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Get output variable indices.
Definition: artificial_dissipation_cyl_source.h:71
void setup(const WxCryptSet &wxc) override
Setup.
real _dx_cut
Minimum value for dx_eff.
Definition: artificial_dissipation_cyl_source.h:115
real _min_density
Density floor.
Definition: artificial_dissipation_cyl_source.h:92
bool _use_v_anom
If True will convect momentum and energy consistent with an anomalous velocity associated with artifi...
Definition: artificial_dissipation_cyl_source.h:112
real _coeff_dens
Coefficient on artificial diffusivity for density.
Definition: artificial_dissipation_cyl_source.h:98
real _charge
Ion charge of species.
Definition: artificial_dissipation_cyl_source.h:89
list apps
Definition: shock_tube.py:33
warpy mhd
Definition: mhd_shock.py:32
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