Dune-Fufem 2.11-git
Loading...
Searching...
No Matches
FunctionIntegrator Class Reference

provides static methods for numerical integration More...

#include <dune/fufem/functiontools/functionintegrator.hh>

Static Public Member Functions

template<class GridView , class FunctionType >
static auto integrate (const GridView &gv, const FunctionType &integrand, const int quad_order)
 numerically integrates a given function
 
template<class RangeType , class BasisType , class VectorType >
static auto integrateDiscreteFunction (const BasisType &basis, const VectorType &integrandCoeff, const int quad_order)
 numerically integrates a gridfunction given by a coefficient vector
 

Detailed Description

provides static methods for numerical integration

Member Function Documentation

◆ integrate()

template<class GridView , class FunctionType >
static auto FunctionIntegrator::integrate ( const GridView &  gv,
const FunctionType &  integrand,
const int  quad_order 
)
inlinestatic

numerically integrates a given function

Numerically integrates the given integrand over the domain covered by the given GridView using a Dune::QuadratureRule of order quad_order on the grid specified by the GridView.

Template Parameters
GridViewthe type of the GridView provided
FunctionTypethe type of the function provided, needs to provide method void evalall(...) and the FunctionType's rangetype has to be RT
Parameters
gvthe GridView describing the domain of integration and the Grid for quadrature
integrandthe function to be integrated
quad_orderthe order of the quadrature rule employed

◆ integrateDiscreteFunction()

template<class RangeType , class BasisType , class VectorType >
static auto FunctionIntegrator::integrateDiscreteFunction ( const BasisType &  basis,
const VectorType &  integrandCoeff,
const int  quad_order 
)
inlinestatic

numerically integrates a gridfunction given by a coefficient vector

Numerically integrates the gridfunction represented by a coefficient vector in a given basis using a Dune::QuadratureRule of order quad_order.

Template Parameters
RangeTypeRange type for the grid function
BasisTypethe functionspace basis for the coefficient representation
VectorTypethe type of the coefficient vector
Parameters
basisthe functionspace basis of the gridfunction
integrandCoeffthe coefficient vector
quad_orderthe order of the quadrature rule employed

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