41 #ifndef DTK_CYLINDERGEOMETRYIMPL_HPP 42 #define DTK_CYLINDERGEOMETRYIMPL_HPP 46 #include <Teuchos_ArrayView.hpp> 47 #include <Teuchos_Tuple.hpp> 68 const int block_id,
const double length,
69 const double radius,
const double centroid_x,
70 const double centroid_y,
const double centroid_z );
73 double length()
const {
return d_length; }
76 double radius()
const {
return d_radius; }
91 void boundingBox( Teuchos::Tuple<double, 6> &bounds )
const override;
94 bool inBlock(
const int block_id )
const override;
97 bool onBoundary(
const int boundary_id )
const override;
102 return std::string(
"Basic Geometry CylinderGeometry" );
106 void describe( Teuchos::FancyOStream &out,
107 const Teuchos::EVerbosityLevel verb_level )
const override;
110 double measure()
const override;
118 const Teuchos::ArrayView<const double> &point,
119 const Teuchos::ArrayView<double> &reference_point )
const override;
124 const Teuchos::ArrayView<const double>
125 &reference_point )
const override;
129 const Teuchos::ArrayView<const double> &reference_point,
130 const Teuchos::ArrayView<double> &point )
const override;
162 #endif // end DTK_CYLINDERGEOMETRYIMPL_HPP 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.
double radius() const
Get the radius of the cylinder.
BasicGeometryEntityImpl interface.
double length() const
Get the length of the cylinder.
BasicGeometryEntityImpl declaration.
EntityId id() const override
EntityImpl interface.
std::string description() const override
Provide a one line description of the object.
bool inBlock(const int block_id) const override
Determine if an entity is in the block with the given id.
CylinderGeometryImpl()
Default constructor.
Z-axis-aligned Cartesian cylinder container implementation.
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.
double measure() const override
Compute the measure of the box.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verb_level) const override
Provide a verbose description of the object.
int ownerRank() const override
Get the parallel rank that owns the entity.
unsigned long int EntityId
Entity id type.
bool onBoundary(const int boundary_id) const override
Determine if an entity is on the boundary with the given id.
void centroid(const Teuchos::ArrayView< double > ¢roid) const override
Get the centroid of the box.
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.
void boundingBox(Teuchos::Tuple< double, 6 > &bounds) const override
Compute the bounding box around the box.
int topologicalDimension() const override
Return the topological dimension of the entity.
int physicalDimension() const override
Return the physical dimension of the entity.