ug4
|
provides quadrature rule for a Reference Dimension More...
#include <quadrature.h>
Public Types | |
typedef MathVector< dim > | position_type |
Position Type in Reference Element Space. More... | |
typedef number | weight_type |
Type of weights. More... | |
Public Member Functions | |
size_t | order () const |
returns the order More... | |
const MathVector< dim > & | point (size_t i) const |
returns i'th integration point More... | |
const MathVector< dim > * | points () const |
returns all positions in an array of size() More... | |
QuadratureRule () | |
constructor More... | |
size_t | size () const |
number of integration points More... | |
number | weight (size_t i) const |
return the i'th weight More... | |
const number * | weights () const |
returns all weights in an array of size() More... | |
virtual | ~QuadratureRule () |
destructor More... | |
Static Public Attributes | |
static const int | dim = TDim |
Dimension of Reference Element. More... | |
Protected Attributes | |
size_t | m_numPoints |
number of points More... | |
int | m_order |
Order of rule. More... | |
const MathVector< dim > * | m_pvPoint |
Integration points. More... | |
const number * | m_pvWeight |
Weights. More... | |
provides quadrature rule for a Reference Dimension
A Quadrature Rule provides for a given Reference Element integration points and weights. An Integral over the Reference Element T is approximated by
\[ \int\limits_T f(\mathbf{x}) \; d\mathbf{x} \approx \sum_{i=0}^{n-1} f(\mathbf{x}_{i}) \cdot w_i \]
with the \(n\) integration points \(\mathbf{x}_i\) and weights \( w_i \).
TDim | Dimension of Reference Element |
typedef MathVector<dim> ug::QuadratureRule< TDim >::position_type |
Position Type in Reference Element Space.
typedef number ug::QuadratureRule< TDim >::weight_type |
Type of weights.
|
inline |
constructor
|
inlinevirtual |
destructor
|
inline |
returns the order
References ug::QuadratureRule< TDim >::m_order.
Referenced by ug::GaussQuadratureHexahedron::GaussQuadratureHexahedron(), ug::GaussQuadratureOctahedron::GaussQuadratureOctahedron(), ug::GaussQuadraturePrism::GaussQuadraturePrism(), ug::GaussQuadraturePyramid::GaussQuadraturePyramid(), ug::GaussQuadratureQuadrilateral::GaussQuadratureQuadrilateral(), ug::GaussQuadratureTetrahedron::GaussQuadratureTetrahedron(), ug::GaussQuadratureTriangle::GaussQuadratureTriangle(), and ug::PrintQuadRule().
|
inline |
returns i'th integration point
References ug::QuadratureRule< TDim >::m_pvPoint, ug::QuadratureRule< TDim >::size(), and UG_ASSERT.
Referenced by ug::GaussQuadratureHexahedron::GaussQuadratureHexahedron(), ug::GaussQuadratureOctahedron::GaussQuadratureOctahedron(), ug::GaussQuadraturePrism::GaussQuadraturePrism(), ug::GaussQuadraturePyramid::GaussQuadraturePyramid(), ug::GaussQuadratureQuadrilateral::GaussQuadratureQuadrilateral(), ug::GaussQuadratureTetrahedron::GaussQuadratureTetrahedron(), ug::GaussQuadratureTriangle::GaussQuadratureTriangle(), ug::PrintQuadRule(), ug::DimFVGeometry< TWorldDim, TDim >::update(), and ug::DimFVGeometry< TWorldDim, TDim >::update_local().
|
inline |
returns all positions in an array of size()
References ug::QuadratureRule< TDim >::m_pvPoint.
Referenced by ug::Integrate(), and ug::DimFEGeometry< TWorldDim, TRefDim >::update_local().
|
inline |
number of integration points
References ug::QuadratureRule< TDim >::m_numPoints.
Referenced by ug::GaussQuadratureHexahedron::GaussQuadratureHexahedron(), ug::GaussQuadratureOctahedron::GaussQuadratureOctahedron(), ug::GaussQuadraturePrism::GaussQuadraturePrism(), ug::GaussQuadraturePyramid::GaussQuadraturePyramid(), ug::GaussQuadratureQuadrilateral::GaussQuadratureQuadrilateral(), ug::GaussQuadratureTetrahedron::GaussQuadratureTetrahedron(), ug::GaussQuadratureTriangle::GaussQuadratureTriangle(), ug::Integrate(), ug::QuadratureRule< TDim >::point(), ug::PrintQuadRule(), ug::DimFVGeometry< TWorldDim, TDim >::update(), ug::DimFEGeometry< TWorldDim, TRefDim >::update_local(), ug::DimFVGeometry< TWorldDim, TDim >::update_local(), and ug::QuadratureRule< TDim >::weight().
|
inline |
return the i'th weight
References ug::QuadratureRule< TDim >::m_pvWeight, ug::QuadratureRule< TDim >::size(), and UG_ASSERT.
Referenced by ug::GaussQuadratureHexahedron::GaussQuadratureHexahedron(), ug::GaussQuadratureOctahedron::GaussQuadratureOctahedron(), ug::GaussQuadraturePrism::GaussQuadraturePrism(), ug::GaussQuadraturePyramid::GaussQuadraturePyramid(), ug::GaussQuadratureQuadrilateral::GaussQuadratureQuadrilateral(), ug::GaussQuadratureTetrahedron::GaussQuadratureTetrahedron(), ug::GaussQuadratureTriangle::GaussQuadratureTriangle(), ug::Integrate(), and ug::PrintQuadRule().
|
inline |
returns all weights in an array of size()
References ug::QuadratureRule< TDim >::m_pvWeight.
Referenced by ug::DimFEGeometry< TWorldDim, TRefDim >::update_local(), and ug::DimFVGeometry< TWorldDim, TDim >::update_local().
|
static |
Dimension of Reference Element.
|
protected |
number of points
Referenced by ug::QuadratureRule< TDim >::size().
|
protected |
Order of rule.
Referenced by ug::QuadratureRule< TDim >::order().
|
protected |
Integration points.
Referenced by ug::QuadratureRule< TDim >::point(), and ug::QuadratureRule< TDim >::points().
|
protected |
Weights.
Referenced by ug::QuadratureRule< TDim >::weight(), and ug::QuadratureRule< TDim >::weights().