#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< double > | mWeights |
std::vector< ChastePoint < ELEM_DIM > > | mPoints |
Data is available for 1d, 2d and 3d quadrature over (canonical) triangles, with between 1 and 3 (inclusive) gauss points in each dimension.
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.
Definition at line 55 of file GaussianQuadratureRule.cpp.
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.
Referenced by NonlinearElasticityAssembler< DIM >::AssembleOnBoundaryElement(), NonlinearElasticityAssembler< DIM >::AssembleOnElement(), AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, MonodomainRhsMatrixAssembler< DIM > >::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.
Definition at line 42 of file GaussianQuadratureRule.cpp.
Referenced by NonlinearElasticityAssembler< DIM >::AssembleOnBoundaryElement(), NonlinearElasticityAssembler< DIM >::AssembleOnElement(), AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, MonodomainRhsMatrixAssembler< DIM > >::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.
Referenced by NonlinearElasticityAssembler< DIM >::AssembleOnBoundaryElement(), NonlinearElasticityAssembler< DIM >::AssembleOnElement(), AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, MonodomainRhsMatrixAssembler< DIM > >::AssembleOnElement(), ImplicitCardiacMechanicsAssembler< DIM >::AssembleOnElement(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), ImplicitCardiacMechanicsAssembler< DIM >::ImplicitCardiacMechanicsAssembler(), and QuadraturePointsGroup< DIM >::QuadraturePointsGroup().