WARPXM v1.10.0
Loading...
Searching...
No Matches
plasma_switch_fields.h
Go to the documentation of this file.
1#ifndef PLASMA_SWITCH_FIELD_H
2#define PLASMA_SWITCH_FIELD_H
3
5
6#include <vector>
7
12namespace wxm
13{
14namespace functions
15{
30{
31public:
33
34 ~plasma_switch_fields() override = default;
35
36 void setup(const WxCryptSet& wxc) override;
37
38 void applyFunction(const real* position, real* value) const override;
39
40private:
41 std::vector<real> _center;
42 real _energy_conversion_factor;
43 real _Bz_max;
44 real _Bz_min;
45 real _pulse_width;
46 real _transition_width;
47};
48} // namespace functions
49} // namespace wxm
50
53#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
Initialize the EM fields for the simplified 2D plasma switch problem with a normalized Poynting vecto...
Definition: plasma_switch_fields.h:30
~plasma_switch_fields() override=default
void applyFunction(const real *position, real *value) const override
This is the currently apply function call - recasts to real.
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