Class template Dune::XT::Functions::GridFunctionInterface

template<class E, size_t r, size_t rC, class R>
class Dune::XT::Functions::GridFunctionInterface

Interface for functions which can be localized to an element.

We follow one strong assumption in dune-xt-functions: after being localized to an element, a local function (or a set of local functions) has to provide the order which is required to integrate it exactly on this element, and it should thus coincide with a polynomial of respective order on an element. While there exists non-polynomial data functions, we only have quadratures of finite order and no way to detect discontinuities of functions (thus the order of the local polynomial approximation must be provided). This encourages the user to really think about the data functions when implementing/using them, but avoids situations which could not be handled generically later on.

std::string Dune::XT::Functions::GridFunctionInterface::logging_id() const

No documentation provided.

ThisType &Dune::XT::Functions::GridFunctionInterface::operator=(const ThisType&) = delete

No documentation provided.

ThisType &Dune::XT::Functions::GridFunctionInterface::operator=(ThisType&&) = delete

No documentation provided.

static std::string Dune::XT::Functions::GridFunctionInterface::static_id()

No documentation provided.

int Dune::XT::Functions::GridFunctionInterface::copy_as_grid_function() const

Returns a (shallow) copy of the function. actual implementation work is delegated to the private copy_as_function_impl combined with hiding copy_as_function in dervived classes, this allows us the a unique_ptr with correct type at all levels of the polymorphic hierarchy

Note

This is intended to be cheap, so make sure to share resources (but in a thread-safe way)!

virtual ThisType *Dune::XT::Functions::GridFunctionInterface::copy_as_grid_function_impl() const = 0

No documentation provided.

int Dune::XT::Functions::GridFunctionInterface::local_function() const = 0

Returns the local function which can be bound to grid elements.

Note

If possible, the returned function should be able to live on its own, e.g. by copying the grid function.

virtual std::string Dune::XT::Functions::GridFunctionInterface::name() const

\ }

´´These methods should be implemented in order to identify the function.‘’

\ {

Functions::DifferenceGridFunction<ThisType, ThisType> Dune::XT::Functions::GridFunctionInterface::operator-(const ThisType &other) const

\ {

Operators emulating numeric types.

Functions::SumGridFunction<ThisType, ThisType> Dune::XT::Functions::GridFunctionInterface::operator+(const ThisType &other) const

No documentation provided.

template<>
Dune::XT::Functions::GridFunctionInterface::GridFunctionInterface<E, r, rC, R>(const Common::ParameterType &param_type = {}, const std::string &logging_prefix = <recovery-expr>(""), const std::array<bool, 3> &logging_state = <recovery-expr>())

No documentation provided.

template<>
Dune::XT::Functions::GridFunctionInterface::GridFunctionInterface<E, r, rC, R>(const ThisType &other)

No documentation provided.

template<>
Dune::XT::Functions::GridFunctionInterface::GridFunctionInterface<E, r, rC, R>(ThisType&) = default

No documentation provided.

template<>
~GridFunctionInterface<Element, rangeDim, rangeDimCols, RangeField>() override = default

No documentation provided.

const size_t Dune::XT::Functions::GridFunctionInterface::domain_dim

No documentation provided.

const size_t Dune::XT::Functions::GridFunctionInterface::range_dim

No documentation provided.

const size_t Dune::XT::Functions::GridFunctionInterface::range_dim_cols

No documentation provided.

const size_t Dune::XT::Functions::GridFunctionInterface::d

No documentation provided.

const size_t Dune::XT::Functions::GridFunctionInterface::r

No documentation provided.

const size_t Dune::XT::Functions::GridFunctionInterface::rC

No documentation provided.

const bool Dune::XT::Functions::GridFunctionInterface::available

No documentation provided.

type Dune::XT::Functions::GridFunctionInterface::ThisType

No documentation provided.

type Dune::XT::Functions::GridFunctionInterface::Logger

No documentation provided.

type Dune::XT::Functions::GridFunctionInterface::LocalFunctionType

No documentation provided.

type Dune::XT::Functions::GridFunctionInterface::ElementType

No documentation provided.

type Dune::XT::Functions::GridFunctionInterface::DomainFieldType

No documentation provided.

type Dune::XT::Functions::GridFunctionInterface::RangeFieldType

No documentation provided.

type Dune::XT::Functions::GridFunctionInterface::E

No documentation provided.

type Dune::XT::Functions::GridFunctionInterface::D

No documentation provided.

type Dune::XT::Functions::GridFunctionInterface::R

No documentation provided.