3#include <dune/common/fvector.hh>
4#include <dune/common/fmatrix.hh>
5#include <dune/common/diagonalmatrix.hh>
6#include <dune/common/typeutilities.hh>
8#include <amdis/common/DerivativeTraits.hpp>
9#include <amdis/gridfunctions/AnalyticGridFunction.hpp>
26 template <
class Gr
idView>
27 static auto create(
Self const& f, GridView
const& gridView)
33 template <
class T,
int N>
34 Dune::FieldVector<T, N>
const& operator()(Dune::FieldVector<T, N>
const& x)
const
46 template <
class T,
int N>
47 Dune::DiagonalMatrix<T, N>
const& operator()(Dune::FieldVector<T, N>
const& )
const
49 return Dune::DiagonalMatrix<T,N>{T(1)};
66 template <
class Gr
idView>
67 static auto create(
Self const& f, GridView
const& gridView)
79 template <
class T,
int N>
80 T
const& operator()(Dune::FieldVector<T, N>
const& x)
const
96 template <
class T,
int N>
97 Dune::FieldVector<T, N> operator()(Dune::FieldVector<T, N>
const& )
const
99 Dune::FieldVector<T, N> result(0);
100 result[comp_] = T(1);
125 return Operation::CoordsFunction{};
129 inline auto X(
int comp)
131 return Operation::CoordsCompFunction{comp};
A Gridfunction that evaluates a function with global coordinates.
Definition: AnalyticGridFunction.hpp:151
Definition: CoordsGridFunction.hpp:65
Definition: CoordsGridFunction.hpp:91
A functor that evaluates to a component of the global coordinates.
Definition: CoordsGridFunction.hpp:61
CoordsCompFunction(int comp)
Constructor. Stores the component comp of the coordinates.
Definition: CoordsGridFunction.hpp:75
Definition: CoordsGridFunction.hpp:25
Definition: CoordsGridFunction.hpp:45
A functor that evaluates to the global coordinates.
Definition: CoordsGridFunction.hpp:21
Definition: GridFunction.hpp:27
Definition: DerivativeTraits.hpp:19