WARPXM v1.10.0
Loading...
Searching...
No Matches
wmapplication_imhd_flux.h
Go to the documentation of this file.
1#ifndef WMAPPLICATION_IMHD_FLUX_H
2#define WMAPPLICATION_IMHD_FLUX_H
3
4// WarpM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace imhd
12{
13
15{
16public:
18
20
21 void setup(const WxCryptSet& wxc) override;
22
23 const std::vector<int>& getInputVariableIndexes(int flag) const override
24 {
25 return _inputVariables;
26 }
27 const std::vector<int>& getOutputVariableIndexes(int flag) const override
28 {
29 return _outputVariables;
30 }
31
32 // redefinition of fluxes from parent
34 const real* q_r,
35 const real* aux_l,
36 const real* aux_r,
37 const solverVariables_t* pFV,
38 real* numericalFlux) const override;
40 const real* aux,
41 const solverVariables_t* pSV,
42 std::vector<std::vector<real>>& internalFlux) const override;
43
44protected:
46
47 std::string _numerical_flux_type; // this is the type of numerical flux you want to
48 // use (rusanov, roe, hll, hlld, etc.)
49
50 std::vector<int> _inputVariables;
51 std::vector<int> _outputVariables;
52
55
56private:
59};
60
61} // namespace imhd
62} // namespace apps
63} // namespace wxm
64
65#endif // WMAPPLICATION_IMHD_FLUX_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: wmapplication_imhd_flux.h:15
std::vector< int > _outputVariables
Definition: wmapplication_imhd_flux.h:51
real _min_pressure
Definition: wmapplication_imhd_flux.h:54
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: wmapplication_imhd_flux.h:27
real internal_flux(const real *q, const real *aux, const solverVariables_t *pSV, std::vector< std::vector< real > > &internalFlux) const override
std::vector< int > _inputVariables
Definition: wmapplication_imhd_flux.h:50
real _gas_gamma
Definition: wmapplication_imhd_flux.h:45
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: wmapplication_imhd_flux.h:23
void setup(const WxCryptSet &wxc) override
std::string _numerical_flux_type
Definition: wmapplication_imhd_flux.h:47
real _min_density
Definition: wmapplication_imhd_flux.h:53
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
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