WARPXM v1.10.0
Loading...
Searching...
No Matches
radial_slab.h
Go to the documentation of this file.
1#ifndef WXM_FUNCTION_RADIAL_SLAB_H
2#define WXM_FUNCTION_RADIAL_SLAB_H
3
5
6namespace wxm
7{
8namespace apps
9{
10namespace functions
11{
12namespace five_moment
13{
14
19{
20public:
22
23 ~radial_slab() = default;
24
25 void setup(const WxCryptSet& wxc) override;
26
32 const std::vector<int>& getOutputVariableIndexes(int flag) const override
33 {
34 return _output_fluid;
35 }
36
44 void evaluate_function(const real* q,
45 const real* aux,
46 const solverVariables_t* pSV,
47 real* result) const override;
48
49private:
50 real _rho_in, _rho_out, _P_in, _P_out;
51 real _gamma;
52 real _radius;
53 std::vector<real> _center;
54
55 std::vector<int> _output_fluid;
56};
57} // namespace five_moment
58} // namespace functions
59} // namespace apps
60} // namespace wxm
61#endif
Base Class for physics applications.
Definition: wmapplication.h:93
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
A spherical slab of fluid with a given radius and center.
Definition: radial_slab.h:19
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
void setup(const WxCryptSet &wxc) override
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: radial_slab.h:32
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