#include <GaussianQuadratureRule.hpp>
Public Member Functions | |
GaussianQuadratureRule (unsigned numPointsInEachDimension) | |
const ChastePoint< ELEMENT_DIM > & | rGetQuadPoint (unsigned index) const |
double | GetWeight (unsigned index) const |
unsigned | GetNumQuadPoints () const |
template<> | |
GaussianQuadratureRule (unsigned numPointsInEachDimension) | |
template<> | |
GaussianQuadratureRule (unsigned numPointsInEachDimension) | |
template<> | |
GaussianQuadratureRule (unsigned numPointsInEachDimension) | |
Private Attributes | |
unsigned | mNumQuadPoints |
std::vector< ChastePoint < ELEMENT_DIM > > | mPoints |
std::vector< double > | mWeights |
This class encapsulates tables of gaussian quadrature points and the associated weights.
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< ELEMENT_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 660 of file GaussianQuadratureRule.cpp.
References EXCEPTION.
GaussianQuadratureRule< 0 >::GaussianQuadratureRule | ( | unsigned | numPointsInEachDimension | ) | [inline] |
Constructor specialization for 0d.
numPointsInEachDimension | number of Gauss points in each dimension |
Definition at line 61 of file GaussianQuadratureRule.cpp.
References GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints, GaussianQuadratureRule< ELEMENT_DIM >::mPoints, and GaussianQuadratureRule< ELEMENT_DIM >::mWeights.
GaussianQuadratureRule< 2 >::GaussianQuadratureRule | ( | unsigned | numPointsInEachDimension | ) | [inline] |
Constructor specialization for 2d.
numPointsInEachDimension | number of Gauss points in each dimension |
Definition at line 155 of file GaussianQuadratureRule.cpp.
References EXCEPTION, GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints, GaussianQuadratureRule< ELEMENT_DIM >::mPoints, and GaussianQuadratureRule< ELEMENT_DIM >::mWeights.
GaussianQuadratureRule< 3 >::GaussianQuadratureRule | ( | unsigned | numPointsInEachDimension | ) | [inline] |
Constructor specialization for 3d.
numPointsInEachDimension | number of Gauss points in each dimension |
Definition at line 430 of file GaussianQuadratureRule.cpp.
References EXCEPTION, GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints, GaussianQuadratureRule< ELEMENT_DIM >::mPoints, and GaussianQuadratureRule< ELEMENT_DIM >::mWeights.
unsigned GaussianQuadratureRule< ELEMENT_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 50 of file GaussianQuadratureRule.cpp.
References GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints.
Referenced by IncompressibleNonlinearElasticitySolver< DIM >::AssembleOnBoundaryElement(), CompressibleNonlinearElasticitySolver< DIM >::AssembleOnBoundaryElement(), AbstractFeCableIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::AssembleOnCableElement(), IncompressibleNonlinearElasticitySolver< DIM >::AssembleOnElement(), CompressibleNonlinearElasticitySolver< DIM >::AssembleOnElement(), AbstractContinuumMechanicsAssembler< DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX >::AssembleOnElement(), AbstractFeSurfaceIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::AssembleOnSurfaceElement(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), ElectrodesStimulusFactory< DIM >::ComputeElectrodeTotalFlux(), and QuadraturePointsGroup< DIM >::QuadraturePointsGroup().
double GaussianQuadratureRule< ELEMENT_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 43 of file GaussianQuadratureRule.cpp.
References GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints, and GaussianQuadratureRule< ELEMENT_DIM >::mWeights.
Referenced by IncompressibleNonlinearElasticitySolver< DIM >::AssembleOnBoundaryElement(), CompressibleNonlinearElasticitySolver< DIM >::AssembleOnBoundaryElement(), AbstractFeCableIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::AssembleOnCableElement(), IncompressibleNonlinearElasticitySolver< DIM >::AssembleOnElement(), CompressibleNonlinearElasticitySolver< DIM >::AssembleOnElement(), AbstractContinuumMechanicsAssembler< DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX >::AssembleOnElement(), AbstractFeSurfaceIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::AssembleOnSurfaceElement(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), and ElectrodesStimulusFactory< DIM >::ComputeElectrodeTotalFlux().
const ChastePoint< ELEMENT_DIM > & GaussianQuadratureRule< ELEMENT_DIM >::rGetQuadPoint | ( | unsigned | index | ) | const [inline] |
Get a quadrature point.
index | The index of the point to return. |
Definition at line 36 of file GaussianQuadratureRule.cpp.
References GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints, and GaussianQuadratureRule< ELEMENT_DIM >::mPoints.
Referenced by IncompressibleNonlinearElasticitySolver< DIM >::AssembleOnBoundaryElement(), CompressibleNonlinearElasticitySolver< DIM >::AssembleOnBoundaryElement(), AbstractFeCableIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::AssembleOnCableElement(), IncompressibleNonlinearElasticitySolver< DIM >::AssembleOnElement(), CompressibleNonlinearElasticitySolver< DIM >::AssembleOnElement(), AbstractContinuumMechanicsAssembler< DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX >::AssembleOnElement(), AbstractFeSurfaceIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::AssembleOnSurfaceElement(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), ElectrodesStimulusFactory< DIM >::ComputeElectrodeTotalFlux(), and QuadraturePointsGroup< DIM >::QuadraturePointsGroup().
unsigned GaussianQuadratureRule< ELEMENT_DIM >::mNumQuadPoints [private] |
The total number of Gauss points.
Definition at line 46 of file GaussianQuadratureRule.hpp.
Referenced by GaussianQuadratureRule< 1 >::GaussianQuadratureRule(), GaussianQuadratureRule< ELEMENT_DIM >::GaussianQuadratureRule(), GaussianQuadratureRule< ELEMENT_DIM >::GetNumQuadPoints(), GaussianQuadratureRule< ELEMENT_DIM >::GetWeight(), and GaussianQuadratureRule< ELEMENT_DIM >::rGetQuadPoint().
std::vector<ChastePoint<ELEMENT_DIM> > GaussianQuadratureRule< ELEMENT_DIM >::mPoints [private] |
The gaussian quadrature points.
Definition at line 49 of file GaussianQuadratureRule.hpp.
Referenced by GaussianQuadratureRule< 1 >::GaussianQuadratureRule(), GaussianQuadratureRule< ELEMENT_DIM >::GaussianQuadratureRule(), and GaussianQuadratureRule< ELEMENT_DIM >::rGetQuadPoint().
std::vector<double> GaussianQuadratureRule< ELEMENT_DIM >::mWeights [private] |
The associated weights.
Definition at line 52 of file GaussianQuadratureRule.hpp.
Referenced by GaussianQuadratureRule< 1 >::GaussianQuadratureRule(), GaussianQuadratureRule< ELEMENT_DIM >::GaussianQuadratureRule(), and GaussianQuadratureRule< ELEMENT_DIM >::GetWeight().