Panzer
Version of the Day
|
Functions | |
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) |
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 | 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 | getSideElements (const panzer_stk::STK_Interface &mesh, const std::string &blockId_a, const std::string &blockId_b, const std::vector< stk::mesh::Entity > &sides, std::vector< std::size_t > &localSideIds_a, std::vector< stk::mesh::Entity > &elements_a, std::vector< std::size_t > &localSideIds_b, std::vector< stk::mesh::Entity > &elements_b) |
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 | getSubcellEntities (const panzer_stk::STK_Interface &mesh, const std::vector< stk::mesh::Entity > &entities, std::vector< std::vector< stk::mesh::Entity > > &subcells) |
template<typename ArrayT > | |
void | getIdsAndVertices (const panzer_stk::STK_Interface &mesh, std::string blockId, std::vector< std::size_t > &localIds, ArrayT &vertices) |
void panzer_stk::workset_utils::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 | ||
) |
This function loops over the passed in set of entities and looks at their related elements. It is then determined which elements belong in the requested element block, and what the local ID of the entitiy is.
[in] | mesh | STK mesh interface |
[in] | blockId | Requested element block identifier |
[in] | entities | Set of subcell entities where there is assumed part membership (induced or not) in the requested element block. |
[out] | localEntityIds | On output this will contain the local entity ids. Assumed that on input entities.size()==0 |
[out] | elements | On output this will contain the elements associated with each entity in the requested block. Assumed that on input elements.size()==0 |
[in] | onProcOnly | Only return the elements owned by this processor |
Definition at line 360 of file Panzer_STK_SetupUtilities.cpp.
void panzer_stk::workset_utils::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 | ||
) |
This function loops over the passed in set of entities and looks at their related elements. It is then determined which elements belong in the requested element block, and what the local ID of the entitiy is. This will return both local and ghosted entities.
[in] | mesh | STK mesh interface |
[in] | blockId | Requested element block identifier |
[in] | entities | Set of subcell entities where there is assumed part membership (induced or not) in the requested element block. |
[out] | localEntityIds | On output this will contain the local entity ids. Assumed that on input entities.size()==0 |
[out] | elements | On output this will contain the elements associated with each entity in the requested block. Assumed that on input elements.size()==0 |
Definition at line 397 of file Panzer_STK_SetupUtilities.cpp.
void panzer_stk::workset_utils::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 > & | subcellIds, | ||
std::vector< stk::mesh::Entity > & | elements | ||
) |
This function builds the "element cascade" contained within a specfied element block. That is given a set of "sides" extract all elements that live in the block and touch those sides on a node, edge or face. It returns the local sub cell index and sub cell dimension.
[in] | \param[in] | mesh STK mesh interface |
[in] | blockId | Requested element block identifier |
[in] | sides | Set of sides (entities of dimension-1) where there is assumed part membership (induced or not) in the requested element block. |
[out] | subcellDim | On output this will contain the subcell dimensions. |
[out] | localSubcellIds | On output this will contain the local subcell ids. |
[out] | elements | On output this will contain the elements associated with each subcell in the requested block. Assumed that on input elements.size()==0 |
Definition at line 434 of file Panzer_STK_SetupUtilities.cpp.
void panzer_stk::workset_utils::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 | ||
) |
This function loops over the passed in set of "Sides" and looks at there related elements. It is then determined which elements belong in the requested element block, and what the local ID of the side is.
[in] | mesh | STK mesh interface |
[in] | blockId | Requested element block identifier |
[in] | sides | Set of sides (entities of dimension-1) where there is assumed part membership (induced or not) in the requested element block. |
[out] | localSideIds | On output this will contain the local side ids. Assumed that on input sides.size()==0 |
[out] | elements | On output this will contain the elements associated with each side in the requested block. Assumed that on input elements.size()==0 |
Definition at line 470 of file Panzer_STK_SetupUtilities.cpp.
void panzer_stk::workset_utils::getSideElements | ( | const panzer_stk::STK_Interface & | mesh, |
const std::string & | blockId_a, | ||
const std::string & | blockId_b, | ||
const std::vector< stk::mesh::Entity > & | sides, | ||
std::vector< std::size_t > & | localSideIds_a, | ||
std::vector< stk::mesh::Entity > & | elements_a, | ||
std::vector< std::size_t > & | localSideIds_b, | ||
std::vector< stk::mesh::Entity > & | elements_b | ||
) |
This function loops over the passed in set of "Sides" and looks at there related elements. It is then determined which elements belong in the requested element block, and what the local ID of the side is. This version is for sides where you want elements that live in two element blocks. The "a" elements are required to be owned, the "b" elements maybe ghosted.
[in] | mesh | STK mesh interface |
[in] | blockId_a | Requested element block identifier (owned only) |
[in] | blockId_b | Requested element block identifier (owned and ghosted) |
[in] | sides | Set of sides (entities of dimension-1) where there is assumed part membership (induced or not) in the requested element block. |
[out] | localSideIds_a | On output this will contain the local side ids for elements in block "a". Assumed that on input sides.size()==0 |
[out] | elements_a | On output this will contain the elements associated with each side in the "a" block. Assumed that on input elements.size()==0 |
[out] | localSideIds_b | On output this will contain the local side ids for elements in block "b". Assumed that on input sides.size()==0 |
[out] | elements_b | On output this will contain the elements associated with each side in the "b" block. Assumed that on input elements.size()==0 |
Definition at line 479 of file Panzer_STK_SetupUtilities.cpp.
void panzer_stk::workset_utils::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 | ||
) |
This function loops over the passed in set of "Nodes" and looks at there related elements. It is then determined which elements belong in the requested element block, and what the local ID of the node is.
[in] | mesh | STK mesh interface |
[in] | blockId | Requested element block identifier |
[in] | nodes | Set of nodes (entities of dimension 0) where there is assumed part membership (induced or not) in the requested element block. |
[out] | localNodeIds | On output this will contain the local node ids. Assumed that on input node.size()==0 |
[out] | elements | On output this will contain the elements associated with each node in the requested block. Assumed that on input elements.size()==0 |
Definition at line 542 of file Panzer_STK_SetupUtilities.cpp.
void panzer_stk::workset_utils::getSubcellEntities | ( | const panzer_stk::STK_Interface & | mesh, |
const std::vector< stk::mesh::Entity > & | entities, | ||
std::vector< std::vector< stk::mesh::Entity > > & | subcells | ||
) |
Get all the subcells that are contained within the list of entities. The resulting vector is organized by dimension and it is guranteed that no entity is included more then once.
[in] | mesh | STK mesh interface |
[in] | entities | Set of entities of the same dimension, these the parent entities whose subcells are extracted. |
[out] | subcells | Set of subcells catoragized by dimension. The first index is the physical dimension. Each entity in the vector will be unique. Note that this vector is clear ed at the beginning of this method. |
Definition at line 551 of file Panzer_STK_SetupUtilities.cpp.
void panzer_stk::workset_utils::getIdsAndVertices | ( | const panzer_stk::STK_Interface & | mesh, |
std::string | blockId, | ||
std::vector< std::size_t > & | localIds, | ||
ArrayT & | vertices | ||
) |
Get vertices and local cell IDs of a paricular element block.
[in] | mesh | Reference to STK_Interface object |
[in] | blockId | Element block identifier string |
[out] | localIds | On processor local element IDs for the element block |
[out] | vertices | Abstract array type (requires resize) containing the coordinates of the vertices. Of size (#Cells, #Vertices, #Dim). |
Definition at line 50 of file Panzer_STK_SetupUtilities_impl.hpp.