43 #ifndef __Panzer_STK_SetupUtilities_hpp__
44 #define __Panzer_STK_SetupUtilities_hpp__
58 namespace panzer_stk {
70 const std::string & eBlock,
90 const std::string & sideset,
91 const std::string & eBlock,
92 bool useCascade=
false);
109 const std::string & blockid_a,
111 const std::string & blockid_b,
112 const std::string & sideset);
118 const std::string & sideset);
135 const std::string & eblockID,
136 const std::string & sidesetID);
140 namespace workset_utils {
150 template<
typename ArrayT>
153 std::vector<std::size_t>& localIds,
177 const std::string & blockId,
178 const std::vector<stk::mesh::Entity> & entities,
179 std::vector<std::size_t> & localEntityIds,
180 std::vector<stk::mesh::Entity> & elements);
202 const std::string & blockId,
203 const std::vector<stk::mesh::Entity> & entities,
204 std::vector<std::size_t> & localEntityIds,
205 std::vector<stk::mesh::Entity> & elements);
227 const std::string & blockId,
228 const std::vector<stk::mesh::Entity> & sides,
229 std::vector<std::size_t> & localSideIds,
230 std::vector<stk::mesh::Entity> & elements);
262 const std::string & blockId_a,
263 const std::string & blockId_b,
264 const std::vector<stk::mesh::Entity> & sides,
265 std::vector<std::size_t> & localSideIds_a,
266 std::vector<stk::mesh::Entity> & elements_a,
267 std::vector<std::size_t> & localSideIds_b,
268 std::vector<stk::mesh::Entity> & elements_b);
290 const std::string & blockId,
291 const std::vector<stk::mesh::Entity> & nodes,
292 std::vector<std::size_t> & localNodeIds,
293 std::vector<stk::mesh::Entity> & elements);
313 const std::string & blockId,
314 const std::vector<stk::mesh::Entity> & sides,
315 std::vector<std::size_t> & localSubcellDim,
316 std::vector<std::size_t> & subcellIds,
317 std::vector<stk::mesh::Entity> & elements);
332 const std::vector<stk::mesh::Entity> & entities,
333 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 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)
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)