WARPXM v1.10.0
Loading...
Searching...
No Matches
cyl_source.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
6
7// std includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace hallmhd
15{
179{
180public:
182
184
185 void setup(const WxCryptSet& wxc) override;
186
187 const std::vector<int>& getInputVariableIndexes(int flag) const override
188 {
190 }
191
192 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
193 {
195 }
196
197 const std::vector<int>& getOutputVariableIndexes(int flag) const override
198 {
200 }
201
202 real source(const real* q,
203 const real* aux,
204 const elementGeometry_t* pEG,
205 real* source) const override;
206
207protected:
208 std::unique_ptr<mhd::AppSetupHelper>
218 int _ir;
219 int _ith;
220 int _iz;
224
225 std::vector<int> _input_variable_indices;
226 std::vector<int> _aux_variable_indices;
227
235private:
236 CylSource& operator=(const CylSource& var) = delete;
237 CylSource(const CylSource& var) = delete;
238};
239} // namespace hallmhd
240} // namespace apps
241} // 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 Hall terms that are added to Ideal MHD to produce the Hall MHD equ...
Definition: cyl_source.h:179
real _Zi
Definition: cyl_source.h:213
int _radial_index
Definition: cyl_source.h:217
int _iz
z index
Definition: cyl_source.h:220
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: cyl_source.h:197
std::vector< int > _aux_variable_indices
Definition: cyl_source.h:226
real _min_density_floor
Definition: cyl_source.h:222
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: cyl_source.h:192
real _drift_pe_factor
Definition: cyl_source.h:228
real _Ae
Definition: cyl_source.h:215
int _ith
theta index
Definition: cyl_source.h:219
real _jxb_factor
< Weight of drift pressure energy term, default 1.
Definition: cyl_source.h:230
std::vector< int > _input_variable_indices
Definition: cyl_source.h:225
real _grad_pe_factor
< Weight of JxB term, default 1.
Definition: cyl_source.h:232
void setup(const WxCryptSet &wxc) override
std::unique_ptr< mhd::AppSetupHelper > _setup_helper
Helper object that automates common setup routines.
Definition: cyl_source.h:209
real _gas_gamma
Definition: cyl_source.h:210
int _ir
r index
Definition: cyl_source.h:218
real _Ai
Definition: cyl_source.h:212
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
real _skin_depth_norm
Definition: cyl_source.h:211
real _min_pressure_floor
Definition: cyl_source.h:223
real _theta
Definition: cyl_source.h:216
real _Ze
Definition: cyl_source.h:214
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: cyl_source.h:187
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