An abstract base class from which the different embedded boundary analytic shapes used in SAMRAI are derived. It specifies virtual implementations of several functions used to define an analytic embedded boundary shape.
#include <EmbeddedBoundaryShape.h>
◆ EmbeddedBoundaryShape()
The constructor and destructor essentially do nothing.
◆ ~EmbeddedBoundaryShape()
◆ isInside() [1/2]
◆ isInside() [2/2]
Same implementation as above, but instead takes an array of points. Unlike the method above, which returns a boolean for a single point, this method sets an integer for any array of points layed out in a patch. The "nx" argument specifies the dimension of the array of points in DIM directions - it should be an int dimensioned [DIM]. The "dx" argument specifies the grid spacing in each direction - it should be a double dimensioned DIM. The "origin" argument specifies the origin, or lower corner of the patch - it also should be a double dimensioned DIM. From these three pieces of information, the coordinates of all points on the patch can be computed.
The "inout" argument is the returned integer array which will contain a definition of whether each point on the patch is inside (1) or outside (0) the geometry.
- Parameters
-
| nx | integer array [DIM] specifying number of points in each dir |
| dx | double array [DIM] specifying spacing of points in each dir |
| origin | double array [DIM] specifying origin of lower corner |
| inout | int array dimensioned the total number of points (i.e. nx[0]*nx[1]*nx[2]). This is an OUTPUT quantity. |
Reimplemented in SAMRAI::appu::EmbeddedBoundaryShapePolygon< DIM >, and SAMRAI::appu::EmbeddedBoundaryShapeSphere< DIM >.
◆ printClassData()
The documentation for this class was generated from the following file: