Class template Dune::XT::Functions::GenericFluxFunction

Inherits from Dune::XT::Functions::FluxFunctionInterface.

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
class Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R> : public FluxFunctionInterface<E, s, r, rC, R>

A function given by a lambda expression or std::function which is evaluated locally on each element.

GenericFluxFunction<…> f([](const auto& param){ return param.get(“power”).at(0)}, // order [](const auto& grid_element){ // do nothing } // post_bind [](const auto& x, const auto& u, const auto& param) // evaluate { const auto p = param.get(“power”).at(0); return u * std::pow(x[0], p); } XT::Common::ParameterType(“power”, 1), // parameter_type “x_power_p”); // name

To model the function f(x, u) = x[0]^p * u with a variable exponent p, use as

The XT::Common::ParameterType provided on construction ensures that the XT::Common::Parameter param which is passed on to the generic function is of correct type.

Note

The Localfunction does not implement derivative.

Class Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction

Inherits from Dune::XT::Functions::ElementFluxFunctionInterface.

class Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction : public ElementFluxFunctionInterface<E, s, r, rC, R>

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::post_bind

void Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::post_bind(const ElementType &element) final

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::order

int Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::order(const XT::Common::Parameter &param) const final

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::evaluate

RangeReturnType Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::evaluate(const DomainType &point_in_local_coordinates, const StateType &u, const Common::Parameter &param) const final

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::jacobian

JacobianRangeReturnType Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::jacobian(const DomainType &point_in_local_coordinates, const StateType &u, const Common::Parameter &param) const final

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::evaluate

void Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::evaluate(const DomainType &point_in_local_coordinates, const StateType &u, DynamicRangeType &ret, const Common::Parameter &param) const final

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::jacobian

void Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::jacobian(const DomainType &point_in_local_coordinates, const StateType &u, DynamicJacobianRangeType &ret, const Common::Parameter &param) const final

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::parameter_type

const Common::ParameterType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::parameter_type() const final

No documentation provided.

Constructor Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::LocalGenericFluxFunction

Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::LocalGenericFluxFunction(const GenericOrderFunctionType &order_func, const GenericPostBindFunctionType &post_bind_func, const GenericEvaluateFunctionType &evaluate_func, const GenericDynamicEvaluateFunctionType &dynamic_evaluate_func, const Common::ParameterType &param_type, const GenericJacobianFunctionType &jacobian_func, const GenericDynamicJacobianFunctionType &dynamic_jacobian_func)

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::order_

const GenericOrderFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::order_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::post_bind_

const GenericPostBindFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::post_bind_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::evaluate_

const GenericEvaluateFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::evaluate_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::dynamic_evaluate_

const GenericDynamicEvaluateFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::dynamic_evaluate_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::param_type_

const Common::ParameterType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::param_type_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::jacobian_

const GenericJacobianFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::jacobian_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::dynamic_jacobian_

const GenericDynamicJacobianFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::dynamic_jacobian_

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::BaseType

type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::BaseType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericEvaluateFunctionType

type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericEvaluateFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericDynamicEvaluateFunctionType

type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericDynamicEvaluateFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericPostBindFunctionType

type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericPostBindFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericOrderFunctionType

type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericOrderFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericJacobianFunctionType

type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericJacobianFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericDynamicJacobianFunctionType

type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericDynamicJacobianFunctionType

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::parameter_type

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
const Common::ParameterType &Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::parameter_type() const final

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::name

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
std::string Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::name() const final

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::local_function

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
int Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::local_function() const final

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::default_order_lambda

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
static GenericOrderFunctionType Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::default_order_lambda(const int ord)

\ }

´´These methods may be used to provide defaults on construction.‘’

\ {

Method Dune::XT::Functions::GenericFluxFunction::default_post_bind_function

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
static GenericPostBindFunctionType Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::default_post_bind_function()

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::default_evaluate_function

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
static GenericEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::default_evaluate_function()

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::default_dynamic_evaluate_function

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
static GenericDynamicEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::default_dynamic_evaluate_function()

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::default_jacobian_function

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
static GenericJacobianFunctionType Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::default_jacobian_function()

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::default_dynamic_jacobian_function

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
static GenericDynamicJacobianFunctionType Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::default_dynamic_jacobian_function()

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::evaluate_from_dynamic_evaluate

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
static GenericEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::evaluate_from_dynamic_evaluate(const GenericDynamicEvaluateFunctionType &dynamic_evaluate)

No documentation provided.

Method Dune::XT::Functions::GenericFluxFunction::jacobian_from_dynamic_jacobian

template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
static GenericJacobianFunctionType Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::jacobian_from_dynamic_jacobian(const GenericDynamicJacobianFunctionType &dynamic_jacobian)

No documentation provided.

Constructor Dune::XT::Functions::GenericFluxFunction::GenericFluxFunction<E, s, r, rC, R>

template<>
template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::GenericFluxFunction<E, s, r, rC, R>(const int ord, GenericPostBindFunctionType post_bind_func = default_post_bind_function(), GenericEvaluateFunctionType evaluate_func = default_evaluate_function(), Common::ParameterType param_type = Common::ParameterType(), std::string nm, GenericJacobianFunctionType jacobian_func = default_jacobian_function())

No documentation provided.

Constructor Dune::XT::Functions::GenericFluxFunction::GenericFluxFunction<E, s, r, rC, R>

template<>
template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::GenericFluxFunction<E, s, r, rC, R>(GenericOrderFunctionType order_func, GenericPostBindFunctionType post_bind_func = default_post_bind_function(), GenericEvaluateFunctionType evaluate_func = default_evaluate_function(), Common::ParameterType param_type = Common::ParameterType(), std::string nm, GenericJacobianFunctionType jacobian_func = default_jacobian_function())

No documentation provided.

Constructor Dune::XT::Functions::GenericFluxFunction::GenericFluxFunction<E, s, r, rC, R>

template<>
template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::GenericFluxFunction<E, s, r, rC, R>(const int ord, GenericPostBindFunctionType post_bind_func, GenericDynamicEvaluateFunctionType evaluate_func, Common::ParameterType param_type = Common::ParameterType(), std::string nm, GenericDynamicJacobianFunctionType jacobian_func = default_dynamic_jacobian_function())

No documentation provided.

Constructor Dune::XT::Functions::GenericFluxFunction::GenericFluxFunction<E, s, r, rC, R>

template<>
template<class E, size_t s = 1, size_t r = 1, size_t rC = 1, class R = double>
Dune::XT::Functions::GenericFluxFunction<E, s, r, rC, R>::GenericFluxFunction<E, s, r, rC, R>(GenericOrderFunctionType order_func, GenericPostBindFunctionType post_bind_func, GenericDynamicEvaluateFunctionType evaluate_func, Common::ParameterType param_type = Common::ParameterType(), std::string nm, GenericDynamicJacobianFunctionType jacobian_func = default_dynamic_jacobian_function())

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::order_

const GenericOrderFunctionType Dune::XT::Functions::GenericFluxFunction::order_

Field Dune::XT::Functions::GenericFluxFunction::post_bind_

const GenericPostBindFunctionType Dune::XT::Functions::GenericFluxFunction::post_bind_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::evaluate_

const GenericEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction::evaluate_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::dynamic_evaluate_

const GenericDynamicEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction::dynamic_evaluate_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::param_type_

const Common::ParameterType Dune::XT::Functions::GenericFluxFunction::param_type_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::name_

const std::string Dune::XT::Functions::GenericFluxFunction::name_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::jacobian_

GenericJacobianFunctionType Dune::XT::Functions::GenericFluxFunction::jacobian_

No documentation provided.

Field Dune::XT::Functions::GenericFluxFunction::dynamic_jacobian_

GenericDynamicJacobianFunctionType Dune::XT::Functions::GenericFluxFunction::dynamic_jacobian_

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::BaseType

type Dune::XT::Functions::GenericFluxFunction::BaseType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::DomainType

type Dune::XT::Functions::GenericFluxFunction::DomainType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::StateType

type Dune::XT::Functions::GenericFluxFunction::StateType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::RangeType

type Dune::XT::Functions::GenericFluxFunction::RangeType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::DynamicRangeType

type Dune::XT::Functions::GenericFluxFunction::DynamicRangeType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::JacobianRangeType

type Dune::XT::Functions::GenericFluxFunction::JacobianRangeType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::RangeReturnType

type Dune::XT::Functions::GenericFluxFunction::RangeReturnType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::JacobianRangeReturnType

type Dune::XT::Functions::GenericFluxFunction::JacobianRangeReturnType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::DynamicJacobianRangeType

type Dune::XT::Functions::GenericFluxFunction::DynamicJacobianRangeType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::GenericOrderFunctionType

type Dune::XT::Functions::GenericFluxFunction::GenericOrderFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::GenericPostBindFunctionType

type Dune::XT::Functions::GenericFluxFunction::GenericPostBindFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::GenericEvaluateFunctionType

type Dune::XT::Functions::GenericFluxFunction::GenericEvaluateFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::GenericDynamicEvaluateFunctionType

type Dune::XT::Functions::GenericFluxFunction::GenericDynamicEvaluateFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::GenericJacobianFunctionType

type Dune::XT::Functions::GenericFluxFunction::GenericJacobianFunctionType

No documentation provided.

Type alias Dune::XT::Functions::GenericFluxFunction::GenericDynamicJacobianFunctionType

type Dune::XT::Functions::GenericFluxFunction::GenericDynamicJacobianFunctionType

No documentation provided.