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
6
7// STL includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace functions
15{
16namespace mhd_two_temperature
17{
63{
64public:
70
75 ~SetFloors() override;
76
81 void setup(const WxCryptSet& wxc) override;
82
88 const std::vector<int>& getInputVariableIndexes(int flag) const override
89 {
90 return mhd_fluid_indices_;
91 }
92
98 const std::vector<int>& getOutputVariableIndexes(int flag) const override
99 {
100 return mhd_fluid_indices_;
101 }
102
110 void evaluate_function(const real* q,
111 const real* aux,
112 const solverVariables_t* pSV,
113 real* result) const override;
114
115protected:
117 std::unique_ptr<wxm::apps::mhd_two_temperature::AppSetupHelper> setup_helper_;
118
119 std::vector<int> mhd_fluid_indices_;
126private:
127 SetFloors& operator=(const SetFloors& var) = delete;
128 SetFloors(const SetFloors& var) = delete;
129};
130} // namespace mhd_two_temperature
131} // namespace functions
132} // namespace apps
133} // 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 Two-Temperature MHD fluid.
Definition: set_floors.h:63
void setup(const WxCryptSet &wxc) override
Setup.
real min_pressure_floor_
Pressure floor.
Definition: set_floors.h:123
real gas_gamma_
Ratio of specific heats.
Definition: set_floors.h:121
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: set_floors.h:98
real min_density_floor_
Mass density floor.
Definition: set_floors.h:122
std::unique_ptr< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: set_floors.h:117
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: set_floors.h:88
bool eliminate_ke_
Floor method toggle.
Definition: set_floors.h:124
std::vector< int > mhd_fluid_indices_
Vector of Two-Temperatuer MHD fluid variable indices.
Definition: set_floors.h:119
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