Perform shifts, extensions, etc on a BoundaryBox using the box's location index and type.
More...
#include <BoundaryBoxUtils.h>
|
| void | computeOutwardShift () |
| | Compute the shift in the outward direction (redundant data, function of boundary box) and store in d_outward. More...
|
| |
template<int DIM>
class SAMRAI::hier::BoundaryBoxUtils< DIM >
- See also
- hier::BoundaryBox
◆ BoundaryBoxUtils() [1/2]
◆ BoundaryBoxUtils() [2/2]
◆ ~BoundaryBoxUtils()
◆ setBoundaryBox()
All utility operations refer to this box.
◆ getBoundaryBox()
All utility operations refer to this box.
◆ getOutwardShift()
Each component of the outward direction will have one of these values:
- -1 if the outward direction is toward the lower indices
- 0 for the direction is orthogonal to the outward direction.
- 1 if the outward direction is toward the higher indices
◆ stretchBoxToGhostWidth()
The number of direction affected is the same as the codimension of the boundary.
Note that the BoundaryBox is defined to be one cell wide. The output of this method is the BoundaryBox, stretched to cover the given ghost cell width. This means that if gcw is one, the output is identical to the BoundaryBox. If the gcw is zero in any direction, the output will shrink to nothing in that direction.
Return the stretched box.
◆ extendBoxOutward()
The number of directions extended is the same as the codimension of the boundary.
Return the extended box.
◆ normalDir()
The normal direction is defined only for surface boundaries (codimension 1). A -1 is returned for all other boundary types.
◆ trimBoundaryBox()
This method affects the only box dimensions parallel to the boundary. For methods affecting other box dimensions, see stretchBoxToGhostWidth().
The boundary type of the BoundaryBox that was given to the BoundaryBoxUtils constructor must be less than DIM.
- Parameters
-
| limit_box | Box to not stick past |
- Returns
- New trimmed boundary box.
◆ getSurfaceBoxFromBoundaryBox()
Define a box describing the indices of the surface of the the input boundary box. A surface is a face in 3D and an edge in 2D. These surfaces lie on the boundary itself.
The input boundary_box must be of type 1 (see hier::BoundaryBox::getBoundaryType()).
This is a utility function for working with the surface indices coresponding to a boundary box.
- Returns
- a box to define the face indices corresponding to boundary_box
◆ computeOutwardShift()
◆ d_bbox
◆ d_outward
The documentation for this class was generated from the following file: