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_two_temperature
17{
18namespace pressure
19{
35{
36public:
42
48
53 void setup(const WxCryptSet& wxc) override;
54
60 const std::vector<int>& getInputVariableIndexes(int flag) const override
61 {
62 return input_plasma_idcs_;
63 }
64
70 const std::vector<int>& getOutputVariableIndexes(int flag) const override
71 {
73 }
74
82 void evaluate_function(const real* q,
83 const real* aux,
84 const solverVariables_t* pSV,
85 real* result) const override;
86
87protected:
89 std::unique_ptr<wxm::apps::mhd_two_temperature::AppSetupHelper> setup_helper_;
90
105
106 std::vector<int> input_plasma_idcs_;
107 std::vector<int> output_pressure_idcs_;
108
109private:
110 ConstantTemperature& operator=(const ConstantTemperature& var);
112};
113} // namespace pressure
114} // namespace mhd_two_temperature
115} // namespace functions
116} // namespace apps
117} // 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 constant ion and electrons temperatures for the Two-Temperature MHD model.
Definition: constant_temperature.h:35
real Zi_
Proton normalized ion charge.
Definition: constant_temperature.h:96
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: constant_temperature.h:70
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: constant_temperature.h:60
std::unique_ptr< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: constant_temperature.h:89
real ion_temperature_
Normalized ion temperature.
Definition: constant_temperature.h:98
real gas_gamma_
Ratio of specific heats.
Definition: constant_temperature.h:92
std::vector< int > output_pressure_idcs_
Definition: constant_temperature.h:107
real min_pressure_floor_
Definition: constant_temperature.h:104
real Ai_
Proton normalized ion mass.
Definition: constant_temperature.h:94
real electron_temperature_
Normalized electron temperature.
Definition: constant_temperature.h:100
std::vector< int > input_plasma_idcs_
Definition: constant_temperature.h:106
real min_density_floor_
Minimum normalized pressure used in calculations.
Definition: constant_temperature.h:102
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