Enumerations | Functions
Cell Type Description

Enumerations

enum  Sundance::CellType {
  Sundance::NullCell, Sundance::PointCell, Sundance::LineCell, Sundance::TriangleCell,
  Sundance::TetCell, Sundance::QuadCell, Sundance::BrickCell, Sundance::PrismCell
}
 Enumeration of specific 1D, 2D, and 3D cell types. More...

Functions

std::string Sundance::toString (const CellType &c)
 Return a std::string representation of the cell type.
int Sundance::dimension (const CellType &c)
 Return the dimension of the cell type.
int Sundance::numFacets (const CellType &c, int facetDim)
 Return the number of faces of a given facet dimension for a cell type.
CellType Sundance::facetType (const CellType &cellType, int facetDim, int facetIndex)
std::ostream & Sundance::operator<< (std::ostream &os, const CellType &c)
 output stream operator for CellType.

Enumeration Type Documentation

Enumeration of specific 1D, 2D, and 3D cell types.

See the implementation of the nonmember functions dimension(), numFacets(), and facetType() a full description of what these cell types are.

ToDo: Consider making CellType an abstract base class so that any type of cell can be implemented?

Enumerator:
NullCell 

No cell specified.

PointCell 

0D vertex cell

LineCell 

1D line, or edge, cell

TriangleCell 

2D triangle

TetCell 

3D tetrahedral cell

QuadCell 

2D quadrilateral cell

BrickCell 

3D "brick" cell

PrismCell 

3D prism cell

Definition at line 64 of file SundanceCellType.hpp.


Function Documentation

int Sundance::dimension ( const CellType cellType)
CellType Sundance::facetType ( const CellType c,
int  facetDim,
int  facetIndex 
)
Returns:
Return the type of facet of a given facet dimension and a particualar facet.
Parameters:
c[in] Cell type
facetDim[in] The dimension of the facet type requested
facetIndex[in] The particualar index of the facet as defined by the convension of the cell type (which is actually partially defined in this function).

Preconditions:

  • facetDim <= dimension(c)
  • 0 <= facetIndex < numFacets(c,facetDim)

Definition at line 132 of file SundanceCellType.cpp.

References Sundance::BrickCell, Sundance::dimension(), Sundance::LineCell, Sundance::NullCell, Sundance::PointCell, Sundance::PrismCell, Sundance::QuadCell, Sundance::TetCell, Sundance::toString(), and Sundance::TriangleCell.

int Sundance::numFacets ( const CellType c,
int  facetDim 
)
std::ostream& Sundance::operator<< ( std::ostream &  os,
const CellType &  c 
) [inline]

output stream operator for CellType.

Definition at line 126 of file SundanceCellType.hpp.

References Sundance::toString().

std::string Sundance::toString ( const CellType cellType)

Return a std::string representation of the cell type.

Definition at line 51 of file SundanceCellType.cpp.

References Sundance::BrickCell, Sundance::LineCell, Sundance::NullCell, Sundance::PointCell, Sundance::PrismCell, Sundance::QuadCell, Sundance::TetCell, and Sundance::TriangleCell.

Referenced by Sundance::EvalVector::add_S(), Sundance::EvalVector::add_SV(), Sundance::EvalVector::add_SVV(), Sundance::Assembler::assemblyLoop(), Sundance::BamgMeshReader::BamgMeshReader(), Sundance::DefaultIterCallback::call(), Sundance::BasicSimplicialMesh::cellStr(), Sundance::Mesh::checkConsistency(), Sundance::Mesh::checkVertexConsistency(), Sundance::NLOp::computeSensitivities(), Sundance::ExtrusionMeshTransformation::description(), Sundance::GaussianQuadrature::description(), Sundance::FeketeQuadrature::description(), Sundance::TrapesoidQuadrature::description(), Sundance::GaussLobattoQuadrature::description(), Sundance::PolygonQuadrature::description(), Sundance::PartitionedLineMesher::description(), Sundance::SurfQuadrature::description(), Sundance::PeanoMesher2D::description(), Sundance::QuadratureFamilyStub::description(), Sundance::PeanoMesher3D::description(), Sundance::PartitionedRectangleMesher::description(), Sundance::Lagrange::description(), Sundance::BoundedDomain::description(), Sundance::HNMesher2D::description(), Sundance::HNMesher3D::description(), Sundance::LowerBoundedDomain::description(), Sundance::ExodusMeshReader::ExodusMeshReader(), Sundance::facetType(), Sundance::QuadratureFamily::getAdaptedWeights(), Sundance::QuadratureFamily::getPoints(), Sundance::DiscreteFuncElementEvaluator::hasMultiIndex(), Sundance::L2Projector::init(), Sundance::ExplicitFunctionalDerivativeElement::internalDetermineR(), Sundance::DiscreteFuncElement::internalDetermineR(), Sundance::SymbolicFuncElement::internalDetermineR(), Sundance::ExprWithChildren::internalDetermineR(), Sundance::EvaluatableExpr::internalDetermineR(), Sundance::ExplicitFunctionalDerivativeElement::internalFindC(), Sundance::ExplicitFunctionalDerivativeElement::internalFindV(), Sundance::ExplicitFunctionalDerivativeElement::internalFindW(), Sundance::LinearProblem::LinearProblem(), Sundance::VTKWriter::lowLevelWrite(), Sundance::EvalVector::multiply_S(), Sundance::EvalVector::multiply_S_add_S(), Sundance::EvalVector::multiply_S_add_SV(), Sundance::EvalVector::multiply_SV(), Sundance::EvalVector::multiply_V_add_SV(), Sundance::EvalVector::multiply_V_add_SVV(), Sundance::numFacets(), Sundance::operator<<(), Sundance::SymbPreprocessor::processInputFuncs(), Sundance::SymbPreprocessor::processInputParams(), Sundance::BasisFamily::refEval(), Sundance::serialPartition(), Sundance::EvalVector::setTo_S_add_SV(), Sundance::EvalVector::setTo_S_add_SVV(), Sundance::EvalVector::setTo_S_add_V(), Sundance::EvalVector::setTo_S_add_VV(), Sundance::EvalVector::setTo_SV(), Sundance::EvalVector::setTo_SVV(), Sundance::SymbolicFunc::substituteFunction(), Sundance::TriangleMeshReader::TriangleMeshReader(), Sundance::UserDefFunctor::UserDefFunctor(), Sundance::VerboseFieldWriter::write(), Sundance::TriangleWriter::write(), Sundance::ExodusWriter::write(), Sundance::DoublingStepController::write(), and Sundance::TriangleWriter::writeHeader().

Site Contact