GaussianQuadratureRule< ELEMENT_DIM > Class Template Reference

#include <GaussianQuadratureRule.hpp>

Collaboration diagram for GaussianQuadratureRule< ELEMENT_DIM >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

unsigned mNumQuadPoints
std::vector< ChastePoint
< ELEMENT_DIM > > 
mPoints
std::vector< doublemWeights

Detailed Description

template<unsigned ELEMENT_DIM>
class GaussianQuadratureRule< ELEMENT_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 ELEMENT_DIM>
GaussianQuadratureRule< ELEMENT_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 660 of file GaussianQuadratureRule.cpp.

References EXCEPTION.

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

Constructor specialization for 0d.

Parameters:
numPointsInEachDimension number of Gauss points in each dimension

Definition at line 61 of file GaussianQuadratureRule.cpp.

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

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

Constructor specialization for 2d.

Parameters:
numPointsInEachDimension number of Gauss points in each dimension

Definition at line 155 of file GaussianQuadratureRule.cpp.

References EXCEPTION, GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints, GaussianQuadratureRule< ELEMENT_DIM >::mPoints, and GaussianQuadratureRule< ELEMENT_DIM >::mWeights.

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

Constructor specialization for 3d.

Parameters:
numPointsInEachDimension number of Gauss points in each dimension

Definition at line 430 of file GaussianQuadratureRule.cpp.

References EXCEPTION, GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints, GaussianQuadratureRule< ELEMENT_DIM >::mPoints, and GaussianQuadratureRule< ELEMENT_DIM >::mWeights.


Member Function Documentation

template<unsigned ELEMENT_DIM>
unsigned GaussianQuadratureRule< ELEMENT_DIM >::GetNumQuadPoints (  )  const [inline]
template<unsigned ELEMENT_DIM>
double GaussianQuadratureRule< ELEMENT_DIM >::GetWeight ( unsigned  index  )  const [inline]
template<unsigned ELEMENT_DIM>
const ChastePoint< ELEMENT_DIM > & GaussianQuadratureRule< ELEMENT_DIM >::rGetQuadPoint ( unsigned  index  )  const [inline]

Member Data Documentation

template<unsigned ELEMENT_DIM>
unsigned GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints [private]
template<unsigned ELEMENT_DIM>
std::vector<ChastePoint<ELEMENT_DIM> > GaussianQuadratureRule< ELEMENT_DIM >::mPoints [private]
template<unsigned ELEMENT_DIM>
std::vector<double> GaussianQuadratureRule< ELEMENT_DIM >::mWeights [private]

The documentation for this class was generated from the following files:
Generated on Thu Dec 22 13:05:23 2011 for Chaste by  doxygen 1.6.3