WARPXM v1.10.0
Loading...
Searching...
No Matches
porous_insulator_inlet_2d_cyl_bc_gradients.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
5
6namespace wxm
7{
8namespace apps
9{
10namespace rmhd
11{
12namespace bc
13{
14/*
15 * Sets gradient BC in 2D z-r axisymmetric zpinch.
16 * Can handle injection in arbitrary direction in z-r plane.
17 * Is porous so should be able to handle plasma going in and out.
18 *
19 */
21{
22public:
24
26
27 void setup(const WxCryptSet& wxc) override;
28
29 const std::vector<int>& getInputVariableIndexes(int flag) const override
30 {
31 return _var_idcs;
32 }
33
34 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
35 {
36 return _aux_var_idcs;
37 }
38
39 const std::vector<int>& getOutputVariableIndexes(int flag) const override
40 {
41 return _var_idcs;
42 }
43
44 // redefinition of bc
45 void bc_q(const real* q_in,
46 const real* aux_in,
47 const real* aux_out,
48 const solverVariables_t* pFV,
49 real* q_out) const override;
50
51protected:
53
54 std::vector<int> _var_idcs;
55 std::vector<int> _aux_var_idcs;
56
57private:
60};
61
62} // namespace bc
63} // namespace rmhd
64} // namespace apps
65} // 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
Definition: porous_insulator_inlet_2d_cyl_bc_gradients.h:21
real _gas_gamma
Definition: porous_insulator_inlet_2d_cyl_bc_gradients.h:52
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: porous_insulator_inlet_2d_cyl_bc_gradients.h:39
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: porous_insulator_inlet_2d_cyl_bc_gradients.h:34
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.
void setup(const WxCryptSet &wxc) override
std::vector< int > _aux_var_idcs
Definition: porous_insulator_inlet_2d_cyl_bc_gradients.h:55
std::vector< int > _var_idcs
Definition: porous_insulator_inlet_2d_cyl_bc_gradients.h:54
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: porous_insulator_inlet_2d_cyl_bc_gradients.h:29
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