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

#include <Panzer_EdgeFieldPattern.hpp>

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

Public Member Functions

 EdgeFieldPattern ()
 
 EdgeFieldPattern (const shards::CellTopology &ct)
 
virtual ~EdgeFieldPattern ()
 Do nothing destructor. More...
 
void setCellTopology (const shards::CellTopology &ct)
 Set the cell topology for this field pattern. More...
 
virtual int getSubcellCount (int dim) const
 
virtual const std::vector< int > & getSubcellIndices (int dim, int cellIndex) const
 
virtual void getSubcellClosureIndices (int dim, int cellIndex, std::vector< int > &indices) const
 
virtual int getDimension () const
 
virtual shards::CellTopology getCellTopology () const
 
- Public Member Functions inherited from panzer::FieldPattern
virtual ~FieldPattern ()=0
 Do nothing destructor. More...
 
virtual int numberIds () const
 
virtual bool sameGeometry (const FieldPattern &fp) const
 
virtual bool consistentSubcells () const
 
virtual void print (std::ostream &os) const
 
virtual bool equals (const FieldPattern &fp) const
 

Public Attributes

shards::CellTopology cellTopo_
 
std::vector< std::vector< int > > edgeIndices_
 
std::vector< int > empty_
 

Detailed Description

A simple field pattern that is useful for guranteeing you can compute orientations.

Definition at line 60 of file Panzer_EdgeFieldPattern.hpp.

Constructor & Destructor Documentation

panzer::EdgeFieldPattern::EdgeFieldPattern ( )
panzer::EdgeFieldPattern::EdgeFieldPattern ( const shards::CellTopology &  ct)

Definition at line 50 of file Panzer_EdgeFieldPattern.cpp.

virtual panzer::EdgeFieldPattern::~EdgeFieldPattern ( )
inlinevirtual

Do nothing destructor.

Definition at line 68 of file Panzer_EdgeFieldPattern.hpp.

Member Function Documentation

void panzer::EdgeFieldPattern::setCellTopology ( const shards::CellTopology &  ct)

Set the cell topology for this field pattern.

Definition at line 55 of file Panzer_EdgeFieldPattern.cpp.

int panzer::EdgeFieldPattern::getSubcellCount ( int  dim) const
virtual

How many sub cells of a particular dimension are there? For instance a "quad" element as four sub cells of dimension 1 (edge type),four sub cells of dimension one (edge type), and one sub cell of dimension two (area type).

Parameters
[in]dimDimension of the sub cell of interest
Returns
Number of sub cells of dimension dim

Implements panzer::FieldPattern.

Definition at line 67 of file Panzer_EdgeFieldPattern.cpp.

const std::vector< int > & panzer::EdgeFieldPattern::getSubcellIndices ( int  dim,
int  cellIndex 
) const
virtual

Get the local indices associated with a particular sub cell. The sub cell is specified through its dimension and cell index. A vector is returned that gives the indices.

Parameters
[in]dimDimension of the sub cell of interest
[in]cellIndexIndex of the sub cell (must be lest than getSubcellCount(dim) and greater than or equal to 0.
Returns
A vector of indices for the specified sub cell.

Implements panzer::FieldPattern.

Definition at line 73 of file Panzer_EdgeFieldPattern.cpp.

void panzer::EdgeFieldPattern::getSubcellClosureIndices ( int  dim,
int  cellIndex,
std::vector< int > &  indices 
) const
virtual

Get the set of indices that are on the sub cell. The ``closure'' means that this set includes indices of all the child sub cells as well.

Parameters
[in]dimDimension of the sub cell of interest
[in]cellIndexIndex of the sub cell (must be lest than getSubcellCount(dim) and greater than or equal to 0.
[out]indicesVector, to be overwritten, containing the closure indices on return.

Implements panzer::FieldPattern.

Definition at line 82 of file Panzer_EdgeFieldPattern.cpp.

int panzer::EdgeFieldPattern::getDimension ( ) const
virtual

What is the dimension of this pattern. For instance a "quad" element is two dimensional. This is a purely geometric quantity.

Implements panzer::FieldPattern.

Definition at line 88 of file Panzer_EdgeFieldPattern.cpp.

virtual shards::CellTopology panzer::EdgeFieldPattern::getCellTopology ( ) const
inlinevirtual

Get the cell topology associated with this field pattern.

Implements panzer::FieldPattern.

Definition at line 117 of file Panzer_EdgeFieldPattern.hpp.

Member Data Documentation

shards::CellTopology panzer::EdgeFieldPattern::cellTopo_

Definition at line 121 of file Panzer_EdgeFieldPattern.hpp.

std::vector<std::vector<int> > panzer::EdgeFieldPattern::edgeIndices_

Definition at line 122 of file Panzer_EdgeFieldPattern.hpp.

std::vector<int> panzer::EdgeFieldPattern::empty_

Definition at line 123 of file Panzer_EdgeFieldPattern.hpp.


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