Sundance::Legendre Class Reference

Inheritance diagram for Sundance::Legendre:

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

 Legendre (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_
int nrDOF_edge_
int nrDOF_face_
int nrDOF_brick_
static Array< int > makeRange (int low, int high)
void evalOnLine (const Point &pt, const MultiIndex &deriv, Array< double > &result) const
void evalOnQuad (const Point &pt, const MultiIndex &deriv, Array< double > &result) const
void evalOnBrick (const Point &pt, const MultiIndex &deriv, Array< double > &result) const


Detailed Description

Legendre basis

Definition at line 43 of file SundanceLegendre.hpp.


Constructor & Destructor Documentation

Legendre::Legendre ( int  order  ) 

2param order [in] order of the Legendre

Definition at line 43 of file SundanceLegendre.cpp.

References nrDOF_brick_, nrDOF_edge_, nrDOF_face_, and order_.


Member Function Documentation

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

evaluate on a tet cell

Definition at line 378 of file SundanceLegendre.cpp.

Referenced by refEval().

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

evaluate on a line cell

Definition at line 258 of file SundanceLegendre.cpp.

References nrDOF_edge_, Sundance::MultiIndex::order(), and Sundance::ADReal::value().

Referenced by refEval().

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

void Legendre::getReferenceDOFs ( const CellType maximalCellType,
const CellType cellType,
Array< Array< Array< int > > > &  dofs 
) const [virtual]

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

Definition at line 127 of file SundanceLegendre.cpp.

Referenced by getReferenceDOFs().

int Legendre::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 106 of file SundanceLegendre.cpp.

References Sundance::BrickCell, Sundance::LineCell, nrDOF_brick_, nrDOF_edge_, nrDOF_face_, Sundance::PointCell, and Sundance::QuadCell.

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

Implements Sundance::BasisFamilyBase.

Definition at line 61 of file SundanceLegendre.hpp.

References order_.

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

Implements Playa::Printable.

Definition at line 101 of file SundanceLegendre.cpp.

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

bool Legendre::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 59 of file SundanceLegendre.cpp.

References Sundance::BrickCell, Sundance::LineCell, Sundance::PointCell, and Sundance::QuadCell.


Member Data Documentation

Definition at line 114 of file SundanceLegendre.hpp.

Referenced by Legendre(), and nReferenceDOFsWithoutFacets().

the order of the basis

Definition at line 105 of file SundanceLegendre.hpp.

Referenced by evalOnQuad(), Legendre(), and order().

Site Contact