WARPXM v1.10.0
Loading...
Searching...
No Matches
wmicfunction_pulses_fluid5.h
Go to the documentation of this file.
1#ifndef WMICFUNCTION_PULSES_FLUID5_H
2#define WMICFUNCTION_PULSES_FLUID5_H
3
4// Wm includes
6#include "warpxm/warpxm_config.h"
7
8// std includes
9#include <vector>
10#include <string>
11
13{
14public:
21
28
35 void setup(const WxCryptSet& wxc);
36
44 void applyFunction(const real* position, real* value) const;
45
46protected:
47 real calcRadiusPosition(const real* xc, const real* x) const;
48 bool isInPulse(const real& a, const real& r) const;
49 real gaussianPulse(const real& a, const real& r) const;
50 real polynomialPulse(const real& a, const real& r) const;
51
57
63
64 std::vector<real> _center_x;
65 std::vector<real> _center_y;
66 std::vector<real> _center_z;
67};
68
69#endif // WMICFUNCTION_PULSES_FLUID5_H
Definition: wmicfunction_pulses_fluid5.h:13
void applyFunction(const real *position, real *value) const
Evaluate the function at a position and return the result through a pointer.
bool _gaussian
Definition: wmicfunction_pulses_fluid5.h:60
WmICFunction_Pulses_Fluid5()
Create new WmICFunction_Pulses_Fluid5.
real _num_cols
Definition: wmicfunction_pulses_fluid5.h:59
~WmICFunction_Pulses_Fluid5()
Destroy WmICFunction_Pulses_Fluid5.
std::vector< real > _center_y
Definition: wmicfunction_pulses_fluid5.h:65
bool isInPulse(const real &a, const real &r) const
void setup(const WxCryptSet &wxc)
Setup WmICFunction_Pulses_Fluid5 object using supplied cryptset.
real _mass
Definition: wmicfunction_pulses_fluid5.h:52
real _k
Definition: wmicfunction_pulses_fluid5.h:62
real _n0
Definition: wmicfunction_pulses_fluid5.h:53
real gaussianPulse(const real &a, const real &r) const
real _gas_gamma
Definition: wmicfunction_pulses_fluid5.h:56
real calcRadiusPosition(const real *xc, const real *x) const
bool _polynomial
Definition: wmicfunction_pulses_fluid5.h:61
real polynomialPulse(const real &a, const real &r) const
real _radius
Definition: wmicfunction_pulses_fluid5.h:58
std::vector< real > _center_z
Definition: wmicfunction_pulses_fluid5.h:66
real _n1
Definition: wmicfunction_pulses_fluid5.h:54
real _temperature
Definition: wmicfunction_pulses_fluid5.h:55
std::vector< real > _center_x
Definition: wmicfunction_pulses_fluid5.h:64
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
#define real
Definition: wmoclunstructuredreconstruction.h:11