WARPXM v1.10.0
Loading...
Searching...
No Matches
trapezoid.h
Go to the documentation of this file.
1#ifndef WXM_TRAPEZOID_IC_H
2#define WXM_TRAPEZOID_IC_H
3
4#include "wmicfunction.h"
5
6#include <vector>
7
8namespace wxm
9{
10namespace functions
11{
23class trapezoid : public WmICFunction
24{
25public:
27
28 ~trapezoid() override = default;
29
30 void setup(const WxCryptSet& wxc) override;
31
32 void applyFunction(const real* position, real* value) const override;
33
34private:
35 std::vector<real> center;
36 real lowValue;
37 real hiValue;
38 real lowWidth;
39 real hiWidth;
40};
41} // namespace functions
42} // namespace wxm
43
44#endif
Base class for functions used in generating initial conditions.
Definition: wmicfunction.h:25
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:24
void applyFunction(const real *position, real *value) const override
This is the currently apply function call - recasts to real.
~trapezoid() override=default
void setup(const WxCryptSet &wxc) override
Setup WmICFunction object using supplied cryptset.
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
#define real
Definition: wmoclunstructuredreconstruction.h:11