Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
panzer::ConnManager Class Referenceabstract

Pure virtual base class for supplying mesh connectivity information to the DOF Manager. More...

#include <Panzer_ConnManager.hpp>

Inheritance diagram for panzer::ConnManager:
Inheritance graph
[legend]

Public Types

using GlobalOrdinal = panzer::GlobalOrdinal
 
using LocalOrdinal = int
 

Public Member Functions

virtual ~ConnManager ()
 
virtual void buildConnectivity (const FieldPattern &fp)=0
 
virtual Teuchos::RCP< ConnManagernoConnectivityClone () const =0
 
virtual LocalOrdinal getConnectivitySize (LocalOrdinal localElmtId) const =0
 
virtual const GlobalOrdinalgetConnectivity (LocalOrdinal localElmtId) const =0
 
virtual std::string getBlockId (LocalOrdinal localElmtId) const =0
 
virtual std::size_t numElementBlocks () const =0
 
virtual void getElementBlockIds (std::vector< std::string > &elementBlockIds) const =0
 
virtual void getElementBlockTopologies (std::vector< shards::CellTopology > &elementBlockTopologies) const =0
 
virtual const std::vector
< LocalOrdinal > & 
getElementBlock (const std::string &blockID) const =0
 
virtual const std::vector
< LocalOrdinal > & 
getNeighborElementBlock (const std::string &blockID) const =0
 
virtual const std::vector
< LocalOrdinal > & 
getAssociatedNeighbors (const LocalOrdinal &el) const =0
 
virtual bool hasAssociatedNeighbors () const =0
 

Detailed Description

Pure virtual base class for supplying mesh connectivity information to the DOF Manager.

Definition at line 26 of file Panzer_ConnManager.hpp.

Member Typedef Documentation

using panzer::ConnManager::GlobalOrdinal = panzer::GlobalOrdinal

Definition at line 29 of file Panzer_ConnManager.hpp.

Definition at line 30 of file Panzer_ConnManager.hpp.

Constructor & Destructor Documentation

virtual panzer::ConnManager::~ConnManager ( )
inlinevirtual

Definition at line 32 of file Panzer_ConnManager.hpp.

Member Function Documentation

virtual void panzer::ConnManager::buildConnectivity ( const FieldPattern fp)
pure virtual

Tell the connection manager to build the connectivity assuming a particular field pattern.

Parameters
[in]fpField pattern to build connectivity for

Implemented in panzer_stk::STKConnManager.

virtual Teuchos::RCP<ConnManager> panzer::ConnManager::noConnectivityClone ( ) const
pure virtual

Build a clone of this connection manager, without any assumptions about the required connectivity (i.e. buildConnectivity has never been called).

Implemented in panzer_stk::STKConnManager.

virtual LocalOrdinal panzer::ConnManager::getConnectivitySize ( LocalOrdinal  localElmtId) const
pure virtual

How many mesh IDs are associated with this element?

Parameters
[in]localElmtIdLocal element ID
Returns
Number of mesh IDs that are associated with this element.

Implemented in panzer_stk::STKConnManager.

virtual const GlobalOrdinal* panzer::ConnManager::getConnectivity ( LocalOrdinal  localElmtId) const
pure virtual

Get ID connectivity for a particular element

Parameters
[in]localElmtIdLocal element ID
Returns
Pointer to beginning of indices, with total size equal to getConnectivitySize(localElmtId)

Implemented in panzer_stk::STKConnManager.

virtual std::string panzer::ConnManager::getBlockId ( LocalOrdinal  localElmtId) const
pure virtual

Get the block ID for a particular element.

Parameters
[in]localElmtIdLocal element ID

Implemented in panzer_stk::STKConnManager.

virtual std::size_t panzer::ConnManager::numElementBlocks ( ) const
pure virtual

Returns the number of element blocks in this mesh

Implemented in panzer_stk::STKConnManager.

virtual void panzer::ConnManager::getElementBlockIds ( std::vector< std::string > &  elementBlockIds) const
pure virtual

What are the blockIds included in this connection manager

Implemented in panzer_stk::STKConnManager.

virtual void panzer::ConnManager::getElementBlockTopologies ( std::vector< shards::CellTopology > &  elementBlockTopologies) const
pure virtual

Returns the cellTopologies linked to element blocks in this connection manager

Implemented in panzer_stk::STKConnManager.

virtual const std::vector<LocalOrdinal>& panzer::ConnManager::getElementBlock ( const std::string &  blockID) const
pure virtual

Get the local element IDs for a paricular element block.

Parameters
[in]blockIDBlock ID
Returns
Vector of local element IDs.

Implemented in panzer_stk::STKConnManager.

virtual const std::vector<LocalOrdinal>& panzer::ConnManager::getNeighborElementBlock ( const std::string &  blockID) const
pure virtual

Get the local element IDs for all "neighbor" elements that reside in a paricular element block (An element is a neighbor if it is in the one ring of owned elements).

Parameters
[in]blockIDBlock ID
Returns
Vector of local element IDs.

Implemented in panzer_stk::STKConnManager.

virtual const std::vector<LocalOrdinal>& panzer::ConnManager::getAssociatedNeighbors ( const LocalOrdinal el) const
pure virtual

Get elements, if any, associated with el, excluding el itself.

Implemented in panzer_stk::STKConnManager.

virtual bool panzer::ConnManager::hasAssociatedNeighbors ( ) const
pure virtual

Return whether getAssociatedNeighbors will return true for at least one input.

Implemented in panzer_stk::STKConnManager.


The documentation for this class was generated from the following file: