Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <GaussianQuadratureRule.hpp>
Public Member Functions | |
GaussianQuadratureRule (unsigned quadratureOrder) | |
const ChastePoint< ELEMENT_DIM > & | rGetQuadPoint (unsigned index) const |
double | GetWeight (unsigned index) const |
unsigned | GetNumQuadPoints () const |
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 appropriate numbers of Gauss points. Weights sum to 1 and are non-negative. The values are computed when an object is instantiated.
Definition at line 50 of file GaussianQuadratureRule.hpp.
|
explicit |
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.
quadratureOrder | The minimum polynomial order that the rule can integrate exactly |
Definition at line 63 of file GaussianQuadratureRule.cpp.
unsigned GaussianQuadratureRule< ELEMENT_DIM >::GetNumQuadPoints | ( | ) | const |
Definition at line 57 of file GaussianQuadratureRule.cpp.
Referenced by QuadraturePointsGroup< DIM >::QuadraturePointsGroup(), AbstractFeVolumeIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::AssembleOnElement(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), and ElectrodesStimulusFactory< DIM >::ComputeElectrodeTotalFlux().
double GaussianQuadratureRule< ELEMENT_DIM >::GetWeight | ( | unsigned | index | ) | const |
index | The index of the point to return. |
Definition at line 50 of file GaussianQuadratureRule.cpp.
Referenced by AbstractFeVolumeIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::AssembleOnElement(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), and ElectrodesStimulusFactory< DIM >::ComputeElectrodeTotalFlux().
const ChastePoint< ELEMENT_DIM > & GaussianQuadratureRule< ELEMENT_DIM >::rGetQuadPoint | ( | unsigned | index | ) | const |
Get a quadrature point.
index | The index of the point to return. |
Definition at line 43 of file GaussianQuadratureRule.cpp.
Referenced by QuadraturePointsGroup< DIM >::QuadraturePointsGroup(), AbstractFeVolumeIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::AssembleOnElement(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), and ElectrodesStimulusFactory< DIM >::ComputeElectrodeTotalFlux().
|
private |
The total number of Gauss points.
Definition at line 53 of file GaussianQuadratureRule.hpp.
|
private |
The gaussian quadrature points.
Definition at line 56 of file GaussianQuadratureRule.hpp.
|
private |
The associated weights.
Definition at line 59 of file GaussianQuadratureRule.hpp.