WARPXM v1.10.0
Loading...
Searching...
No Matches
euler.h
Go to the documentation of this file.
1// wxm includes
3#include "app_setup_helper.h"
4
5// std includes
6#include <memory>
7
8namespace wxm
9{
10namespace apps
11{
12namespace five_moment
13{
14
31class Euler : public WmApplication
32{
33public:
35
36 void setup(const WxCryptSet& wxc) override;
37
38 const std::vector<int>& getInputVariableIndexes(int flag) const override
39 {
40 return _variables;
41 }
42 const std::vector<int>& getOutputVariableIndexes(int flag) const override
43 {
44 return _variables;
45 }
46
47 // redefinition of fluxes from parent
49 const real* q_r,
50 const real* aux_l,
51 const real* aux_r,
52 const solverVariables_t* pFV,
53 real* numericalFlux) const override;
54
56 const real* aux,
57 const solverVariables_t* pSV,
58 std::vector<std::vector<real>>& internalFlux) const override;
59
60protected:
61 std::unique_ptr<AppSetupHelper> _setup_helper;
66 std::vector<int> _variables;
67
70
71private:
72 Euler& operator=(const Euler& var) = delete;
73 Euler(const Euler& var) = delete;
74};
75} // namespace five_moment
76} // namespace apps
77} // namespace wxm
78
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
Euler flux.
Definition: euler.h:32
real _min_pressure
Minimum normalized pressure used in calculations.
Definition: euler.h:63
std::vector< int > _variables
Definition: euler.h:66
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: euler.h:42
real _min_density
Minimum normalized mass density used in calculations.
Definition: euler.h:62
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: euler.h:38
real internal_flux(const real *q, const real *aux, const solverVariables_t *pSV, std::vector< std::vector< real > > &internalFlux) const override
void setup(const WxCryptSet &wxc) override
std::string _numerical_flux_type
Definition: euler.h:68
bool _entropy_fix
Definition: euler.h:69
std::unique_ptr< AppSetupHelper > _setup_helper
Helper object that automates common setup routines.
Definition: euler.h:61
real numerical_flux(const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const override
real _gas_gamma
Adiabatic index.
Definition: euler.h:64
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