WARPXM v1.10.0
Loading...
Searching...
No Matches
r_polynomial.h
Go to the documentation of this file.
1#pragma once
2
3// WARPXM includes
5
6#include <vector>
7
8namespace wxm
9{
10namespace apps
11{
12namespace functions
13{
14namespace mhd
15{
16namespace zpinch_velocity_profiles
17{
19{
20public:
26
31 ~RPolynomial() override;
32
37 void setup(const WxCryptSet& wxc) override;
38
44 const std::vector<int>& getOutputVariableIndexes(int flag) const override
45 {
47 }
48
56 void evaluate_function(const real* q,
57 const real* aux,
58 const solverVariables_t* pSV,
59 real* result) const override;
60
69 void bc_q(const real* q_in,
70 const real* aux_in,
71 const real* aux_out,
72 const solverVariables_t* pFV,
73 real* q_out) const override;
74
75protected:
76 std::vector<int> _velocity_variable_index;
77
78 std::string _coordinate_system;
79 int _ir, _ith, _iz; // r, theta, and z indices
80
82
83 std::vector<real> _coefficients;
84
85private:
86 RPolynomial& operator=(const RPolynomial& var);
87 RPolynomial(const RPolynomial& var);
88};
89} // namespace zpinch_velocity_profiles
90} // namespace mhd
91} // namespace functions
92} // namespace apps
93} // 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
std::vector< real > _coefficients
Definition: r_polynomial.h:83
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: r_polynomial.h:44
std::vector< int > _velocity_variable_index
Definition: r_polynomial.h:76
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.
void bc_q(const real *q_in, const real *aux_in, const real *aux_out, const solverVariables_t *pFV, real *q_out) const override
Redefinition of the bc.
std::string _coordinate_system
Definition: r_polynomial.h:78
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