Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_STK_SetupUtilities.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Panzer: A partial differential equation assembly
4// engine for strongly coupled complex multiphysics systems
5//
6// Copyright 2011 NTESS and the Panzer contributors.
7// SPDX-License-Identifier: BSD-3-Clause
8// *****************************************************************************
9// @HEADER
10
11#ifndef __Panzer_STK_SetupUtilities_hpp__
12#define __Panzer_STK_SetupUtilities_hpp__
13
15
16
17#include "Panzer_Workset.hpp"
19
20#include "Teuchos_RCP.hpp"
21
22#include <vector>
23#include <map>
24#include <string>
25
26namespace panzer_stk {
27
36Teuchos::RCP<std::vector<panzer::Workset> >
38 const std::string & eBlock,
39 const panzer::WorksetNeeds & needs);
40
55Teuchos::RCP<std::vector<panzer::Workset> >
57 const panzer::WorksetNeeds & needs,
58 const std::string & sideset,
59 const std::string & eBlock,
60 bool useCascade=false);
61
74Teuchos::RCP<std::map<unsigned,panzer::Workset> >
76 const panzer::WorksetNeeds & needs_a,
77 const std::string & blockid_a,
78 const panzer::WorksetNeeds & needs_b,
79 const std::string & blockid_b,
80 const std::string & sideset);
81
82// TODO: ROGER This looks to be a duplicate of the one above. CAn probably be removed!
84Teuchos::RCP<std::map<unsigned,panzer::Workset> >
86 const panzer::WorksetNeeds & needs_a,const std::string & eblock_a,
87 const panzer::WorksetNeeds & needs_b,const std::string & eblock_b,
88 const std::string & sideset);
89
102Teuchos::RCP<std::map<unsigned,panzer::Workset> >
104 const panzer::WorksetNeeds & needs,
105 const std::string & eblockID,
106 const std::string & sidesetID);
107
108// namespace may not be neccssary in the future, currently avoids
109// collisions with previously implemented code in tests
110namespace workset_utils {
111
113
122template<typename ArrayT>
124 std::string blockId,
125 std::vector<std::size_t>& localIds,
126 ArrayT& vertices);
127
129
138template<typename ArrayT>
140 std::string blockId,
141 std::vector<std::size_t>& localIds,
142 ArrayT& nodes);
143
165 const std::string & blockId,
166 const std::vector<stk::mesh::Entity> & entities,
167 std::vector<std::size_t> & localEntityIds,
168 std::vector<stk::mesh::Entity> & elements);
169
197 const std::string & blockId,
198 const std::vector<stk::mesh::Entity> & entities,
199 std::vector<std::size_t> & localEntityIds,
200 std::vector<stk::mesh::Entity> & elements,
201 std::vector<std::size_t> & missingElementIndices);
202
223 const std::string & blockId,
224 const std::vector<stk::mesh::Entity> & sides,
225 std::vector<std::size_t> & localSideIds,
226 std::vector<stk::mesh::Entity> & elements);
227
258 const std::string & blockId_a,
259 const std::string & blockId_b,
260 const std::vector<stk::mesh::Entity> & sides,
261 std::vector<std::size_t> & localSideIds_a,
262 std::vector<stk::mesh::Entity> & elements_a,
263 std::vector<std::size_t> & localSideIds_b,
264 std::vector<stk::mesh::Entity> & elements_b);
265
286 const std::string & blockId,
287 const std::vector<stk::mesh::Entity> & nodes,
288 std::vector<std::size_t> & localNodeIds,
289 std::vector<stk::mesh::Entity> & elements);
290
309 const std::string & blockId,
310 const std::vector<stk::mesh::Entity> & sides,
311 std::vector<std::size_t> & localSubcellDim,
312 std::vector<std::size_t> & subcellIds,
313 std::vector<stk::mesh::Entity> & elements);
314
328 const std::vector<stk::mesh::Entity> & entities,
329 std::vector<std::vector<stk::mesh::Entity> > & subcells);
330
331}
332}
333
335
336#endif
void getIdsAndNodes(const panzer_stk::STK_Interface &mesh, std::string blockId, std::vector< std::size_t > &localIds, ArrayT &nodes)
void getIdsAndVertices(const panzer_stk::STK_Interface &mesh, std::string blockId, std::vector< std::size_t > &localIds, ArrayT &vertices)
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 getSubcellEntities(const panzer_stk::STK_Interface &mesh, const std::vector< stk::mesh::Entity > &entities, std::vector< std::vector< stk::mesh::Entity > > &subcells)
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)
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 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::vector< panzer::Workset > > buildWorksets(const panzer_stk::STK_Interface &mesh, const std::string &eBlock, const panzer::WorksetNeeds &needs)
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)