WARPXM v1.10.0
Loading...
Searching...
No Matches
manual_density_and_pressure_fluid5.h
Go to the documentation of this file.
1#ifndef wmapplication_function_five_moment_manual_density_and_pressure_h
2#define wmapplication_function_five_moment_manual_density_and_pressure_h
3
4// WARPXM includes
6
7#include <memory>
8
9namespace wxm
10{
11namespace apps
12{
13namespace functions
14{
15namespace five_moment
16{
17
24{
25public:
31
37
42 void setup(const WxCryptSet& wxc) override;
43
49 const std::vector<int>& getOutputVariableIndexes(int flag) const override
50 {
51 return _output_fluid;
52 }
53
61 void evaluate_function(const real* q,
62 const real* aux,
63 const solverVariables_t* pSV,
64 real* result) const override;
65
66protected:
67 std::vector<int> _output_fluid;
68
70
71 // pointer to subapplications
72 std::unique_ptr<WmApplication> _density_app;
73 std::unique_ptr<WmApplication> _pressure_app;
74
75private:
78};
79} // namespace five_moment
80} // namespace functions
81} // namespace apps
82} // namespace wxm
83
84#endif
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
Function allowing density and pressure to be set by subfunctions.
Definition: manual_density_and_pressure_fluid5.h:24
void setup(const WxCryptSet &wxc) override
Setup.
std::vector< int > _output_fluid
Definition: manual_density_and_pressure_fluid5.h:67
real _gas_gamma
Definition: manual_density_and_pressure_fluid5.h:69
std::unique_ptr< WmApplication > _pressure_app
Definition: manual_density_and_pressure_fluid5.h:73
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
std::unique_ptr< WmApplication > _density_app
Definition: manual_density_and_pressure_fluid5.h:72
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: manual_density_and_pressure_fluid5.h:49
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