WARPXM v1.10.0
Loading...
Searching...
No Matches
ohms_law_cyl_source.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace wxm
6{
7namespace apps
8{
9namespace hallmhd
10{
11namespace hyperresistivity
12{
13
62{
63public:
68
73
78 void setup(const WxCryptSet& wxc) override;
79
85 const std::vector<int>& getInputVariableIndexes(int flag) const override
86 {
88 }
89
95 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
96 {
97 return _aux_variable_idcs;
98 }
99
105 const std::vector<int>& getOutputVariableIndexes(int flag) const override
106 {
108 }
109
118 real source(const real* q,
119 const real* aux,
120 const elementGeometry_t* pEG,
121 real* source) const override;
122
123protected:
125
127 int _ir, _ith, _iz; // r, theta, and z indices
128
129 std::vector<int> _input_variable_idcs;
130 std::vector<int> _aux_variable_idcs;
131 std::vector<int> _output_variable_idcs;
132
133private:
134 OhmsLawCylSource& operator=(const OhmsLawCylSource& var) = delete;
135 OhmsLawCylSource(const OhmsLawCylSource& var) = delete;
136};
137} // namespace hyperresistivity
138} // namespace hallmhd
139} // namespace apps
140} // 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
The OhmsLawCylSource class calculates the Cylindrical Source term for the hyperresistive term of Ohm'...
Definition: ohms_law_cyl_source.h:62
int _ir
Definition: ohms_law_cyl_source.h:127
const std::vector< int > & getInputVariableIndexes(int flag) const override
Get input variable indices.
Definition: ohms_law_cyl_source.h:85
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Get auxiliary variable indices.
Definition: ohms_law_cyl_source.h:95
std::vector< int > _output_variable_idcs
Definition: ohms_law_cyl_source.h:131
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Get output variable indices.
Definition: ohms_law_cyl_source.h:105
real _hyperresistive_nu
Definition: ohms_law_cyl_source.h:124
std::vector< int > _aux_variable_idcs
Definition: ohms_law_cyl_source.h:130
int _ith
Definition: ohms_law_cyl_source.h:127
std::vector< int > _input_variable_idcs
Definition: ohms_law_cyl_source.h:129
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
Source definition.
int _radial_index
Definition: ohms_law_cyl_source.h:126
void setup(const WxCryptSet &wxc) override
Setup.
int _iz
Definition: ohms_law_cyl_source.h:127
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