WARPXM v1.10.0
Loading...
Searching...
No Matches
advection.h
Go to the documentation of this file.
1#ifndef WXM_APPS_ADVECTION_ANALYTIC_SOLUTION_H
2#define WXM_APPS_ADVECTION_ANALYTIC_SOLUTION_H
3
4// General includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace analytic_solutions
12{
13
21{
22public:
24 ~Advection() override;
25
26 void setup(const WxCryptSet& wxc) override;
27
28 const std::vector<int>& getOutputVariableIndexes(int flag) const override
29 {
30 return output_variables_;
31 }
32
33 void evaluate_function(const real* q,
34 const real* aux,
35 const solverVariables_t* pSV,
36 real* result) const override;
37
38protected:
39 std::vector<real> _sine_amp;
40 std::vector<real> _sine_freq;
41 std::vector<real> _sine_phase;
42 std::vector<real> _cosine_amp;
43 std::vector<real> _cosine_freq;
44 std::vector<real> _cosine_phase;
45
46 std::vector<real> _direction;
47 std::vector<real> _center;
48
50
51 std::vector<real> velocity_;
52 // real length_;
53
54 std::vector<int> output_variables_;
55
56private:
57 Advection& operator=(const Advection& var);
58 Advection(const Advection& var);
59};
60
61} // namespace analytic_solutions
62} // namespace apps
63} // namespace wxm
64#endif // WXM_APPS_ADVECTION_ANALYTIC_SOLUTION_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
Class that calculates the analytic solution Advection Equation.
Definition: advection.h:21
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: advection.h:28
std::vector< real > _cosine_amp
Definition: advection.h:42
std::vector< real > _sine_phase
Definition: advection.h:41
real _base
Definition: advection.h:49
std::vector< real > _cosine_freq
Definition: advection.h:43
std::vector< real > velocity_
Definition: advection.h:51
std::vector< int > output_variables_
Definition: advection.h:54
std::vector< real > _direction
Definition: advection.h:46
void setup(const WxCryptSet &wxc) override
std::vector< real > _cosine_phase
Definition: advection.h:44
std::vector< real > _center
Definition: advection.h:47
std::vector< real > _sine_amp
Definition: advection.h:39
std::vector< real > _sine_freq
Definition: advection.h:40
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
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