#include <source/apputils/embedded_boundary/EmbeddedBoundaryShapeSphere.h>
Inheritance diagram for SAMRAI::appu::EmbeddedBoundaryShapeSphere< DIM >:
Public Member Functions | |
EmbeddedBoundaryShapeSphere (const string &object_name, tbox::Pointer< tbox::Database > input_db) | |
~EmbeddedBoundaryShapeSphere () | |
bool | isInside (const double *xyz) const |
void | isInside (const int *nx, const double *dx, const double *origin, int *inout) const |
void | printClassData (ostream &os) const |
The user must specify in the input a "center" and a "radius". An example input entry would look like:
* Shape1 { * type = "SPHERE" * center = 40.0 , 15.0, 15.0 * radius = 5.0 * } *
|
The constructor initializes center and radius to NaN.
|
|
The destructor does nothing. |
|
Concrete implementation of the isInside() method defined by the EmbeddedBoundaryShape base class. This method indicates whether the supplied xyz coordinates are inside or outside of the sphere.
Reimplemented from SAMRAI::appu::EmbeddedBoundaryShape< DIM >. |
|
Concrete implementation of the isInside() method defined by the EmbeddedBoundaryShape base class. This method indicates whether the array of xyz coordinates are inside or outside of the sphere.
Reimplemented from SAMRAI::appu::EmbeddedBoundaryShape< DIM >. |
|
Dump data to supplied stream. Implements SAMRAI::appu::EmbeddedBoundaryShape< DIM >. |