DUNE-FEM (unstable)

Dune::Fem::Integrator< Quadrature > Class Template Reference

integrator for arbitrary functions providing evaluate More...

#include <dune/fem/quadrature/integrator.hh>

Public Types

typedef Quadrature QuadratureType
 type of quadrature to use
 
typedef QuadratureType ::EntityType EntityType
 type of the entity
 

Public Member Functions

 Integrator (unsigned int order)
 constructor More...
 
template<class Function >
void integrateAdd (const EntityType &entity, const Function &function, typename Function ::RangeType &ret) const
 add the integral over an entity to a variable More...
 
template<class Function >
void integrate (const EntityType &entity, const Function &function, typename Function ::RangeType &ret) const
 integrate a function over an entity More...
 

Detailed Description

template<class Quadrature>
class Dune::Fem::Integrator< Quadrature >

integrator for arbitrary functions providing evaluate

Parameters
Quadraturequadrature to use (either ElementQuadrature or CachingQuadrature)

Constructor & Destructor Documentation

◆ Integrator()

template<class Quadrature >
Dune::Fem::Integrator< Quadrature >::Integrator ( unsigned int  order)
inlineexplicit

constructor

Parameters
[in]orderpolynomial order for which the used quadrature shall be exact

Member Function Documentation

◆ integrate()

template<class Quadrature >
template<class Function >
void Dune::Fem::Integrator< Quadrature >::integrate ( const EntityType entity,
const Function function,
typename Function ::RangeType &  ret 
) const
inline

integrate a function over an entity

The function needs to have an evaluate method supporting wrapped quadrature points. The declaration should look as follows:

template< class Point >
evaluate( Point &x, RangeType &ret );
Note
The RangeType should be compatible with a Dune FieldVector.
Parameters
[in]entityentity to integrate over
[in]functionfunction to integrate
[out]retvalue of the integral

References Dune::Fem::Integrator< Quadrature >::integrateAdd().

◆ integrateAdd()

template<class Quadrature >
template<class Function >
void Dune::Fem::Integrator< Quadrature >::integrateAdd ( const EntityType entity,
const Function function,
typename Function ::RangeType &  ret 
) const
inline

add the integral over an entity to a variable

The function needs to have an evaluate method supporting wrapped quadrature points. The declaration should look as follows:

template< class Point >
evaluate( Point &x, RangeType &ret );
Note
The RangeType should be compatible with a Dune FieldVector.
Parameters
[in]entityentity to integrate over
[in]functionfunction to integrate
retvariable to which the value of the integral is added

Referenced by Dune::Fem::Integrator< Quadrature >::integrate().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 3, 22:32, 2024)