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< ChastePoint
< ELEM_DIM > > 
mPoints
std::vector< double > mWeights


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. The values are computed when an object is instantiated.

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.

Parameters:
numPointsInEachDimension number of gauss points in each dimension

Definition at line 55 of file GaussianQuadratureRule.cpp.

References GaussianQuadratureRule< ELEM_DIM >::mNumQuadPoints, GaussianQuadratureRule< ELEM_DIM >::mPoints, and GaussianQuadratureRule< ELEM_DIM >::mWeights.


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]


Member Data Documentation

template<unsigned ELEM_DIM>
unsigned GaussianQuadratureRule< ELEM_DIM >::mNumQuadPoints [private]

template<unsigned ELEM_DIM>
std::vector<ChastePoint<ELEM_DIM> > GaussianQuadratureRule< ELEM_DIM >::mPoints [private]

template<unsigned ELEM_DIM>
std::vector<double> GaussianQuadratureRule< ELEM_DIM >::mWeights [private]


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

Generated on Tue Aug 4 16:11:15 2009 for Chaste by  doxygen 1.5.5