GaussianQuadratureRule< ELEM_DIM > Class Template Reference

#include <GaussianQuadratureRule.hpp>

Inheritance diagram for GaussianQuadratureRule< ELEM_DIM >:

Inheritance graph
[legend]
Collaboration diagram for GaussianQuadratureRule< ELEM_DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 GaussianQuadratureRule (unsigned numPointsInEachDimension)
const ChastePoint< ELEM_DIM > & rGetQuadPoint (unsigned index) const
double GetWeight (unsigned index) const
unsigned GetNumQuadPoints () const

Private Attributes

unsigned mNumQuadPoints
std::vector< double > mWeights
std::vector< ChastePoint
< ELEM_DIM > > 
mPoints


Detailed Description

template<unsigned ELEM_DIM>
class GaussianQuadratureRule< ELEM_DIM >

This class encapsulates tables of gaussian quadrature points and the associated weights.

Data is available for 1d, 2d and 3d quadrature over (canonical) triangles, with between 1 and 3 (inclusive) gauss points in each dimension.

Definition at line 43 of file GaussianQuadratureRule.hpp.


Constructor & Destructor Documentation

template<unsigned ELEM_DIM>
GaussianQuadratureRule< ELEM_DIM >::GaussianQuadratureRule ( unsigned  numPointsInEachDimension  )  [inline]

The constructor builds the appropriate table for the dimension (given by the template argument) and number of points in each dimension (given as a constructor argument).

An exception is thrown if data is not available for the requested parameters.

Definition at line 55 of file GaussianQuadratureRule.cpp.


Member Function Documentation

template<unsigned ELEM_DIM>
const ChastePoint< ELEM_DIM > & GaussianQuadratureRule< ELEM_DIM >::rGetQuadPoint ( unsigned  index  )  const [inline]

template<unsigned ELEM_DIM>
double GaussianQuadratureRule< ELEM_DIM >::GetWeight ( unsigned  index  )  const [inline]

template<unsigned ELEM_DIM>
unsigned GaussianQuadratureRule< ELEM_DIM >::GetNumQuadPoints (  )  const [inline]


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

Generated on Wed Mar 18 12:52:31 2009 for Chaste by  doxygen 1.5.5