#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 45 of file QuadraturePointsGroup.hpp.
QuadraturePointsGroup< DIM >::QuadraturePointsGroup | ( | TetrahedralMesh< DIM, DIM > & | rMesh, | |
GaussianQuadratureRule< DIM > & | rQuadRule | |||
) | [inline] |
Constructor takes in a mesh and a rule and computes and stores all the quad points in physical space.
rMesh | ||
rQuadRule |
Definition at line 32 of file QuadraturePointsGroup.cpp.
References QuadraturePointsGroup< DIM >::data, 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(), QuadraturePointsGroup< DIM >::mNumElements, QuadraturePointsGroup< DIM >::mNumQuadPointsPerElement, and GaussianQuadratureRule< ELEMENT_DIM >::rGetQuadPoint().
c_vector< double, DIM > & QuadraturePointsGroup< DIM >::Get | ( | unsigned | i | ) | [inline] |
Get the i-th stored quadrature point.
i |
Definition at line 75 of file QuadraturePointsGroup.cpp.
References QuadraturePointsGroup< DIM >::data, QuadraturePointsGroup< DIM >::mNumElements, and QuadraturePointsGroup< DIM >::mNumQuadPointsPerElement.
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.
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().
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.
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.
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().
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().
unsigned QuadraturePointsGroup< DIM >::mNumElements [private] |
Number of elements in given mesh
Definition at line 53 of file QuadraturePointsGroup.hpp.
Referenced by QuadraturePointsGroup< DIM >::Get(), QuadraturePointsGroup< DIM >::GetNumElements(), QuadraturePointsGroup< DIM >::QuadraturePointsGroup(), and QuadraturePointsGroup< DIM >::Size().
unsigned QuadraturePointsGroup< DIM >::mNumQuadPointsPerElement [private] |
Number of quad points per element in given rule
Definition at line 56 of file QuadraturePointsGroup.hpp.
Referenced by QuadraturePointsGroup< DIM >::Get(), QuadraturePointsGroup< DIM >::GetNumQuadPointsPerElement(), QuadraturePointsGroup< DIM >::QuadraturePointsGroup(), and QuadraturePointsGroup< DIM >::Size().