WARPXM v1.10.0
Loading...
Searching...
No Matches
plasma_switch.h
Go to the documentation of this file.
1#ifndef wmicfunction_plasma_switch_five_moment_h
2#define wmicfunction_plasma_switch_five_moment_h
3
4// std includes
5#include <vector>
6
7// Wm includes
9
13namespace wxm
14{
15namespace functions
16{
17namespace five_moment
18{
34{
35public:
37
38 ~PlasmaSwitch() override = default;
39 void setup(const WxCryptSet& wxc) override;
40
47 void applyFunction(const real* position, real* value) const override;
48
49private:
50 std::vector<real> center;
51 real rho_in, rho_out;
52 real P_in, P_out;
53 real gas_gamma;
54 real width_x_min;
55 real width_x_max;
56 real width_y;
57 real transition_width;
58};
59} // namespace five_moment
60} // namespace functions
61} // namespace wxm
62
65#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 simplified 2D plasma switch problem for a single 5 moment fluid.
Definition: plasma_switch.h:34
void setup(const WxCryptSet &wxc) override
Setup WmICFunction object using supplied cryptset.
void applyFunction(const real *position, real *value) const override
Evaluate the function at a position and return the result through a pointer.
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
#define real
Definition: wmoclunstructuredreconstruction.h:11