11 #ifndef __Panzer_STK_SetupUtilities_hpp__
12 #define __Panzer_STK_SetupUtilities_hpp__
26 namespace panzer_stk {
38 const std::string & eBlock,
58 const std::string & sideset,
59 const std::string & eBlock,
60 bool useCascade=
false);
77 const std::string & blockid_a,
79 const std::string & blockid_b,
80 const std::string & sideset);
86 const std::string & sideset);
103 const std::string & eblockID,
104 const std::string & sidesetID);
108 namespace workset_utils {
120 template<
typename ArrayT>
123 std::vector<std::size_t>& localIds,
136 template<
typename ArrayT>
139 std::vector<std::size_t>& localIds,
163 const std::string & blockId,
164 const std::vector<stk::mesh::Entity> & entities,
165 std::vector<std::size_t> & localEntityIds,
166 std::vector<stk::mesh::Entity> & elements);
195 const std::string & blockId,
196 const std::vector<stk::mesh::Entity> & entities,
197 std::vector<std::size_t> & localEntityIds,
198 std::vector<stk::mesh::Entity> & elements,
199 std::vector<std::size_t> & missingElementIndices);
221 const std::string & blockId,
222 const std::vector<stk::mesh::Entity> & sides,
223 std::vector<std::size_t> & localSideIds,
224 std::vector<stk::mesh::Entity> & elements);
256 const std::string & blockId_a,
257 const std::string & blockId_b,
258 const std::vector<stk::mesh::Entity> & sides,
259 std::vector<std::size_t> & localSideIds_a,
260 std::vector<stk::mesh::Entity> & elements_a,
261 std::vector<std::size_t> & localSideIds_b,
262 std::vector<stk::mesh::Entity> & elements_b);
284 const std::string & blockId,
285 const std::vector<stk::mesh::Entity> & nodes,
286 std::vector<std::size_t> & localNodeIds,
287 std::vector<stk::mesh::Entity> & elements);
307 const std::string & blockId,
308 const std::vector<stk::mesh::Entity> & sides,
309 std::vector<std::size_t> & localSubcellDim,
310 std::vector<std::size_t> & subcellIds,
311 std::vector<stk::mesh::Entity> & elements);
326 const std::vector<stk::mesh::Entity> & entities,
327 std::vector<std::vector<stk::mesh::Entity> > & subcells);
void getIdsAndVertices(const panzer_stk::STK_Interface &mesh, std::string blockId, std::vector< std::size_t > &localIds, ArrayT &vertices)
void getSubcellEntities(const panzer_stk::STK_Interface &mesh, const std::vector< stk::mesh::Entity > &entities, std::vector< std::vector< stk::mesh::Entity > > &subcells)
Teuchos::RCP< std::vector< panzer::Workset > > buildWorksets(const panzer_stk::STK_Interface &mesh, const std::string &eBlock, const panzer::WorksetNeeds &needs)
void getIdsAndNodes(const panzer_stk::STK_Interface &mesh, std::string blockId, std::vector< std::size_t > &localIds, ArrayT &nodes)
void getSubcellElements(const panzer_stk::STK_Interface &mesh, const std::string &blockId, const std::vector< stk::mesh::Entity > &entities, std::vector< std::size_t > &localEntityIds, std::vector< stk::mesh::Entity > &elements)
Teuchos::RCP< std::map< unsigned, panzer::Workset > > buildBCWorksets(const panzer_stk::STK_Interface &mesh, const panzer::WorksetNeeds &needs_a, const std::string &blockid_a, const panzer::WorksetNeeds &needs_b, const std::string &blockid_b, const std::string &sideset)
void getSideElements(const panzer_stk::STK_Interface &mesh, const std::string &blockId, const std::vector< stk::mesh::Entity > &sides, std::vector< std::size_t > &localSideIds, std::vector< stk::mesh::Entity > &elements)
void getUniversalSubcellElements(const panzer_stk::STK_Interface &mesh, const std::string &blockId, const std::vector< stk::mesh::Entity > &entities, std::vector< std::size_t > &localEntityIds, std::vector< stk::mesh::Entity > &elements, std::vector< std::size_t > &missingElementIndices)
void getSideElementCascade(const panzer_stk::STK_Interface &mesh, const std::string &blockId, const std::vector< stk::mesh::Entity > &sides, std::vector< std::size_t > &localSubcellDim, std::vector< std::size_t > &localSubcellIds, std::vector< stk::mesh::Entity > &elements)
void getNodeElements(const panzer_stk::STK_Interface &mesh, const std::string &blockId, const std::vector< stk::mesh::Entity > &nodes, std::vector< std::size_t > &localNodeIds, std::vector< stk::mesh::Entity > &elements)