WARPXM v1.10.0
Loading...
Searching...
No Matches
cyl_source.h
Go to the documentation of this file.
1#pragma once
2
5
6// std includes
7#include <memory>
8
9namespace wxm
10{
11namespace apps
12{
13namespace mhd_two_temperature
14{
15namespace hallmhd
16{
17
30{
31public:
33
35
36 void setup(const WxCryptSet& wxc) override;
37
38 const std::vector<int>& getInputVariableIndexes(int flag) const override
39 {
40 return q_indexes_;
41 }
42
43 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
44 {
45 return grad_q_indexes_;
46 }
47
48 const std::vector<int>& getOutputVariableIndexes(int flag) const override
49 {
50 return q_indexes_;
51 }
52
53 real source(const real* q,
54 const real* aux,
55 const elementGeometry_t* pEG,
56 real* source) const override;
57
58protected:
60 std::unique_ptr<wxm::apps::mhd_two_temperature::AppSetupHelper> setup_helper_;
61
68
72
76
80
83 int ir_, ith_, iz_;
84
85 std::vector<int> q_indexes_;
86 std::vector<int> grad_q_indexes_;
87
88private:
89 CylSource& operator=(const CylSource& var) = delete;
90 CylSource(const CylSource& var) = delete;
91};
92} // namespace hallmhd
93} // namespace mhd_two_temperature
94} // namespace apps
95} // 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 Two Temperature MHD Hall Terms arising from a cylindrical geometry...
Definition: cyl_source.h:30
std::vector< int > q_indexes_
Definition: cyl_source.h:85
int ir_
r, theta, and z indices
Definition: cyl_source.h:83
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: cyl_source.h:38
real min_density_floor_
Definition: cyl_source.h:62
real jxb_factor_
< Weight of JxB term, default 1.
Definition: cyl_source.h:75
real skin_depth_norm_
Definition: cyl_source.h:67
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: cyl_source.h:43
void setup(const WxCryptSet &wxc) override
std::vector< int > grad_q_indexes_
Definition: cyl_source.h:86
real grad_pe_factor_
< Weight of grad pe term, default 1.
Definition: cyl_source.h:79
std::unique_ptr< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: cyl_source.h:60
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
real gas_gamma_
Definition: cyl_source.h:66
int radial_index_
Definition: cyl_source.h:81
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: cyl_source.h:48
real drift_pe_factor_
< Weight of drift pressure energy term, default 1.
Definition: cyl_source.h:71
real min_pressure_floor_
Definition: cyl_source.h:63
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