WARPXM v1.10.0
Loading...
Searching...
No Matches
wmapplication_langmuir_energy_source.h
Go to the documentation of this file.
1#ifndef WMAPPLICATION_LANGMUIR_ENERGY_SOURCE_H
2#define WMAPPLICATION_LANGMUIR_ENERGY_SOURCE_H
3
4// general includes
6
8{
9public:
11
13
14 void setup(const WxCryptSet& wxc) override;
15
16 const std::vector<int>& getInputVariableIndexes(int flag) const override
17 {
18 return _inputVariables;
19 }
20 const std::vector<int>& getOutputVariableIndexes(int flag) const override
21 {
22 return _outputVariables;
23 }
24 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
25 {
26 return _auxVariables;
27 }
28
29 // redefinition from parent
30 real source(const real* q,
31 const real* aux,
32 const elementGeometry_t* pEG,
33 real* source) const override;
34
35 // Growth rate interpolation function
36 real interpolateGrowthRates(const std::vector<real>& kScaled, const std::vector<real>& growthRates, real this_k) const;
37 // Linear damping function
38 real linearDamping(const real kx, const real ky, const real kz) const;
39
40protected:
43
44 std::vector<real> _k_prime;
45 std::vector<real> _growthRates;
46
47 std::vector<int> _inputVariables;
48 std::vector<int> _outputVariables;
49 std::vector<int> _auxVariables;
50
51private:
54};
55
56#endif // WMAPPLICATION_LANGMUIR_ENERGY_SOURCE_H
Definition: wmapplication_langmuir_energy_source.h:8
std::vector< int > _outputVariables
Definition: wmapplication_langmuir_energy_source.h:48
real _ometau
Definition: wmapplication_langmuir_energy_source.h:42
real _tau
Definition: wmapplication_langmuir_energy_source.h:41
real linearDamping(const real kx, const real ky, const real kz) const
std::vector< int > _inputVariables
Definition: wmapplication_langmuir_energy_source.h:47
std::vector< int > _auxVariables
Definition: wmapplication_langmuir_energy_source.h:49
std::vector< real > _growthRates
Definition: wmapplication_langmuir_energy_source.h:45
std::vector< real > _k_prime
Definition: wmapplication_langmuir_energy_source.h:44
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: wmapplication_langmuir_energy_source.h:16
void setup(const WxCryptSet &wxc) override
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: wmapplication_langmuir_energy_source.h:20
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: wmapplication_langmuir_energy_source.h:24
real interpolateGrowthRates(const std::vector< real > &kScaled, const std::vector< real > &growthRates, real this_k) const
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
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
Definition: wmapplication.h:38
#define real
Definition: wmoclunstructuredreconstruction.h:11