Panzer  Version of the Day
Public Member Functions | Private Attributes | List of all members
panzer::CellData Class Reference

Data for determining cell topology and dimensionality. More...

#include <Panzer_CellData.hpp>

Public Member Functions

 CellData ()
 
 CellData (std::size_t num_cells, const Teuchos::RCP< const shards::CellTopology > &ct)
 
 CellData (std::size_t num_cells, int local_side_id, const Teuchos::RCP< const shards::CellTopology > &ct)
 
bool isSide () const
 
int side () const
 
std::size_t numCells () const
 
int baseCellDimension () const
 Dimension of the base cell. NOT the dimension of the local side, even if the side() method returns true. More...
 
Teuchos::RCP< const shards::CellTopology > getCellTopology () const
 Get CellTopology for the base cell. More...
 

Private Attributes

std::size_t m_num_cells
 
bool m_is_side
 
int m_side
 
Teuchos::RCP< const shards::CellTopology > m_cell_topo
 

Detailed Description

Data for determining cell topology and dimensionality.

This class provides information about the finite elements/cells and allows us to reuse all the evaluation machinery for both volume and surface integrations. When performing neumann conditions, we integrate over a side but must still use all basis points from the volume if we need a gradient that contains a normal component to the surface being integrated over.

Definition at line 65 of file Panzer_CellData.hpp.

Constructor & Destructor Documentation

◆ CellData() [1/3]

panzer::CellData::CellData ( )
inlineexplicit

for testing purposes only

Definition at line 70 of file Panzer_CellData.hpp.

◆ CellData() [2/3]

panzer::CellData::CellData ( std::size_t  num_cells,
const Teuchos::RCP< const shards::CellTopology > &  ct 
)
inlineexplicit

Build cell data that uses volume data. CellTopology is on the volume cells!

Definition at line 76 of file Panzer_CellData.hpp.

◆ CellData() [3/3]

panzer::CellData::CellData ( std::size_t  num_cells,
int  local_side_id,
const Teuchos::RCP< const shards::CellTopology > &  ct 
)
inlineexplicit

Build cell data that uses side cells. CellTopology is on the volume cells!

Definition at line 87 of file Panzer_CellData.hpp.

Member Function Documentation

◆ isSide()

bool panzer::CellData::isSide ( ) const
inline

Definition at line 95 of file Panzer_CellData.hpp.

◆ side()

int panzer::CellData::side ( ) const
inline

Definition at line 98 of file Panzer_CellData.hpp.

◆ numCells()

std::size_t panzer::CellData::numCells ( ) const
inline

Definition at line 105 of file Panzer_CellData.hpp.

◆ baseCellDimension()

int panzer::CellData::baseCellDimension ( ) const
inline

Dimension of the base cell. NOT the dimension of the local side, even if the side() method returns true.

Definition at line 109 of file Panzer_CellData.hpp.

◆ getCellTopology()

Teuchos::RCP<const shards::CellTopology> panzer::CellData::getCellTopology ( ) const
inline

Get CellTopology for the base cell.

Definition at line 113 of file Panzer_CellData.hpp.

Member Data Documentation

◆ m_num_cells

std::size_t panzer::CellData::m_num_cells
private

Definition at line 117 of file Panzer_CellData.hpp.

◆ m_is_side

bool panzer::CellData::m_is_side
private

Definition at line 118 of file Panzer_CellData.hpp.

◆ m_side

int panzer::CellData::m_side
private

Definition at line 119 of file Panzer_CellData.hpp.

◆ m_cell_topo

Teuchos::RCP<const shards::CellTopology> panzer::CellData::m_cell_topo
private

Definition at line 122 of file Panzer_CellData.hpp.


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