Chaste
Release::3.4
|
#include <QuadraturePointsGroup.hpp>
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 |
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.
QuadraturePointsGroup< DIM >::QuadraturePointsGroup | ( | AbstractTetrahedralMesh< 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 40 of file QuadraturePointsGroup.cpp.
References LinearBasisFunction< ELEMENT_DIM >::ComputeBasisFunctions(), DOUBLE_UNSET, AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorBegin(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorEnd(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), GaussianQuadratureRule< ELEMENT_DIM >::GetNumQuadPoints(), and GaussianQuadratureRule< ELEMENT_DIM >::rGetQuadPoint().
unsigned QuadraturePointsGroup< DIM >::GetNumElements | ( | ) | const |
Definition at line 98 of file QuadraturePointsGroup.cpp.
unsigned QuadraturePointsGroup< DIM >::GetNumQuadPointsPerElement | ( | ) | const |
Definition at line 104 of file QuadraturePointsGroup.cpp.
c_vector< double, DIM > & QuadraturePointsGroup< DIM >::rGet | ( | unsigned | elementIndex, |
unsigned | quadIndex | ||
) |
elementIndex | |
quadIndex |
Definition at line 83 of file QuadraturePointsGroup.cpp.
Referenced by FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseQuadPoints().
c_vector< double, DIM > & QuadraturePointsGroup< DIM >::rGet | ( | unsigned | i | ) |
i |
Definition at line 91 of file QuadraturePointsGroup.cpp.
unsigned QuadraturePointsGroup< DIM >::Size | ( | ) | const |
Definition at line 110 of file QuadraturePointsGroup.cpp.
Referenced by FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseQuadPoints().
|
private |
The quadrature points in physical space
Definition at line 59 of file QuadraturePointsGroup.hpp.
|
private |
Number of elements in given mesh
Definition at line 62 of file QuadraturePointsGroup.hpp.
|
private |
Number of quad points per element in given rule
Definition at line 65 of file QuadraturePointsGroup.hpp.