WARPXM v1.10.0
Loading...
Searching...
No Matches
copy_pressure.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{
18namespace pressure
19{
35{
36public:
42
47 ~CopyPressure() override;
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
91 std::vector<int> input_plasma_idcs_;
92 std::vector<int> output_pressure_idcs_;
93
95
98
99private:
100 CopyPressure& operator=(const CopyPressure& var);
101 CopyPressure(const CopyPressure& var);
102};
103} // namespace pressure
104} // namespace mhd_two_temperature
105} // namespace functions
106} // namespace apps
107} // 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
Copies ion and electron pressures for the Two-Temperature MHD model.
Definition: copy_pressure.h:35
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: copy_pressure.h:70
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< wxm::apps::mhd_two_temperature::AppSetupHelper > setup_helper_
Helper object that automates common setup routines.
Definition: copy_pressure.h:89
std::vector< int > output_pressure_idcs_
Definition: copy_pressure.h:92
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: copy_pressure.h:60
std::vector< int > input_plasma_idcs_
Definition: copy_pressure.h:91
void setup(const WxCryptSet &wxc) override
Setup.
list apps
Definition: shock_tube.py:33
list pressure
Definition: zpinch_5-moment_1D.py:243
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