QuadraturePointsGroup< DIM > Class Template Reference

#include <QuadraturePointsGroup.hpp>

Collaboration diagram for QuadraturePointsGroup< DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 QuadraturePointsGroup (TetrahedralMesh< DIM, DIM > &rMesh, GaussianQuadratureRule< DIM > &rQuadRule)
c_vector< double, DIM > & Get (unsigned elementIndex, unsigned quadIndex)
c_vector< double, DIM > & Get (unsigned i)
unsigned GetNumElements () const
unsigned GetNumQuadPointsPerElement () const
unsigned Size () const

Private Attributes

std::vector< c_vector< double,
DIM > > 
data
unsigned mNumElements
unsigned mNumQuadPointsPerElement


Detailed Description

template<unsigned DIM>
class QuadraturePointsGroup< DIM >

A simple class which takes in a mesh and a quadrature rule, and collects are the quadrature points (in physical space ie several for each element) together in one data structure, for access.

Definition at line 45 of file QuadraturePointsGroup.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
QuadraturePointsGroup< DIM >::QuadraturePointsGroup ( TetrahedralMesh< DIM, DIM > &  rMesh,
GaussianQuadratureRule< DIM > &  rQuadRule 
) [inline]


Member Function Documentation

template<unsigned DIM>
c_vector< double, DIM > & QuadraturePointsGroup< DIM >::Get ( unsigned  elementIndex,
unsigned  quadIndex 
) [inline]

Access the stored quadrature point by element index and quad index in the element.

Todo:
this method should be renamed rGet() as it returns a reference
Parameters:
elementIndex 
quadIndex 

Definition at line 67 of file QuadraturePointsGroup.cpp.

References QuadraturePointsGroup< DIM >::data, QuadraturePointsGroup< DIM >::mNumElements, and QuadraturePointsGroup< DIM >::mNumQuadPointsPerElement.

Referenced by FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseQuadPoints().

template<unsigned DIM>
c_vector< double, DIM > & QuadraturePointsGroup< DIM >::Get ( unsigned  i  )  [inline]

Get the i-th stored quadrature point.

Todo:
this method should be renamed rGet() as it returns a reference
Parameters:
i 

Definition at line 75 of file QuadraturePointsGroup.cpp.

References QuadraturePointsGroup< DIM >::data, QuadraturePointsGroup< DIM >::mNumElements, and QuadraturePointsGroup< DIM >::mNumQuadPointsPerElement.

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::GetNumElements (  )  const [inline]

Number of elements in the mesh that was given in the constructor

Definition at line 82 of file QuadraturePointsGroup.cpp.

References QuadraturePointsGroup< DIM >::mNumElements.

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::GetNumQuadPointsPerElement (  )  const [inline]

Number of quad points per element in the rule that was given in the constructor

Definition at line 88 of file QuadraturePointsGroup.cpp.

References QuadraturePointsGroup< DIM >::mNumQuadPointsPerElement.

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::Size (  )  const [inline]

Total size, ie total number of quad points, ie num_elem times num_quad_points_per_elem

Definition at line 94 of file QuadraturePointsGroup.cpp.

References QuadraturePointsGroup< DIM >::mNumElements, and QuadraturePointsGroup< DIM >::mNumQuadPointsPerElement.

Referenced by FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseQuadPoints().


Member Data Documentation

template<unsigned DIM>
std::vector<c_vector<double,DIM> > QuadraturePointsGroup< DIM >::data [private]

The quadrature points in physical space

Definition at line 50 of file QuadraturePointsGroup.hpp.

Referenced by QuadraturePointsGroup< DIM >::Get(), and QuadraturePointsGroup< DIM >::QuadraturePointsGroup().

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::mNumElements [private]

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::mNumQuadPointsPerElement [private]


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

Generated on Mon Nov 1 12:37:16 2010 for Chaste by  doxygen 1.5.5