DataTransferKit - Multiphysics Solution Transfer Services
2.0
|
Axis-aligned Cartesian box container implementation. More...
#include <DTK_BoxGeometryImpl.hpp>
Public Member Functions | |
BoxGeometryImpl () | |
Default constructor. More... | |
BoxGeometryImpl (const EntityId global_id, const int owner_rank, const int block_id, const double x_min, const double y_min, const double z_min, const double x_max, const double y_max, const double z_max) | |
Constructor. More... | |
BoxGeometryImpl (const EntityId global_id, const int owner_rank, const int block_id, const Teuchos::Tuple< double, 6 > &bounds) | |
Tuple constructor. More... | |
EntityId | id () const override |
EntityImpl interface. More... | |
int | ownerRank () const override |
Get the parallel rank that owns the entity. More... | |
int | topologicalDimension () const override |
Return the topological dimension of the entity. More... | |
int | physicalDimension () const override |
Return the physical dimension of the entity. More... | |
void | boundingBox (Teuchos::Tuple< double, 6 > &bounds) const override |
Compute the bounding box around the box. More... | |
bool | inBlock (const int block_id) const override |
Determine if an entity is in the block with the given id. More... | |
bool | onBoundary (const int boundary_id) const override |
Determine if an entity is on the boundary with the given id. More... | |
std::string | description () const override |
Provide a one line description of the object. More... | |
void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verb_level) const override |
Provide a verbose description of the object. More... | |
double | measure () const override |
Compute the measure of the box. More... | |
void | centroid (const Teuchos::ArrayView< double > ¢roid) const override |
Get the centroid of the box. More... | |
bool | mapToReferenceFrame (const Teuchos::ArrayView< const double > &point, const Teuchos::ArrayView< double > &reference_point) const override |
Map a point to the reference space of an entity. Return the. More... | |
bool | checkPointInclusion (const double tolerance, const Teuchos::ArrayView< const double > &reference_point) const override |
Determine if a reference point is in the parameterized space of an entity. More... | |
void | mapToPhysicalFrame (const Teuchos::ArrayView< const double > &reference_point, const Teuchos::ArrayView< double > &point) const override |
Map a reference point to the physical space of an entity. More... | |
Public Member Functions inherited from DataTransferKit::BasicGeometryEntityImpl | |
virtual Teuchos::RCP< EntityExtraData > | extraData () const override |
Get the extra data on the entity. More... | |
Public Member Functions inherited from DataTransferKit::EntityImpl | |
EntityImpl () | |
Constructor. More... | |
virtual | ~EntityImpl () |
Destructor. More... | |
Axis-aligned Cartesian box container implementation.
All three dimensions are explictly represented in this bounding box. This is different from a bounding box in that it must always be finite and of a fixed 3 dimensions.
Definition at line 61 of file DTK_BoxGeometryImpl.hpp.
DataTransferKit::BoxGeometryImpl::BoxGeometryImpl | ( | ) |
Default constructor.
Definition at line 50 of file DTK_BoxGeometryImpl.cpp.
DataTransferKit::BoxGeometryImpl::BoxGeometryImpl | ( | const EntityId | global_id, |
const int | owner_rank, | ||
const int | block_id, | ||
const double | x_min, | ||
const double | y_min, | ||
const double | z_min, | ||
const double | x_max, | ||
const double | y_max, | ||
const double | z_max | ||
) |
Constructor.
x_min | Minimum x coordinate value in the box. |
y_min | Minimum y coordinate value in the box. |
z_min | Minimum z coordinate value in the box. |
x_max | Maximum x coordinate value in the box. |
y_max | Maximum y coordinate value in the box. |
z_max | Maximum z coordinate value in the box. |
Definition at line 79 of file DTK_BoxGeometryImpl.cpp.
DataTransferKit::BoxGeometryImpl::BoxGeometryImpl | ( | const EntityId | global_id, |
const int | owner_rank, | ||
const int | block_id, | ||
const Teuchos::Tuple< double, 6 > & | bounds | ||
) |
Tuple constructor.
bounds | Tuple containing {x_min, y_min, z_min, x_max, y_max, z_max}. |
Definition at line 105 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
EntityImpl interface.
Get the unique global identifier for the entity.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 125 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Get the parallel rank that owns the entity.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 129 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Return the topological dimension of the entity.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 133 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Return the physical dimension of the entity.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 137 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Compute the bounding box around the box.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 145 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Determine if an entity is in the block with the given id.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 153 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Determine if an entity is on the boundary with the given id.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 160 of file DTK_BoxGeometryImpl.cpp.
|
inlineoverridevirtual |
Provide a one line description of the object.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 100 of file DTK_BoxGeometryImpl.hpp.
|
overridevirtual |
Provide a verbose description of the object.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 166 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Compute the measure of the box.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 186 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Get the centroid of the box.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 198 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Map a point to the reference space of an entity. Return the.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 210 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Determine if a reference point is in the parameterized space of an entity.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 223 of file DTK_BoxGeometryImpl.cpp.
|
overridevirtual |
Map a reference point to the physical space of an entity.
Implements DataTransferKit::BasicGeometryEntityImpl.
Definition at line 250 of file DTK_BoxGeometryImpl.cpp.