WARPXM v1.10.0
Loading...
Searching...
No Matches
constant_temperature.h
Go to the documentation of this file.
1#pragma once
2
3// wxm includes
6
7// STL includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace functions
15{
16namespace mhd
17{
18namespace pressure
19{
20
32{
33public:
39
45
50 void setup(const WxCryptSet& wxc) override;
51
57 const std::vector<int>& getInputVariableIndexes(int flag) const override
58 {
59 return _input_plasma_idcs;
60 }
61
67 const std::vector<int>& getOutputVariableIndexes(int flag) const override
68 {
70 }
71
79 void evaluate_function(const real* q,
80 const real* aux,
81 const solverVariables_t* pSV,
82 real* result) const override;
83
84protected:
86 std::unique_ptr<wxm::apps::mhd::AppSetupHelper> _setup_helper;
87
100
101 std::vector<int> _input_plasma_idcs;
102 std::vector<int> _output_pressure_idcs;
103
104private:
105 ConstantTemperature& operator=(const ConstantTemperature& var);
107};
108
109} // namespace pressure
110} // namespace mhd
111} // namespace functions
112} // namespace apps
113} // 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
Sets a constant MHD temperature.
Definition: constant_temperature.h:32
real _min_pressure
Definition: constant_temperature.h:99
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
void setup(const WxCryptSet &wxc) override
Setup.
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: constant_temperature.h:67
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: constant_temperature.h:57
std::unique_ptr< wxm::apps::mhd::AppSetupHelper > _setup_helper
Helper object that automates common setup routines.
Definition: constant_temperature.h:86
std::vector< int > _input_plasma_idcs
Definition: constant_temperature.h:101
real _min_density
Minimum normalized pressure used in calculations.
Definition: constant_temperature.h:97
std::vector< int > _output_pressure_idcs
Definition: constant_temperature.h:102
real _Ai
Proton normalized ion mass.
Definition: constant_temperature.h:91
real _temperature
Normalized temperature.
Definition: constant_temperature.h:95
real _Zi
Proton normalized ion charge.
Definition: constant_temperature.h:93
real _gas_gamma
Ratio of specific heats.
Definition: constant_temperature.h:89
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