WARPXM v1.10.0
Loading...
Searching...
No Matches
initial_constant.h
Go to the documentation of this file.
1#ifndef wmapplication_kineticsinitialconstant_h
2#define wmapplication_kineticsinitialconstant_h
3
4// WARPXM includes
5
7
8namespace wxm
9{
10namespace apps
11{
12namespace functions
13{
14namespace kinetics
15{
16
22{
23public:
29
35
40 void setup(const WxCryptSet& wxc) override;
41
47 const std::vector<int>& getOutputVariableIndexes(int flag) const override
48 {
49 return _distribution;
50 }
51
52
60 void evaluate_function(const real* q,
61 const real* aux,
62 const solverVariables_t* pSV,
63 real* result) const override;
64
65protected:
66 std::vector<int> _distribution; // output variable
67
68 real _constant; // the initial constant ... duh !
69private:
72};
73
74} // namespace kinetics
75} // namespace functions
76} // namespace apps
77} // namespace wxm
78
79#endif // wmapplication_kineticsinitialconstant_h
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
An initial constant initial condition for the wave energy distribution IC.
Definition: initial_constant.h:22
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: initial_constant.h:47
void setup(const WxCryptSet &wxc) override
Setup.
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
real _constant
Definition: initial_constant.h:68
std::vector< int > _distribution
Definition: initial_constant.h:66
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