Chombo + EB  3.0
NodeBCFunc.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 
12 #ifndef _NODEBCFUNC_H_
13 #define _NODEBCFUNC_H_
14 
15 #include "BCFunc.H"
16 #include "NodeFArrayBox.H"
17 #include "ProblemDomain.H"
18 #include "NamespaceHeader.H"
19 
20 ///
21 /**
22  */
23 typedef void(*NodeBCFunc)(NodeFArrayBox& a_state,
24  const Box& a_valid,
25  const ProblemDomain& a_domain,
26  Real a_dx,
27  bool a_homogeneous);
28 
29 
30 ///
31 /**
32  neum bc for a particular side
33 */
34 void NodeNeumBC(NodeFArrayBox& a_state,
35  const Box& a_valid,
36  Real a_dx,
37  bool a_homogeneous,
38  BCValueHolder a_value,
39  int a_dir,
40  Side::LoHiSide a_side);
41 
42 ///
43 /**
44  neum bc for all sides
45 */
46 void NodeNeumBC(NodeFArrayBox& a_state,
47  const Box& a_valid,
48  Real a_dx,
49  bool a_homogeneous,
50  BCValueHolder a_value);
51 
52 ///
53 /**
54  */
55 void NodeDiriBC(NodeFArrayBox& a_state,
56  const Box& a_valid,
57  Real a_dx,
58  bool a_homogeneous,
59  BCValueHolder a_value,
60  int a_dir,
61  Side::LoHiSide a_side,
62  int order = 2);
63 
64 ///
65 /**
66  diri bc for all sides
67 */
68 void NodeDiriBC(NodeFArrayBox& a_state,
69  const Box& a_valid,
70  Real a_dx,
71  bool a_homogeneous,
72  BCValueHolder a_value,
73  int order = 2);
74 
75 #include "NamespaceFooter.H"
76 #endif
Definition: BCFunc.H:226
void NodeDiriBC(NodeFArrayBox &a_state, const Box &a_valid, Real a_dx, bool a_homogeneous, BCValueHolder a_value, int a_dir, Side::LoHiSide a_side, int order=2)
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:130
void NodeNeumBC(NodeFArrayBox &a_state, const Box &a_valid, Real a_dx, bool a_homogeneous, BCValueHolder a_value, int a_dir, Side::LoHiSide a_side)
void(* NodeBCFunc)(NodeFArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, bool a_homogeneous)
Definition: NodeBCFunc.H:23
double Real
Definition: REAL.H:33
LoHiSide
Definition: LoHiSide.H:27
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
A wrapper for an FArrayBox to contain NODE-centered data.
Definition: NodeFArrayBox.H:87