WARPXM v1.10.0
Loading...
Searching...
No Matches
trapezoid.h
Go to the documentation of this file.
1#ifndef wmapplication_function_arbitrary_trapezoid_h
2#define wmapplication_function_arbitrary_trapezoid_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace arbitrary
14{
28{
29public:
35
40 ~Trapezoid() override;
41
46 void setup(const WxCryptSet& wxc) override;
47
53 const std::vector<int>& getOutputVariableIndexes(int flag) const override
54 {
55 return _output_variables;
56 }
57
65 void evaluate_function(const real* q,
66 const real* aux,
67 const solverVariables_t* pSV,
68 real* result) const override;
69
70protected:
71 std::vector<int> _output_variables;
72
73 // Number of arguments that this class is designed to set
75
76 std::vector<real> center;
81
82private:
83 Trapezoid& operator=(const Trapezoid& var);
84 Trapezoid(const Trapezoid& var);
85};
86} // namespace arbitrary
87} // namespace functions
88} // namespace apps
89} // namespace wxm
90
91#endif
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
Initializes a trapezoidal shape.
Definition: trapezoid.h:28
real hiWidth
Definition: trapezoid.h:80
real lowValue
Definition: trapezoid.h:77
int _num_args
Definition: trapezoid.h:74
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
std::vector< int > _output_variables
Definition: trapezoid.h:71
std::vector< real > center
Definition: trapezoid.h:76
void setup(const WxCryptSet &wxc) override
Setup.
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: trapezoid.h:53
real hiValue
Definition: trapezoid.h:78
real lowWidth
Definition: trapezoid.h:79
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