ug4
ug::QuadratureRule< TDim > Class Template Reference

provides quadrature rule for a Reference Dimension More...

#include <quadrature.h>

Public Types

typedef MathVector< dimposition_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 numberweights () 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 numberm_pvWeight
 Weights. More...
 

Detailed Description

template<int TDim>
class ug::QuadratureRule< TDim >

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 \).

Template Parameters
TDimDimension of Reference Element

Member Typedef Documentation

◆ position_type

template<int TDim>
typedef MathVector<dim> ug::QuadratureRule< TDim >::position_type

Position Type in Reference Element Space.

◆ weight_type

template<int TDim>
typedef number ug::QuadratureRule< TDim >::weight_type

Type of weights.

Constructor & Destructor Documentation

◆ QuadratureRule()

template<int TDim>
ug::QuadratureRule< TDim >::QuadratureRule ( )
inline

constructor

◆ ~QuadratureRule()

template<int TDim>
virtual ug::QuadratureRule< TDim >::~QuadratureRule ( )
inlinevirtual

destructor

Member Function Documentation

◆ order()

◆ point()

◆ points()

template<int TDim>
const MathVector<dim>* ug::QuadratureRule< TDim >::points ( ) const
inline

◆ size()

◆ weight()

◆ weights()

template<int TDim>
const number* ug::QuadratureRule< TDim >::weights ( ) const
inline

Member Data Documentation

◆ dim

template<int TDim>
const int ug::QuadratureRule< TDim >::dim = TDim
static

Dimension of Reference Element.

◆ m_numPoints

template<int TDim>
size_t ug::QuadratureRule< TDim >::m_numPoints
protected

number of points

Referenced by ug::QuadratureRule< TDim >::size().

◆ m_order

template<int TDim>
int ug::QuadratureRule< TDim >::m_order
protected

Order of rule.

Referenced by ug::QuadratureRule< TDim >::order().

◆ m_pvPoint

template<int TDim>
const MathVector<dim>* ug::QuadratureRule< TDim >::m_pvPoint
protected

◆ m_pvWeight

template<int TDim>
const number* ug::QuadratureRule< TDim >::m_pvWeight
protected

The documentation for this class was generated from the following file: