Chaste Release::3.1
|
#include <QuadraturePointsGroup.hpp>
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 |
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.
QuadraturePointsGroup< DIM >::QuadraturePointsGroup | ( | TetrahedralMesh< DIM, DIM > & | rMesh, |
GaussianQuadratureRule< DIM > & | rQuadRule | ||
) |
Constructor takes in a mesh and a rule and computes and stores all the quad points in physical space.
rMesh | |
rQuadRule |
Definition at line 39 of file QuadraturePointsGroup.cpp.
References LinearBasisFunction< ELEMENT_DIM >::ComputeBasisFunctions(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNode(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeGlobalIndex(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), GaussianQuadratureRule< ELEMENT_DIM >::GetNumQuadPoints(), and GaussianQuadratureRule< ELEMENT_DIM >::rGetQuadPoint().
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.
elementIndex | |
quadIndex |
Definition at line 74 of file QuadraturePointsGroup.cpp.
Referenced by FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseQuadPoints().
c_vector< double, DIM > & QuadraturePointsGroup< DIM >::Get | ( | unsigned | i | ) |
Get the i-th stored quadrature point.
i |
Definition at line 82 of file QuadraturePointsGroup.cpp.
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.
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.
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().
std::vector<c_vector<double,DIM> > QuadraturePointsGroup< DIM >::data [private] |
The quadrature points in physical space
Definition at line 56 of file QuadraturePointsGroup.hpp.
unsigned QuadraturePointsGroup< DIM >::mNumElements [private] |
Number of elements in given mesh
Definition at line 59 of file QuadraturePointsGroup.hpp.
unsigned QuadraturePointsGroup< DIM >::mNumQuadPointsPerElement [private] |
Number of quad points per element in given rule
Definition at line 62 of file QuadraturePointsGroup.hpp.