DUNE PDELab (2.8)
Modules | |
GridFunctionTree | |
Function Adapters | |
Classes | |
struct | Dune::PDELab::FunctionTraits< DF, n, D, RF, m, R > |
class | Dune::PDELab::FunctionInterface< T, Imp > |
a Function that maps x in DomainType to y in RangeType More... | |
class | Dune::PDELab::InstationaryFunctionDefaults |
Default class for additional methods in instationary functions. More... | |
struct | Dune::PDELab::PowerCompositeGridFunctionTraits< GV > |
GV The type of the grid view the function lives on. More... | |
class | Dune::PDELab::GridFunctionOutputParameters |
Mixin base class for specifying output hints to I/O routines like VTK. More... | |
struct | Dune::PDELab::GridFunctionTraits< GV, RF, m, R > |
traits class holding the function signature, same as in local function More... | |
class | Dune::PDELab::GridFunctionInterface< T, Imp > |
a GridFunction maps x in DomainType to y in RangeType More... | |
struct | Dune::PDELab::BoundaryGridFunctionTraits< GV, RF, m, R > |
traits class holding function signature, same as in local function More... | |
class | Dune::PDELab::BoundaryGridFunctionInterface< T, Imp > |
A BoundaryGridFunction allows evaluation on boundary intersections. More... | |
class | Dune::PDELab::GridFunctionProbe< GF > |
Evaluate a GridFunction at a certain global coordinate. More... | |
Functions | |
template<typename GF > | |
GF::Traits::RangeType | Dune::PDELab::integrateGridFunction (const GF &gf, unsigned qorder=1) |
Integrate a GridFunction. More... | |
template<typename GF > | |
void | Dune::PDELab::integrateGridFunction (const GF &gf, typename GF::Traits::RangeType &sum, unsigned qorder=1) |
Integrate a GridFunction. More... | |
Detailed Description
Function Documentation
◆ integrateGridFunction() [1/2]
void Dune::PDELab::integrateGridFunction | ( | const GF & | gf, |
typename GF::Traits::RangeType & | sum, | ||
unsigned | qorder = 1 |
||
) |
Integrate a GridFunction.
\code
#include <dune/pdelab/common/functionutilities.hh>
Integrate a GridFunction over the domain given by the GridFunction's GridView. In the parallel case, this function integrates over the Interior_Partition only. If the accumulated result over all processors result is required, use something like
- Template Parameters
-
GF Type of the GridFunction.
- Parameters
-
gf The GridFunction object. sum Resulting integral. There is no need to clear this variable before calling this function. qorder Quadrature order to use. If the GridFunction is element-wise polynomial, then this is the order of the highest-order monom needed to represent the function.
References Dune::FloatCmp::gt(), Dune::Geometry< mydim, cdim, GridImp, GeometryImp >::integrationElement(), Dune::Partitions::interior, and Dune::Geometry< mydim, cdim, GridImp, GeometryImp >::type().
Referenced by Dune::PDELab::integrateGridFunction().
◆ integrateGridFunction() [2/2]
GF::Traits::RangeType Dune::PDELab::integrateGridFunction | ( | const GF & | gf, |
unsigned | qorder = 1 |
||
) |
Integrate a GridFunction.
Integrate a GridFunction over the domain given by the GridFunction's GridView. In the parallel case, this function integrates over the Interior_Partition only. If the accumulated result over all processors result is required, use something like
- Template Parameters
-
GF Type of the GridFunction.
- Parameters
-
gf The GridFunction object. qorder Quadrature order to use. If the GridFunction is element-wise polynomial, then this is the order of the highest-order monom needed to represent the function.
- Returns
- Resulting integral.
- Examples
- recipe-grid-function-operations.cc, recipe-integrating-grid-functions.cc, and recipe-operator-splitting.cc.
References Dune::PDELab::integrateGridFunction().
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)