AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
AnalyticGridFunction< Function, GridView > Class Template Reference

A Gridfunction that evaluates a function with global coordinates. More...

#include <AnalyticGridFunction.hpp>

Public Types

enum  { hasDerivative = true }
 
using EntitySet = Dune::Functions::GridViewEntitySet< GridView, 0 >
 
using Domain = typename EntitySet::GlobalCoordinate
 
using Range = remove_cvref_t< std::invoke_result_t< Function, Domain > >
 

Public Member Functions

 AnalyticGridFunction (Function const &fct, GridView const &gridView)
 Constructor. Stores the function fct and creates an EntitySet.
 
Range operator() (Domain const &x) const
 Return the evaluated functor at global coordinates.
 
EntitySet const & entitySet () const
 Returns entitySet_.
 
Function const & fct () const
 Returns fct_.
 

Friends

LocalFunction localFunction (AnalyticGridFunction const &gf)
 Return the AnalyticLocalFunction of the AnalyticGridFunction.
 

Detailed Description

template<class Function, class GridView>
class AMDiS::AnalyticGridFunction< Function, GridView >

A Gridfunction that evaluates a function with global coordinates.

Implements a GridFunction that wraps a functor around global coordinates.

Template Parameters
FunctionThe callable f=f(x) with x in Domain == GlobalCoordinates
GridViewA GridView that models Dune::GridViewConcept.

Requirements:

  • Function models Concepts::Callable<Domain>

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