WARPXM v1.10.0
Loading...
Searching...
No Matches
set_floors.h
Go to the documentation of this file.
1#pragma once
2
3// WARPXM includes
5
6namespace wxm
7{
8namespace apps
9{
10namespace functions
11{
12namespace mhd
13{
55{
56public:
62
67 ~SetFloors() override;
68
73 void setup(const WxCryptSet& wxc) override;
74
80 const std::vector<int>& getInputVariableIndexes(int flag) const override
81 {
82 return _fluid;
83 }
84
90 const std::vector<int>& getOutputVariableIndexes(int flag) const override
91 {
92 return _fluid;
93 }
94
102 void evaluate_function(const real* q,
103 const real* aux,
104 const solverVariables_t* pSV,
105 real* result) const override;
106
107protected:
108 std::vector<int> _fluid;
114private:
115 SetFloors& operator=(const SetFloors& var) = delete;
116 SetFloors(const SetFloors& var) = delete;
117};
118} // namespace mhd
119} // namespace functions
120} // namespace apps
121} // 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
Class to set density and pressure floors for MHD fluid.
Definition: set_floors.h:55
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
real _gas_gamma
Ratio of specific heats.
Definition: set_floors.h:109
std::vector< int > _fluid
Vector of MHD fluid variable indices.
Definition: set_floors.h:108
bool _eliminate_ke
Floor method toggle.
Definition: set_floors.h:112
~SetFloors() override
Destructor.
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: set_floors.h:80
void setup(const WxCryptSet &wxc) override
Setup.
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: set_floors.h:90
real _p_min
Pressure floor.
Definition: set_floors.h:111
real _rho_min
Mass density floor.
Definition: set_floors.h:110
list apps
Definition: shock_tube.py:33
warpy mhd
Definition: mhd_shock.py:32
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