3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Namespaces | Functions
integrate.hh File Reference

Define helper functions for integration. More...

#include <cmath>
#include <type_traits>
#include <dune/geometry/quadraturerules.hh>
#include <dune/common/concept.hh>
#include <dumux/common/doubleexpintegrator.hh>
#include <dumux/discretization/evalsolution.hh>
#include <dumux/discretization/elementsolution.hh>
#include <dumux/common/typetraits/typetraits.hh>

Go to the source code of this file.

Description

Define helper functions for integration.

Namespaces

namespace  Dumux
 

Functions

template<class GridGeometry , class SolutionVector , typename std::enable_if_t<!Impl::hasLocalFunction< SolutionVector >(), int > = 0>
auto Dumux::integrateGridFunction (const GridGeometry &gg, const SolutionVector &sol, std::size_t order)
 Integrate a grid function over a grid view. More...
 
template<class GridGeometry , class Sol1 , class Sol2 , typename std::enable_if_t<!Impl::hasLocalFunction< Sol1 >(), int > = 0>
auto Dumux::integrateL2Error (const GridGeometry &gg, const Sol1 &sol1, const Sol2 &sol2, std::size_t order)
 Integrate a function over a grid view. More...
 
template<class Scalar , class Function , typename std::enable_if_t< std::is_invocable_r_v< Scalar, Function, Scalar > > ...>
Scalar Dumux::integrateScalarFunction (const Function &f, const Scalar lowerBound, const Scalar upperBound, const Scalar targetAbsoluteError=1e-13)
 Integrate a scalar function. More...
 
Include dependency graph for integrate.hh: