Public Member Functions
Sundance::Bernstein Class Reference
Inheritance diagram for Sundance::Bernstein:
Sundance::ScalarBasis Sundance::BasisFamilyBase Sundance::BasisFamilyBase Sundance::BasisReferenceEvaluationBase Sundance::TensorBasisBase Sundance::BasisDOFTopologyBase Sundance::ObjectWithClassVerbosity< BasisFamilyBase > Playa::Printable Playa::Handleable< BasisFamilyBase > Sundance::BasisReferenceEvaluationBase Sundance::TensorBasisBase Sundance::BasisDOFTopologyBase Sundance::ObjectWithClassVerbosity< BasisFamilyBase > Playa::Printable Playa::Handleable< BasisFamilyBase >

List of all members.

Public Member Functions

 Bernstein (int order)
bool supportsCellTypePair (const CellType &maximalCellType, const CellType &cellType) const
 Inform caller as to whether a given cell type is supported.
void print (std::ostream &os) const
int order () const
int nReferenceDOFsWithoutFacets (const CellType &maximalCellType, const CellType &cellType) const
void getReferenceDOFs (const CellType &maximalCellType, const CellType &cellType, Array< Array< Array< int > > > &dofs) const
void refEval (const CellType &cellType, const Array< Point > &pts, const SpatialDerivSpecifier &deriv, Array< Array< Array< double > > > &result, int verbosity=0) const

Handleable interface

int order_
static Array< int > makeRange (int low, int high)
void evalOnLine (const Point &pt, const MultiIndex &deriv, Array< double > &result) const
void evalOnTriangle (const Point &pt, const MultiIndex &deriv, Array< double > &result) const
void evalOnTet (const Point &pt, const MultiIndex &deriv, Array< double > &result) const

Detailed Description

Bernstein basis

Definition at line 54 of file SundanceBernstein.hpp.


Constructor & Destructor Documentation

Bernstein::Bernstein ( int  order)

Definition at line 54 of file SundanceBernstein.cpp.


Member Function Documentation

void Bernstein::evalOnLine ( const Point pt,
const MultiIndex deriv,
Array< double > &  result 
) const [private]

evaluate on a line cell

Definition at line 303 of file SundanceBernstein.cpp.

References order(), Sundance::MultiIndex::order(), order_, and Sundance::value.

Referenced by refEval().

void Bernstein::evalOnTet ( const Point pt,
const MultiIndex deriv,
Array< double > &  result 
) const [private]

evaluate on a tet cell

Definition at line 423 of file SundanceBernstein.cpp.

References Sundance::MultiIndex::firstOrderDirection(), Sundance::MultiIndex::order(), order_, and Sundance::value.

Referenced by refEval().

void Bernstein::evalOnTriangle ( const Point pt,
const MultiIndex deriv,
Array< double > &  result 
) const [private]
void Bernstein::getReferenceDOFs ( const CellType maximalCellType,
const CellType cellType,
Array< Array< Array< int > > > &  dofs 
) const [virtual]

permuted from (0,1,2) to (1,2,0) for UFC ordering

Implements Sundance::BasisDOFTopologyBase.

Definition at line 155 of file SundanceBernstein.cpp.

References Sundance::LineCell, makeRange(), order(), Sundance::PointCell, Sundance::TetCell, and Sundance::TriangleCell.

Array< int > Bernstein::makeRange ( int  low,
int  high 
) [static, private]

Definition at line 246 of file SundanceBernstein.cpp.

Referenced by getReferenceDOFs().

int Bernstein::nReferenceDOFsWithoutFacets ( const CellType maximalCellType,
const CellType cellType 
) const [virtual]

return the number of nodes for this basis on the given cell type

Implements Sundance::BasisDOFTopologyBase.

Definition at line 109 of file SundanceBernstein.cpp.

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

int Sundance::Bernstein::order ( ) const [inline, virtual]

Implements Sundance::BasisFamilyBase.

Definition at line 72 of file SundanceBernstein.hpp.

References order_.

Referenced by evalOnLine(), evalOnTriangle(), and getReferenceDOFs().

void Bernstein::print ( std::ostream &  os) const [virtual]

Implements Playa::Printable.

Definition at line 104 of file SundanceBernstein.cpp.

References order_.

void Bernstein::refEval ( const CellType cellType,
const Array< Point > &  pts,
const SpatialDerivSpecifier deriv,
Array< Array< Array< double > > > &  result,
int  verbosity = 0 
) const [virtual]
bool Bernstein::supportsCellTypePair ( const CellType maximalCellType,
const CellType cellType 
) const [virtual]

Inform caller as to whether a given cell type is supported.

Implements Sundance::BasisDOFTopologyBase.

Definition at line 62 of file SundanceBernstein.cpp.

References Sundance::LineCell, Sundance::PointCell, Sundance::TetCell, and Sundance::TriangleCell.


Member Data Documentation

Site Contact