Chaste Release::3.1
QuadraturePointsGroup< DIM > Class Template Reference

#include <QuadraturePointsGroup.hpp>

Collaboration diagram for QuadraturePointsGroup< DIM >:

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 51 of file QuadraturePointsGroup.hpp.


Constructor & Destructor Documentation


Member Function Documentation

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

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 74 of file QuadraturePointsGroup.cpp.

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

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

Get the i-th stored quadrature point.

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

Definition at line 82 of file QuadraturePointsGroup.cpp.

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::GetNumElements ( ) const

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

Definition at line 89 of file QuadraturePointsGroup.cpp.

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::GetNumQuadPointsPerElement ( ) const

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

Definition at line 95 of file QuadraturePointsGroup.cpp.

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::Size ( ) const

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

Definition at line 101 of file QuadraturePointsGroup.cpp.

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 56 of file QuadraturePointsGroup.hpp.

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

Number of elements in given mesh

Definition at line 59 of file QuadraturePointsGroup.hpp.

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

Number of quad points per element in given rule

Definition at line 62 of file QuadraturePointsGroup.hpp.


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