WARPXM v1.10.0
Loading...
Searching...
No Matches
conserved_primitive_conversion.h
Go to the documentation of this file.
1#pragma once
2
3// wxm includes
6#include "app_setup_helper.h"
7
8// STL includes
9#include <memory>
10
11namespace wxm
12{
13namespace apps
14{
15namespace five_moment
16{
17
19{
20public:
22
24
25 void setup(const WxCryptSet& wxc) override;
26
27 const std::vector<int>& getInputVariableIndexes(int flag) const override
28 {
29 return _inputVariables;
30 }
31
32 // redefinition of fluxes from parent
33 void conserved_to_primitive(const real* q, const real* aux, real* w) const override;
34
35 // redefinition of fluxes from parent
36 void primitive_to_conserved(const real* w, const real* aux, real* q) const override;
37
38protected:
40 std::unique_ptr<AppSetupHelper> _setup_helper;
41
46 std::vector<int> _inputVariables;
47
48private:
51};
52
53} // namespace five_moment
54} // namespace apps
55} // namespace wxm
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:19
void setup(const WxCryptSet &wxc) override
void primitive_to_conserved(const real *w, const real *aux, real *q) const override
real _min_pressure
Minimum normalized pressure used in calculations.
Definition: conserved_primitive_conversion.h:43
real _min_density
Minimum normalized mass density used in calculations.
Definition: conserved_primitive_conversion.h:42
std::unique_ptr< AppSetupHelper > _setup_helper
Helper object that automates common setup routines.
Definition: conserved_primitive_conversion.h:40
real _gas_gamma
Adiabatic index.
Definition: conserved_primitive_conversion.h:44
void conserved_to_primitive(const real *q, const real *aux, real *w) const override
std::vector< int > _inputVariables
Definition: conserved_primitive_conversion.h:46
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: conserved_primitive_conversion.h:27
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