41 #ifndef DTK_STKMESHHELPERS_HPP 42 #define DTK_STKMESHHELPERS_HPP 46 #include "DTK_Entity.hpp" 47 #include "DTK_Types.hpp" 49 #include <Teuchos_Array.hpp> 50 #include <Teuchos_ParameterList.hpp> 52 #include <Shards_CellTopology.hpp> 54 #include <Intrepid_FieldContainer.hpp> 56 #include <stk_mesh/base/BulkData.hpp> 57 #include <stk_mesh/base/Entity.hpp> 58 #include <stk_mesh/base/EntityKey.hpp> 79 static stk::mesh::EntityRank
87 const int space_dim );
97 static shards::CellTopology
99 const stk::mesh::BulkData &bulk_data );
106 const Teuchos::Array<stk::mesh::Entity> &stk_entities,
107 const stk::mesh::BulkData &bulk_data );
115 template <
class FieldType>
116 static Intrepid::FieldContainer<double> extractEntityNodeCoordinates(
117 const Teuchos::Array<stk::mesh::Entity> &stk_entities,
118 const stk::mesh::BulkData &bulk_data,
const int space_dim );
129 #include "DTK_STKMeshHelpers_impl.hpp" 133 #endif // end DTK_STKMESHHELPERS_HPP static Intrepid::FieldContainer< double > getEntityNodeCoordinates(const Teuchos::Array< stk::mesh::Entity > &stk_entities, const stk::mesh::BulkData &bulk_data)
Given a STK entity, return the coordinates of its nodes in a field container ordered by canonical nod...
Geometric entity interface definition.
static const stk::mesh::Entity & extractEntity(const Entity dtk_entity)
Given a DTK entity, extract the STK entity.
static int getTopologicalDimensionFromRank(const stk::mesh::EntityRank stk_rank, const int space_dim)
Given a STK entity rank, get the topological dimension.
static stk::mesh::EntityKey getKeyFromEntity(const Entity dtk_entity)
Given a DTK entity, return the corresponding STK entity key.
static shards::CellTopology getShardsTopology(const stk::mesh::Entity stk_entity, const stk::mesh::BulkData &bulk_data)
Given a STK entity, return its shards topology.
static stk::mesh::EntityRank getRankFromTopologicalDimension(const int topo_dim, const int space_dim)
Given a topological dimension, get the STK entity rank.
A stateless class of helpers for STK mesh.