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 . |
enum Sundance::CellType |
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?
Definition at line 53 of file SundanceCellType.hpp.
int Sundance::dimension | ( | const CellType & | cellType | ) |
Return the dimension of the cell type.
Definition at line 64 of file SundanceCellType.cpp.
References Sundance::BrickCell, Sundance::LineCell, Sundance::NullCell, Sundance::PointCell, Sundance::PrismCell, Sundance::QuadCell, Sundance::TetCell, and Sundance::TriangleCell.
Referenced by Playa::VectorTypeBase< Scalar >::createEvenlyPartitionedSpace(), Sundance::facetType(), Sundance::ExodusNetCDFMeshReader::fillMesh(), Sundance::ElementIntegral::getQuad(), Sundance::Lagrange::getReferenceDOFs(), Sundance::HomogeneousDOFMap::HomogeneousDOFMap(), Sundance::RaviartThomas::nReferenceDOFsWithoutFacets(), Sundance::numFacets(), Sundance::BamgMeshReader::readMesh(), Sundance::TriangleMeshReader::readNodes(), Sundance::EdgeLocalizedBasis::refEval(), and Sundance::StdFwkEvalMediator::setCellType().
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). |
facetDim <= dimension(c)
0 <= facetIndex < numFacets(c,facetDim)
Definition at line 121 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 | |||
) |
Return the number of faces of a given facet dimension for a cell type.
Preconditions:
facetDim <= dimension(c)
Definition at line 85 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.
Referenced by Sundance::MixedDOFMapHN::buildMaximalDofTable(), Sundance::MixedDOFMap::buildMaximalDofTable(), Sundance::InhomogeneousDOFMapHN::buildMaximalDofTable(), Sundance::HomogeneousDOFMap::buildMaximalDofTable(), Sundance::ElementIntegral::ElementIntegral(), Sundance::NodalDOFMapHN::getDOFsForCellBatch(), Sundance::MixedDOFMapHN::getDOFsForCellBatch(), Sundance::MixedDOFMap::getDOFsForCellBatch(), Sundance::InhomogeneousDOFMapHN::getDOFsForCellBatch(), and Sundance::Lagrange::getReferenceDOFs().
std::ostream& Sundance::operator<< | ( | std::ostream & | os, | |
const CellType & | c | |||
) | [inline] |
output stream operator for CellType
.
Definition at line 115 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 40 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::BamgMeshReader::BamgMeshReader(), Sundance::DefaultIterCallback::call(), Sundance::BasicSimplicialMesh::cellStr(), Sundance::Mesh::checkConsistency(), Sundance::Mesh::checkVertexConsistency(), Sundance::NLOp::computeSensitivities(), Sundance::TrapesoidQuadrature::description(), Sundance::SurfQuadrature::description(), Sundance::QuadratureFamilyStub::description(), Sundance::PolygonQuadrature::description(), Sundance::PeanoMesher3D::description(), Sundance::PeanoMesher2D::description(), Sundance::PartitionedRectangleMesher::description(), Sundance::PartitionedLineMesher::description(), Sundance::Lagrange::description(), Sundance::HNMesher3D::description(), Sundance::HNMesher2D::description(), Sundance::GaussLobattoQuadrature::description(), Sundance::GaussianQuadrature::description(), Sundance::LowerBoundedDomain::description(), Sundance::BoundedDomain::description(), Sundance::FeketeQuadrature::description(), Sundance::ExtrusionMeshTransformation::description(), Sundance::ExodusMeshReader::ExodusMeshReader(), Sundance::facetType(), Sundance::QuadratureFamily::getAdaptedWeights(), Sundance::QuadratureFamily::getPoints(), Sundance::DiscreteFuncElementEvaluator::hasMultiIndex(), Sundance::L2Projector::init(), Sundance::SymbolicFuncElement::internalDetermineR(), Sundance::ExprWithChildren::internalDetermineR(), Sundance::EvaluatableExpr::internalDetermineR(), 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().