Class template Dune::XT::Functions::SlicedGridFunction

Inherits from Dune::XT::Functions::GridFunctionInterface.

template<class GF, size_t r>
class Dune::XT::Functions::SlicedGridFunction : public XT::Functions::GridFunctionInterface<typename GF::E, r, 1, typename GF::R>

Can be used to extract components of a function as a new function. Consider a given function u: R^d -> R^{d+2}, i.e. modeling [density (scalar), density*velocity (d-dimensional), energy (scalar)] in the context of the euler equations and one wishes to obtain the individual components for further postprocessing or visualization, the following code would achieve just that (in the case d = 2 with u already given):

Class Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction

Inherits from Dune::XT::Functions::ElementFunctionInterface.

class Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction : public XT::Functions::ElementFunctionInterface<typename GF::E, r, 1, typename GF::R>

No documentation provided.

void Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::post_bind(const ElementType &element) final

No documentation provided.

int Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::order(const XT::Common::Parameter& = <recovery-expr>({})) const final

No documentation provided.

RangeReturnType Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::evaluate(const DomainType &xx, const XT::Common::Parameter &param = <recovery-expr>({})) const final

No documentation provided.

DerivativeRangeReturnType Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::jacobian(const DomainType&, const XT::Common::Parameter& = <recovery-expr>({})) const final

No documentation provided.

Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::SlicedLocalFunction(const GF &function, const std::array<size_t, r> &dims)

No documentation provided.

int Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::function_

No documentation provided.

int Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::local_function_

No documentation provided.

const std::array<size_t, r> Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::dims_

No documentation provided.

type Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::BaseType

No documentation provided.

ThisType *Dune::XT::Functions::SlicedGridFunction::copy_as_grid_function_impl() const override

No documentation provided.

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

No documentation provided.

std::string Dune::XT::Functions::SlicedGridFunction::name() const final

No documentation provided.

int Dune::XT::Functions::SlicedGridFunction::local_function() const final

No documentation provided.

template<>
Dune::XT::Functions::SlicedGridFunction::SlicedGridFunction<GF, r, 1>(const GF &function, const std::array<size_t, r> &dims, const std::string &nm = <recovery-expr>(""))

No documentation provided.

template<>
Dune::XT::Functions::SlicedGridFunction::SlicedGridFunction<GF, r, 1>(const ThisType &other)

No documentation provided.

template<>
Dune::XT::Functions::SlicedGridFunction::SlicedGridFunction<GF, r, 1>(ThisType&&) noexcept = default

No documentation provided.

int Dune::XT::Functions::SlicedGridFunction::function_

No documentation provided.

const std::array<size_t, r> Dune::XT::Functions::SlicedGridFunction::dims_

No documentation provided.

const std::string &Dune::XT::Functions::SlicedGridFunction::name_

No documentation provided.

type Dune::XT::Functions::SlicedGridFunction::ThisType

No documentation provided.

type Dune::XT::Functions::SlicedGridFunction::BaseType

No documentation provided.