DataTransferKit - Multiphysics Solution Transfer Services
2.0
|
STK mesh forward and reverse local map implementation. More...
#include <DTK_STKMeshEntityLocalMap.hpp>
Public Member Functions | |
STKMeshEntityLocalMap (const Teuchos::RCP< stk::mesh::BulkData > &bulk_data) | |
Constructor. More... | |
double | measure (const Entity &entity) const override |
Return the entity measure with respect to the parameteric dimension (volume for a 3D entity, area for 2D, and length for 1D). More... | |
void | centroid (const Entity &entity, const Teuchos::ArrayView< double > ¢roid) const override |
Return the centroid of the entity. More... | |
bool | isSafeToMapToReferenceFrame (const Entity &entity, const Teuchos::ArrayView< const double > &physical_point) const override |
(Safeguard the reverse map) Perform a safeguard check for mapping a point to the reference space of an entity using the given tolerance. More... | |
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. More... | |
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. More... | |
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. More... | |
void | normalAtReferencePoint (const Entity &entity, const Entity &parent_entity, const Teuchos::ArrayView< const double > &reference_point, const Teuchos::ArrayView< double > &normal) const override |
Compute the normal on a face (3D) or edge (2D) at a given reference point. A default implementation is provided using a finite difference scheme. More... | |
Public Member Functions inherited from DataTransferKit::EntityLocalMap | |
EntityLocalMap () | |
Constructor. More... | |
virtual | ~EntityLocalMap () |
Destructor. More... | |
STK mesh forward and reverse local map implementation.
Definition at line 65 of file DTK_STKMeshEntityLocalMap.hpp.
DataTransferKit::STKMeshEntityLocalMap::STKMeshEntityLocalMap | ( | const Teuchos::RCP< stk::mesh::BulkData > & | bulk_data | ) |
Constructor.
Definition at line 58 of file DTK_STKMeshEntityLocalMap.cpp.
|
overridevirtual |
Return the entity measure with respect to the parameteric dimension (volume for a 3D entity, area for 2D, and length for 1D).
entity | Compute the measure for this entity. |
Implements DataTransferKit::EntityLocalMap.
Definition at line 79 of file DTK_STKMeshEntityLocalMap.cpp.
|
overridevirtual |
Return the centroid of the entity.
centroid | A view of the centroid coordinates. This view will be allocated. Assign a view of your centroid to this view. |
Implements DataTransferKit::EntityLocalMap.
Definition at line 119 of file DTK_STKMeshEntityLocalMap.cpp.
|
overridevirtual |
(Safeguard the reverse map) Perform a safeguard check for mapping a point to the reference space of an entity using the given tolerance.
entity | Perfrom the mapping for this entity. |
parameters | Parameters to be used for the safeguard check. |
point | A view into an array of size physicalDimension() containing the coordinates of the point to map. |
Reimplemented from DataTransferKit::EntityLocalMap.
Definition at line 167 of file DTK_STKMeshEntityLocalMap.cpp.
|
overridevirtual |
(Reverse Map) Map a point to the reference space of an entity. Return the parameterized point.
entity | Perfrom the mapping for this entity. |
parameters | Parameters to be used for the mapping procedure. |
A | view into an array of size physicalDimension() containing the coordinates of the point to map. |
reference_point | A view into an array of size physicalDimension() to write the reference coordinates of the mapped point. |
Implements DataTransferKit::EntityLocalMap.
Definition at line 207 of file DTK_STKMeshEntityLocalMap.cpp.
|
overridevirtual |
Determine if a reference point is in the parameterized space of an entity.
entity | Perfrom the mapping for this entity. |
parameters | Parameters to be used for the point inclusion check. |
reference_point | A view into an array of size physicalDimension() containing the reference coordinates of the mapped point. |
Implements DataTransferKit::EntityLocalMap.
Definition at line 252 of file DTK_STKMeshEntityLocalMap.cpp.
|
overridevirtual |
(Forward Map) Map a reference point to the physical space of an entity.
entity | Perfrom the mapping for this entity. |
reference_point | A view into an array of size physicalDimension() containing the reference coordinates of the mapped point. |
A | view into an array of size physicalDimension() to write the coordinates of physical point. |
Implements DataTransferKit::EntityLocalMap.
Definition at line 291 of file DTK_STKMeshEntityLocalMap.cpp.
|
overridevirtual |
Compute the normal on a face (3D) or edge (2D) at a given reference point. A default implementation is provided using a finite difference scheme.
entity | Compute the normal for this entity. |
parent_entity | The adjacent parent entity used to determine which direction is outward. The parent entity should be of a higher topological dimension than the entity and be adjacent to the entity. |
reference_point | Compute the normal at this reference point. |
normal | A view into an array of size physicalDimension() to write the normal. |
Reimplemented from DataTransferKit::EntityLocalMap.
Definition at line 331 of file DTK_STKMeshEntityLocalMap.cpp.