WARPXM v1.10.0
Loading...
Searching...
No Matches
freeslip_wall_gradients.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 five_moment
15{
16namespace bc
17{
18
43{
44public:
46
48
49 void setup(const WxCryptSet& wxc) override;
50
51 const std::vector<int>& getInputVariableIndexes(int flag) const override
52 {
53 return _var_idcs;
54 }
55
56 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
57 {
58 return _aux_var_idcs;
59 }
60
61 const std::vector<int>& getOutputVariableIndexes(int flag) const override
62 {
63 return _var_idcs;
64 }
65
66 // redefinition of bc
67 void bc_q(const real* q_in,
68 const real* aux_in,
69 const real* aux_out,
70 const solverVariables_t* pFV,
71 real* q_out) const override;
72
73protected:
75 std::unique_ptr<AppSetupHelper> _setup_helper;
76
81 std::vector<int> _var_idcs;
82 std::vector<int> _aux_var_idcs;
83
84private:
85 FreeslipWallGradients& operator=(const FreeslipWallGradients& var) = delete;
87};
88} // namespace bc
89} // namespace five_moment
90} // namespace apps
91} // 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
Gradient boundary condition for five moment free slip wall.
Definition: freeslip_wall_gradients.h:43
real _min_density
Minimum normalized mass density used in calculations.
Definition: freeslip_wall_gradients.h:77
void bc_q(const real *q_in, const real *aux_in, const real *aux_out, const solverVariables_t *pFV, real *q_out) const override
Boundary Condition Application which sets the boundary condition on ghost nodes.
std::vector< int > _var_idcs
Definition: freeslip_wall_gradients.h:81
void setup(const WxCryptSet &wxc) override
real _min_pressure
Minimum normalized pressure used in calculations.
Definition: freeslip_wall_gradients.h:78
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: freeslip_wall_gradients.h:61
std::unique_ptr< AppSetupHelper > _setup_helper
Helper object that automates common setup routines.
Definition: freeslip_wall_gradients.h:75
std::vector< int > _aux_var_idcs
Definition: freeslip_wall_gradients.h:82
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: freeslip_wall_gradients.h:56
real _gas_gamma
Adiabatic index.
Definition: freeslip_wall_gradients.h:79
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: freeslip_wall_gradients.h:51
list apps
Definition: shock_tube.py:33
bc
Definition: advection2d_conservation.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