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
6
7// STL includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace mhd_two_temperature
15{
16namespace limiters
17{
18
32{
33public:
38
43
48 void setup(const WxCryptSet& wxc) override;
49
55 const std::vector<int>& getInputVariableIndexes(int flag) const override
56 {
57 return q_indexes_;
58 }
59
65 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
66 {
67 return grad_q_indexes_;
68 }
69
75 const std::vector<int>& getOutputVariableIndexes(int flag) const override
76 {
77 return q_indexes_;
78 }
79
80 real source(const real* q,
81 const real* aux,
82 const elementGeometry_t* pEG,
83 real* source) const override;
84
85protected:
87 std::unique_ptr<wxm::apps::mhd_two_temperature::AppSetupHelper> setup_helper_;
88
91
94
97
100
103
106
109
112
115
118
123
127
131 int ir_, ith_, iz_;
132
133 std::vector<int> q_indexes_;
134 std::vector<int> grad_q_indexes_;
135
136private:
138 operator=(const ArtificialDissipationCylSource& var) = delete;
140};
141
142} // namespace limiters
143} // namespace mhd_two_temperature
144} // namespace apps
145} // 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 Two-Tempearture MHD artificial dissipation limiter.
Definition: artificial_dissipation_cyl_source.h:32
real Zi_
Ion charge of species.
Definition: artificial_dissipation_cyl_source.h:96
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Get output variable indices.
Definition: artificial_dissipation_cyl_source.h:75
const std::vector< int > & getInputVariableIndexes(int flag) const override
Get input variable indices.
Definition: artificial_dissipation_cyl_source.h:55
real diff_cap_
Maximum diffusivity.
Definition: artificial_dissipation_cyl_source.h:117
real coeff_dens_
Coefficient on artificial diffusivity for density.
Definition: artificial_dissipation_cyl_source.h:105
real coeff_ion_heat_
Coefficient on artificial diffusivity for heat flux.
Definition: artificial_dissipation_cyl_source.h:111
real coeff_mom_
Coefficient on artificial diffusivity for moment.
Definition: artificial_dissipation_cyl_source.h:108
int iz_
Definition: artificial_dissipation_cyl_source.h:131
int ith_
Definition: artificial_dissipation_cyl_source.h:131
real min_density_floor_
Density floor.
Definition: artificial_dissipation_cyl_source.h:99
real dx_cut_
Minimum value for dx_eff.
Definition: artificial_dissipation_cyl_source.h:126
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:122
std::vector< int > grad_q_indexes_
Definition: artificial_dissipation_cyl_source.h:134
std::vector< int > q_indexes_
Definition: artificial_dissipation_cyl_source.h:133
real Ai_
Mass of species.
Definition: artificial_dissipation_cyl_source.h:93
std::unique_ptr< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: artificial_dissipation_cyl_source.h:87
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
Get auxiliary variable indices.
Definition: artificial_dissipation_cyl_source.h:65
real min_pressure_floor_
Pressure floor.
Definition: artificial_dissipation_cyl_source.h:102
real gas_gamma_
Adiabatic Index.
Definition: artificial_dissipation_cyl_source.h:90
real coeff_electron_heat_
Coefficient on artificial diffusivity for heat flux.
Definition: artificial_dissipation_cyl_source.h:114
int ir_
Index of radial component.
Definition: artificial_dissipation_cyl_source.h:131
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