DUNE PDELab (2.8)

PDELab Function

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]

template<typename GF >
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

sum = gf.getGridView().comm().sum(sum);
GF::Traits::RangeType integrateGridFunction(const GF &gf, unsigned qorder=1)
Integrate a GridFunction.
Definition: functionutilities.hh:51
Template Parameters
GFType of the GridFunction.
Parameters
gfThe GridFunction object.
sumResulting integral. There is no need to clear this variable before calling this function.
qorderQuadrature 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]

template<typename GF >
GF::Traits::RangeType Dune::PDELab::integrateGridFunction ( const GF &  gf,
unsigned  qorder = 1 
)

Integrate a GridFunction.

#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

sum = gf.getGridView().comm().sum(sum);
Template Parameters
GFType of the GridFunction.
Parameters
gfThe GridFunction object.
qorderQuadrature 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   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 27, 22:29, 2024)