Class template Dune::XT::Functions::SlicedGridFunction<GF, r, 1>

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

template<class GF, size_t r>
class Dune::XT::Functions::SlicedGridFunction<GF, r, 1> : 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):

auto density                = XT::Functions::make_sliced_function<1>(u, {0},    "density");
auto density_times_velocity = XT::Functions::make_sliced_function<d>(u, {1, 2}, "density_times_velocity");
auto energy                 = XT::Functions::make_sliced_function<1>(u, {3},    "energy");

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

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

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

No documentation provided.

Method Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::post_bind

template<class GF, size_t r>
void Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::SlicedLocalFunction::post_bind(const ElementType &element) final

No documentation provided.

Method Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::order

template<class GF, size_t r>
int Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::SlicedLocalFunction::order(const XT::Common::Parameter& = {}) const final

No documentation provided.

Method Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::evaluate

template<class GF, size_t r>
RangeReturnType Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::SlicedLocalFunction::evaluate(const DomainType &xx, const XT::Common::Parameter &param = {}) const final

No documentation provided.

Method Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::jacobian

template<class GF, size_t r>
DerivativeRangeReturnType Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::SlicedLocalFunction::jacobian(const DomainType&, const XT::Common::Parameter& = {}) const final

No documentation provided.

Constructor Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::SlicedLocalFunction

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

No documentation provided.

Field Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::function_

template<class GF, size_t r>
std::unique_ptr<GridFunctionInterface<typename GF::E, GF::r, GF::rC, typename GF::R>> Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::SlicedLocalFunction::function_

No documentation provided.

Field Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::local_function_

template<class GF, size_t r>
std::unique_ptr<typename GF::LocalFunctionType> Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::SlicedLocalFunction::local_function_

No documentation provided.

Field Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::dims_

template<class GF, size_t r>
const std::array<size_t, r> Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::SlicedLocalFunction::dims_

No documentation provided.

Type alias Dune::XT::Functions::SlicedGridFunction::SlicedLocalFunction::BaseType

template<class GF, size_t r>
using Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::SlicedLocalFunction::BaseType = XT::Functions::ElementFunctionInterface<typename GF::E, r, 1, typename GF::R>

No documentation provided.

Method Dune::XT::Functions::SlicedGridFunction::copy_as_grid_function_impl

template<class GF, size_t r>
ThisType *Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::copy_as_grid_function_impl() const override

No documentation provided.

Method Dune::XT::Functions::SlicedGridFunction::copy_as_grid_function

template<class GF, size_t r>
std::unique_ptr<ThisType> Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::copy_as_grid_function() const

No documentation provided.

Method Dune::XT::Functions::SlicedGridFunction::name

template<class GF, size_t r>
std::string Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::name() const final

No documentation provided.

Method Dune::XT::Functions::SlicedGridFunction::local_function

template<class GF, size_t r>
std::unique_ptr<LocalFunctionType> Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::local_function() const final

No documentation provided.

Constructor Dune::XT::Functions::SlicedGridFunction::SlicedGridFunction

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

No documentation provided.

Constructor Dune::XT::Functions::SlicedGridFunction::SlicedGridFunction

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

No documentation provided.

Constructor Dune::XT::Functions::SlicedGridFunction::SlicedGridFunction

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

No documentation provided.

Field Dune::XT::Functions::SlicedGridFunction::function_

template<class GF, size_t r>
std::unique_ptr<GridFunctionInterface<typename GF::E, GF::r, GF::rC, typename GF::R>> Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::function_

No documentation provided.

Field Dune::XT::Functions::SlicedGridFunction::dims_

template<class GF, size_t r>
const std::array<size_t, r> Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::dims_

No documentation provided.

Field Dune::XT::Functions::SlicedGridFunction::name_

template<class GF, size_t r>
const std::string &Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::name_

No documentation provided.

Type alias Dune::XT::Functions::SlicedGridFunction::ThisType

template<class GF, size_t r>
using Dune::XT::Functions::SlicedGridFunction<GF, r, 1>::ThisType = SlicedGridFunction<GF, r, 1>

No documentation provided.

Type alias Dune::XT::Functions::SlicedGridFunction::BaseType

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

No documentation provided.