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

#include <QuadraturePointsGroup.hpp>

+ Collaboration diagram for QuadraturePointsGroup< DIM >:

Public Member Functions

 QuadraturePointsGroup (AbstractTetrahedralMesh< DIM, DIM > &rMesh, GaussianQuadratureRule< DIM > &rQuadRule)
 
c_vector< double, DIM > & rGet (unsigned elementIndex, unsigned quadIndex)
 
c_vector< double, DIM > & rGet (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 all the quadrature points in physical space (rather than in natural element coordinates) together in one data structure, for access.

In a distributed mesh, a set of quad points can still be accessed for a given element but then any missing data is marked with DOUBLE_UNSET

Definition at line 54 of file QuadraturePointsGroup.hpp.

Constructor & Destructor Documentation

Member Function Documentation

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::GetNumElements ( ) const
Returns
number of elements in the mesh that was given in the constructor

Definition at line 98 of file QuadraturePointsGroup.cpp.

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::GetNumQuadPointsPerElement ( ) const
Returns
number of quad points per element in the rule that was given in the constructor

Definition at line 104 of file QuadraturePointsGroup.cpp.

template<unsigned DIM>
c_vector< double, DIM > & QuadraturePointsGroup< DIM >::rGet ( unsigned  elementIndex,
unsigned  quadIndex 
)
Returns
a stored quadrature point by element index and quad index in the element.
Parameters
elementIndex
quadIndex

Definition at line 83 of file QuadraturePointsGroup.cpp.

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

template<unsigned DIM>
c_vector< double, DIM > & QuadraturePointsGroup< DIM >::rGet ( unsigned  i)
Returns
the i-th stored quadrature point.
Parameters
i

Definition at line 91 of file QuadraturePointsGroup.cpp.

template<unsigned DIM>
unsigned QuadraturePointsGroup< DIM >::Size ( ) const
Returns
total size, i.e. total number of quad points, i.e. num_elem times num_quad_points_per_elem

Definition at line 110 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 59 of file QuadraturePointsGroup.hpp.

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

Number of elements in given mesh

Definition at line 62 of file QuadraturePointsGroup.hpp.

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

Number of quad points per element in given rule

Definition at line 65 of file QuadraturePointsGroup.hpp.


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