WARPXM v1.10.0
Loading...
Searching...
No Matches
pn_bc.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 BC for plasma-neutral model for acceleration region inlet in axisymmetric zpinch
16 * Current implementation only works for single-fluid MHD. Plasma-neutral model has not
17 * been implemented.
18 *
19 */
20class pn_bc : public WmApplication
21{
22public:
24
25 ~pn_bc() override;
26
27 void setup(const WxCryptSet& wxc) override;
28
29 const std::vector<int>& getInputVariableIndexes(int flag) const override
30 {
31 return _variables;
32 }
33 const std::vector<int>& getOutputVariableIndexes(int flag) const override
34 {
35 return _variables;
36 }
37
38 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
39 {
40 return _iload_idx;
41 }
42
43 // redefinition of bc
44 void bc_q(const real* q_in,
45 const real* aux_in,
46 const real* aux_out,
47 const solverVariables_t* pFV,
48 real* q_out) const override;
49
50protected:
54 std::vector<real> _params;
55
56 std::vector<int> _variables;
57 std::vector<int> _iload_idx;
58
59private:
60 pn_bc& operator=(const pn_bc& var);
61 pn_bc(const pn_bc& var);
62};
63} // namespace bc
64} // namespace rmhd
65} // namespace apps
66} // 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: pn_bc.h:21
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: pn_bc.h:33
std::vector< int > _iload_idx
Definition: pn_bc.h:57
real _min_density
Definition: pn_bc.h:52
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< real > _params
Definition: pn_bc.h:54
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: pn_bc.h:38
int _bc_type
Definition: pn_bc.h:51
void setup(const WxCryptSet &wxc) override
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: pn_bc.h:29
real _min_pressure
Definition: pn_bc.h:53
std::vector< int > _variables
Definition: pn_bc.h:56
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