WARPXM v1.10.0
Loading...
Searching...
No Matches
conserved_primitive_conversion.h
Go to the documentation of this file.
1#ifndef WMAPPLICATION_5MOMENT_CONSERVED_PRIMITIVE_H
2#define WMAPPLICATION_5MOMENT_CONSERVED_PRIMITIVE_H
3
4// WarpM includes
6
7// IMHD includes
9
10namespace wxm
11{
12namespace apps
13{
14namespace five_moment
15{
16
18{
19public:
21
23
24 void setup(const WxCryptSet& wxc) override;
25
26 const std::vector<int>& getInputVariableIndexes(int flag) const override
27 {
28 return _inputVariables;
29 }
30 // const std::vector<int>& getOutputVariableIndexes(int flag) const override
31 // {
32 // return _outputVariables;
33 // }
34
35 // redefinition of fluxes from parent
36 void conserved_to_primitive(const real* q, const real* aux, real* w) const override;
37
38 // redefinition of fluxes from parent
39 void primitive_to_conserved(const real* w, const real* aux, real* q) const override;
40
41protected:
43
44 std::vector<int> _inputVariables;
45 // std::vector<int> _outputVariables;
48
49private:
52};
53
54} // namespace five_moment
55} // namespace apps
56} // namespace wxm
57
58#endif // WMAPPLICATION_5MOMENT_CONSERVED_PRIMITIVE_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
Definition: conserved_primitive_conversion.h:18
void setup(const WxCryptSet &wxc) override
void primitive_to_conserved(const real *w, const real *aux, real *q) const override
real _pressure_min
Definition: conserved_primitive_conversion.h:46
real _gas_gamma
Definition: conserved_primitive_conversion.h:42
void conserved_to_primitive(const real *q, const real *aux, real *w) const override
std::vector< int > _inputVariables
Definition: conserved_primitive_conversion.h:44
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: conserved_primitive_conversion.h:26
real _density_min
Definition: conserved_primitive_conversion.h:47
list apps
Definition: shock_tube.py:33
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
#define real
Definition: wmoclunstructuredreconstruction.h:11