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
5
6namespace wxm
7{
8namespace apps
9{
10namespace functions
11{
12namespace mhd
13{
14
27{
28public:
34
39 ~CopyPressure() override;
40
45 void setup(const WxCryptSet& wxc) override;
46
52 const std::vector<int>& getInputVariableIndexes(int flag) const override
53 {
54 return _input_plasma_idcs;
55 }
56
62 const std::vector<int>& getOutputVariableIndexes(int flag) const override
63 {
65 }
66
74 void evaluate_function(const real* q,
75 const real* aux,
76 const solverVariables_t* pSV,
77 real* result) const override;
78
79protected:
80 std::vector<int> _input_plasma_idcs;
81 std::vector<int> _output_pressure_idcs;
82
84
87
88private:
89 CopyPressure& operator=(const CopyPressure& var);
90 CopyPressure(const CopyPressure& var);
91};
92
93} // namespace mhd
94} // namespace functions
95} // namespace apps
96} // 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
Implements a calculation of MHD pressure.
Definition: copy_pressure.h:27
void setup(const WxCryptSet &wxc) override
Setup.
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: copy_pressure.h:52
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
std::vector< int > _output_pressure_idcs
Definition: copy_pressure.h:81
std::vector< int > _input_plasma_idcs
Definition: copy_pressure.h:80
real _min_pressure_floor
Definition: copy_pressure.h:86
real _min_density_floor
Definition: copy_pressure.h:85
real _gas_gamma
Definition: copy_pressure.h:83
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: copy_pressure.h:62
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