Chombo + EB  3.2
EBEllipticLoHiCenter.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 #ifndef _EBELLIPTICLOHICENTER_H_
12 #define _EBELLIPTICLOHICENTER_H_
13 
14 #include "Box.H"
15 #include "ProblemDomain.H"
16 #include "NamespaceHeader.H"
17 
18 ///
19 /**
20  This function is used when in direction a_dir a 3 point stencil of cell-
21  centered data is being used to compute something at the cell center of the
22  center cell of the stencil. The data for the stencil is valid in
23  a_inputBox. It divides a_inputBox into a cell-centered box where the full
24  stencil can be used, a_centerBox, and cell-centered boxes where 2 point
25  stencils can be used, a_loBox and a_hiBox, based on the current problem
26  domain, a_domain, and the stencil direction, a_dir. The union of these 2
27  and 3 point stencel boxes is returned as a_entireBox. The 2 point stencil
28  boxes are one wide, at most, and if they have been defined then the
29  corresponding flag, a_hasLo or a_hasHi, is set to one, otherwise these
30  flags are zero. All output boxes lie within a_resultBox and the domain.
31  */
32 extern void ebEllipticLoHiCenter(Box& a_loBox,
33  int& a_hasLo,
34  Box& a_hiBox,
35  int& a_hasHi,
36  Box& a_centerBox,
37  Box& a_entireBox,
38  const Box& a_resultBox,
39  const Box& a_inputBox,
40  const ProblemDomain& a_domain,
41  const int& a_dir);
42 
43 ///
44 /**
45  This function is used when in direction a_dir a 2 point stencil of cell-
46  centered data is being used to compute something at the cell face between
47  the cell centers of the stencil. The data for the stencil is valid in
48  a_inputBox. It uses a_inputBox to compute a box (face-centered in a_dir)
49  where the full stencil can be used, a_centerBox, and boxes (face-centered
50  in a_dir) where a 1 point stencil can be used, a_loBox and a_hiBox based
51  on the current problem domain, a_domain, and the stencil direction, a_dir.
52  The union of these 1 and 2 point stencel boxes is returned as a_entireBox
53  (face-centered in a_dir). The 1 point stencil boxes are one wide, at most,
54  and if they have been defined then the corresponding flag, a_hasLo or
55  a_hasHi, is set to one, otherwise these flags are zero. All output boxes
56  lie within a_resultBox and the domain.
57  */
58 extern void ebEllipticLoHiCenterFace(Box& a_loBox,
59  int& a_hasLo,
60  Box& a_hiBox,
61  int& a_hasHi,
62  Box& a_centerBox,
63  Box& a_entireBox,
64  const Box& a_resultBox,
65  const Box& a_inputBox,
66  const ProblemDomain& a_domain,
67  const int& a_dir);
68 
69 extern void ebEllipticLoHiCenter(Vector<Box>& a_loBox,
70  Vector<Box>& a_hiBox,
71  Box& a_centerBox,
72  Vector<Box>& a_overLap,
73  const Box& a_dblBox,
74  const ProblemDomain& a_domain);
75 
76 #include "NamespaceFooter.H"
77 #endif
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
void ebEllipticLoHiCenterFace(Box &a_loBox, int &a_hasLo, Box &a_hiBox, int &a_hasHi, Box &a_centerBox, Box &a_entireBox, const Box &a_resultBox, const Box &a_inputBox, const ProblemDomain &a_domain, const int &a_dir)
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
void ebEllipticLoHiCenter(Box &a_loBox, int &a_hasLo, Box &a_hiBox, int &a_hasHi, Box &a_centerBox, Box &a_entireBox, const Box &a_resultBox, const Box &a_inputBox, const ProblemDomain &a_domain, const int &a_dir)