WARPXM v1.10.0
Loading...
Searching...
No Matches
conserved_primitive_conversion.h
Go to the documentation of this file.
1#ifndef WMAPPLICATION_IMHD_CONSERVED_PRIMITIVE_H
2#define WMAPPLICATION_IMHD_CONSERVED_PRIMITIVE_H
3
4// WarpM includes
6
7// IMHD includes
9
10namespace wxm
11{
12namespace apps
13{
14namespace imhd
15{
16
25{
26public:
28
30
31 void setup(const WxCryptSet& wxc) override;
32
33 const std::vector<int>& getInputVariableIndexes(int flag) const override
34 {
35 return _inputVariables;
36 }
37
38 // redefinition of fluxes from parent
39 void conserved_to_primitive(const real* q, const real* aux, real* w) const override;
40
41 // redefinition of fluxes from parent
42 void primitive_to_conserved(const real* w, const real* aux, real* q) const override;
43
44protected:
46
47 std::vector<int> _inputVariables;
48
51
52private:
55};
56
57} // namespace imhd
58} // namespace apps
59} // namespace wxm
60
61#endif // WMAPPLICATION_IMHD_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:25
real _gas_gamma
Definition: conserved_primitive_conversion.h:45
void setup(const WxCryptSet &wxc) override
real _min_pressure_floor
Definition: conserved_primitive_conversion.h:50
void primitive_to_conserved(const real *w, const real *aux, real *q) const override
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: conserved_primitive_conversion.h:33
real _min_density_floor
Definition: conserved_primitive_conversion.h:49
std::vector< int > _inputVariables
Definition: conserved_primitive_conversion.h:47
void conserved_to_primitive(const real *q, const real *aux, real *w) const override
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