WARPXM v1.10.0
Loading...
Searching...
No Matches
heaviside.h
Go to the documentation of this file.
1#ifndef wmapplication_function_arbitrary_heaviside_h
2#define wmapplication_function_arbitrary_heaviside_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace arbitrary
14{
15
17{
18public:
24
29 ~Heaviside() override;
30
35 void setup(const WxCryptSet& wxc) override;
36
42 const std::vector<int>& getOutputVariableIndexes(int flag) const override
43 {
44 return _output_variables;
45 }
46
54 void evaluate_function(const real* q,
55 const real* aux,
56 const solverVariables_t* pSV,
57 real* result) const override;
58
59protected:
60 std::vector<int> _output_variables;
61
62 // Number of arguments that this class is designed to set
64
65 std::vector<real> _direction;
66 std::vector<real> _center;
67
70
72
73private:
74 Heaviside& operator=(const Heaviside& var);
75 Heaviside(const Heaviside& var);
76};
77} // namespace arbitrary
78} // namespace functions
79} // namespace apps
80} // namespace wxm
81
82#endif
Base Class for physics applications.
Definition: wmapplication.h:93
Class WxAny is based on the "any" class described in "Valued Conversion", Kevlin Henney,...
Definition: wxany.h:139
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
std::vector< real > _direction
Definition: heaviside.h:65
WxAny _leftValue
Definition: heaviside.h:68
real _transitionWidth
Definition: heaviside.h:71
std::vector< real > _center
Definition: heaviside.h:66
WxAny _rightValue
Definition: heaviside.h:69
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: heaviside.h:42
std::vector< int > _output_variables
Definition: heaviside.h:60
int _num_args
Definition: heaviside.h:63
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.
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