41 #include "DTK_BasicGeometryLocalMap.hpp" 43 #include "DTK_BasicGeometryExtraData.hpp" 51 : d_inclusion_tol( 1.0e-6 )
57 void BasicGeometryLocalMap::setParameters(
58 const Teuchos::ParameterList ¶meters )
60 if ( parameters.isParameter(
"Point Inclusion Tolerance" ) )
62 d_inclusion_tol = parameters.get<
double>(
"Point Inclusion Tolerance" );
73 ->implementationConstPtr()
80 const Entity &entity,
const Teuchos::ArrayView<double> &
centroid )
const 83 ->implementationConstPtr()
84 ->centroid( centroid );
92 const Teuchos::ArrayView<const double> &physical_point,
93 const Teuchos::ArrayView<double> &reference_point )
const 97 ->implementationConstPtr()
98 ->mapToReferenceFrame( physical_point, reference_point );
105 const Teuchos::ArrayView<const double> &reference_point )
const 109 ->implementationConstPtr()
110 ->checkPointInclusion( d_inclusion_tol, reference_point );
117 const Teuchos::ArrayView<const double> &reference_point,
118 const Teuchos::ArrayView<double> &physical_point )
const 121 ->implementationConstPtr()
122 ->mapToPhysicalFrame( reference_point, physical_point );
Geometric entity interface definition.
BasicGeometryLocalMap()
Constructor.
void mapToPhysicalFrame(const Entity &entity, const Teuchos::ArrayView< const double > &reference_point, const Teuchos::ArrayView< double > &physical_point) const override
(Forward Map) Map a reference point to the physical space of an entity.
void centroid(const Entity &entity, const Teuchos::ArrayView< double > ¢roid) const override
Return the centroid of the entity.
double measure(const Entity &entity) const override
Return the entity measure with respect to the parameteric dimension (volume for a 3D entity...
bool mapToReferenceFrame(const Entity &entity, const Teuchos::ArrayView< const double > &physical_point, const Teuchos::ArrayView< double > &reference_point) const override
(Reverse Map) Map a point to the reference space of an entity. Return the parameterized point...
BasicGeometryEntity declaration.
Assertions and Design-by-Contract for error handling.
Teuchos::RCP< EntityExtraData > extraData() const
Get the extra data on the entity. This is a convenient helper for implementing the other interfaces...
bool checkPointInclusion(const Entity &entity, const Teuchos::ArrayView< const double > &reference_point) const override
Determine if a reference point is in the parameterized space of an entity.