#include <GaussianQuadratureRule.hpp>
Public Member Functions | |
GaussianQuadratureRule (unsigned numPointsInEachDimension) | |
const ChastePoint< ELEM_DIM > & | rGetQuadPoint (unsigned index) const |
double | GetWeight (unsigned index) const |
unsigned | GetNumQuadPoints () const |
Private Attributes | |
unsigned | mNumQuadPoints |
std::vector< ChastePoint < ELEM_DIM > > | mPoints |
std::vector< double > | mWeights |
Data is available for 1d, 2d and 3d quadrature over (canonical) triangles, with between 1 and 3 (inclusive) gauss points in each dimension. The values are computed when an object is instantiated.
Definition at line 43 of file GaussianQuadratureRule.hpp.
GaussianQuadratureRule< ELEM_DIM >::GaussianQuadratureRule | ( | unsigned | numPointsInEachDimension | ) | [inline] |
The constructor builds the appropriate table for the dimension (given by the template argument) and number of points in each dimension (given as a constructor argument).
An exception is thrown if data is not available for the requested parameters.
numPointsInEachDimension | number of gauss points in each dimension |
Definition at line 55 of file GaussianQuadratureRule.cpp.
References GaussianQuadratureRule< ELEM_DIM >::mNumQuadPoints, GaussianQuadratureRule< ELEM_DIM >::mPoints, and GaussianQuadratureRule< ELEM_DIM >::mWeights.
const ChastePoint< ELEM_DIM > & GaussianQuadratureRule< ELEM_DIM >::rGetQuadPoint | ( | unsigned | index | ) | const [inline] |
Get a quadrature point.
index | The index of the point to return. |
Definition at line 35 of file GaussianQuadratureRule.cpp.
References GaussianQuadratureRule< ELEM_DIM >::mNumQuadPoints, and GaussianQuadratureRule< ELEM_DIM >::mPoints.
Referenced by NonlinearElasticityAssembler< DIM >::AssembleOnBoundaryElement(), NonlinearElasticityAssembler< DIM >::AssembleOnElement(), AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, CONCRETE >::AssembleOnElement(), ImplicitCardiacMechanicsAssembler< DIM >::AssembleOnElement(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), and QuadraturePointsGroup< DIM >::QuadraturePointsGroup().
double GaussianQuadratureRule< ELEM_DIM >::GetWeight | ( | unsigned | index | ) | const [inline] |
Get the weight associated with a quadrature point.
index | The index of the point to return. |
Definition at line 42 of file GaussianQuadratureRule.cpp.
References GaussianQuadratureRule< ELEM_DIM >::mNumQuadPoints, and GaussianQuadratureRule< ELEM_DIM >::mWeights.
Referenced by NonlinearElasticityAssembler< DIM >::AssembleOnBoundaryElement(), NonlinearElasticityAssembler< DIM >::AssembleOnElement(), AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, CONCRETE >::AssembleOnElement(), ImplicitCardiacMechanicsAssembler< DIM >::AssembleOnElement(), and AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement().
unsigned GaussianQuadratureRule< ELEM_DIM >::GetNumQuadPoints | ( | ) | const [inline] |
Get the number of quadrature points. This is the number of points in each dimension, raised to the power of the number of dimensions.
Definition at line 49 of file GaussianQuadratureRule.cpp.
References GaussianQuadratureRule< ELEM_DIM >::mNumQuadPoints.
Referenced by NonlinearElasticityAssembler< DIM >::AssembleOnBoundaryElement(), NonlinearElasticityAssembler< DIM >::AssembleOnElement(), AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, CONCRETE >::AssembleOnElement(), ImplicitCardiacMechanicsAssembler< DIM >::AssembleOnElement(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), ImplicitCardiacMechanicsAssembler< DIM >::ImplicitCardiacMechanicsAssembler(), and QuadraturePointsGroup< DIM >::QuadraturePointsGroup().
unsigned GaussianQuadratureRule< ELEM_DIM >::mNumQuadPoints [private] |
The total number of gauss points.
Definition at line 46 of file GaussianQuadratureRule.hpp.
Referenced by GaussianQuadratureRule< ELEM_DIM >::GaussianQuadratureRule(), GaussianQuadratureRule< ELEM_DIM >::GetNumQuadPoints(), GaussianQuadratureRule< ELEM_DIM >::GetWeight(), and GaussianQuadratureRule< ELEM_DIM >::rGetQuadPoint().
std::vector<ChastePoint<ELEM_DIM> > GaussianQuadratureRule< ELEM_DIM >::mPoints [private] |
The gaussian quadrature points.
Definition at line 48 of file GaussianQuadratureRule.hpp.
Referenced by GaussianQuadratureRule< ELEM_DIM >::GaussianQuadratureRule(), and GaussianQuadratureRule< ELEM_DIM >::rGetQuadPoint().
std::vector<double> GaussianQuadratureRule< ELEM_DIM >::mWeights [private] |
The associated weights.
Definition at line 50 of file GaussianQuadratureRule.hpp.
Referenced by GaussianQuadratureRule< ELEM_DIM >::GaussianQuadratureRule(), and GaussianQuadratureRule< ELEM_DIM >::GetWeight().