WARPXM v1.10.0
Loading...
Searching...
No Matches
1d1v_arbitrary_shocktube.h
Go to the documentation of this file.
1#ifndef KINETICS1D1V_ARBITRARY_SHOCKTUBE_APP_H
2#define KINETICS1D1V_ARBITRARY_SHOCKTUBE_APP_H
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace kinetics
14{
15
33{
34public:
40
46
51 void setup(const WxCryptSet& wxc) override;
52
58 const std::vector<int>& getOutputVariableIndexes(int flag) const override
59 {
60 return _distribution;
61 }
62
70 void evaluate_function(const real* q,
71 const real* aux,
72 const solverVariables_t* pSV,
73 real* result) const override;
74
75protected:
76 std::vector<int> _distribution; // output variable
77
79 real _xc; // location of shock in x coordinate
80
87
89
90private:
93};
94
95} // namespace kinetics
96} // namespace functions
97} // namespace apps
98} // namespace wxm
99
100#endif // KINETICS1D1V_ARBITRARY_SHOCKTUBE_APP_H
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
Double Rarefaction 1D Riemann Problem See: Buffard and Clain -> Monoslope and multislope MUSCL method...
Definition: 1d1v_arbitrary_shocktube.h:33
real _velocity_x_left
Definition: 1d1v_arbitrary_shocktube.h:82
real _transition_width
Definition: 1d1v_arbitrary_shocktube.h:88
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
std::vector< int > _distribution
Definition: 1d1v_arbitrary_shocktube.h:76
real _pressure_right
Definition: 1d1v_arbitrary_shocktube.h:86
real _xc
Definition: 1d1v_arbitrary_shocktube.h:79
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: 1d1v_arbitrary_shocktube.h:58
real _density_left
Definition: 1d1v_arbitrary_shocktube.h:81
void setup(const WxCryptSet &wxc) override
Setup.
real _velocity_x_right
Definition: 1d1v_arbitrary_shocktube.h:85
real _density_right
Definition: 1d1v_arbitrary_shocktube.h:84
real _pressure_left
Definition: 1d1v_arbitrary_shocktube.h:83
real _mass
Definition: 1d1v_arbitrary_shocktube.h:78
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