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 : 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.
-
void Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::post_bind(const ElementType &element) final¶
No documentation provided.
-
int Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::order(const XT::Common::Parameter ¶m =
<recovery-expr>({})) const final¶ No documentation provided.
-
RangeReturnType Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::evaluate(const DomainType &point_in_local_coordinates, const StateType &u, const Common::Parameter ¶m =
<recovery-expr>({})) const final¶ No documentation provided.
-
JacobianRangeReturnType Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::jacobian(const DomainType &point_in_local_coordinates, const StateType &u, const Common::Parameter ¶m =
<recovery-expr>({})) const final¶ No documentation provided.
-
void Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::evaluate(const DomainType &point_in_local_coordinates, const StateType &u, DynamicRangeType &ret, const Common::Parameter ¶m =
<recovery-expr>({})) const final¶ No documentation provided.
-
void Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::jacobian(const DomainType &point_in_local_coordinates, const StateType &u, DynamicJacobianRangeType &ret, const Common::Parameter ¶m =
<recovery-expr>({})) const final¶ No documentation provided.
-
const Common::ParameterType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::parameter_type() const final¶
No documentation provided.
-
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 ¶m_type, const GenericJacobianFunctionType &jacobian_func, const GenericDynamicJacobianFunctionType &dynamic_jacobian_func)¶
No documentation provided.
-
const GenericOrderFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::order_¶
No documentation provided.
-
const GenericPostBindFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::post_bind_¶
No documentation provided.
-
const GenericEvaluateFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::evaluate_¶
No documentation provided.
-
const GenericDynamicEvaluateFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::dynamic_evaluate_¶
No documentation provided.
-
const Common::ParameterType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::param_type_¶
No documentation provided.
-
const GenericJacobianFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::jacobian_¶
No documentation provided.
-
const GenericDynamicJacobianFunctionType &Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::dynamic_jacobian_¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::BaseType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericEvaluateFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericDynamicEvaluateFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericPostBindFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericOrderFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericJacobianFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::LocalGenericFluxFunction::GenericDynamicJacobianFunctionType¶
No documentation provided.
-
const Common::ParameterType &Dune::XT::Functions::GenericFluxFunction::parameter_type() const final¶
No documentation provided.
-
std::string Dune::XT::Functions::GenericFluxFunction::name() const final¶
No documentation provided.
-
int Dune::XT::Functions::GenericFluxFunction::local_function() const final¶
No documentation provided.
-
static GenericOrderFunctionType Dune::XT::Functions::GenericFluxFunction::default_order_lambda(const int ord)¶
\ }
´´These methods may be used to provide defaults on construction.‘’
\ {
-
static GenericPostBindFunctionType Dune::XT::Functions::GenericFluxFunction::default_post_bind_function()¶
No documentation provided.
-
static GenericEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction::default_evaluate_function()¶
No documentation provided.
-
static GenericDynamicEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction::default_dynamic_evaluate_function()¶
No documentation provided.
-
static GenericJacobianFunctionType Dune::XT::Functions::GenericFluxFunction::default_jacobian_function()¶
No documentation provided.
-
static GenericDynamicJacobianFunctionType Dune::XT::Functions::GenericFluxFunction::default_dynamic_jacobian_function()¶
No documentation provided.
-
static GenericEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction::evaluate_from_dynamic_evaluate(const GenericDynamicEvaluateFunctionType &dynamic_evaluate)¶
No documentation provided.
-
static GenericJacobianFunctionType Dune::XT::Functions::GenericFluxFunction::jacobian_from_dynamic_jacobian(const GenericDynamicJacobianFunctionType &dynamic_jacobian)¶
No documentation provided.
-
template<>
Dune::XT::Functions::GenericFluxFunction::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 =<recovery-expr>("GenericFluxFunction"), GenericJacobianFunctionType jacobian_func = default_jacobian_function())¶ No documentation provided.
-
template<>
Dune::XT::Functions::GenericFluxFunction::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 =<recovery-expr>("GenericFluxFunction"), GenericJacobianFunctionType jacobian_func = default_jacobian_function())¶ No documentation provided.
-
template<>
Dune::XT::Functions::GenericFluxFunction::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 =<recovery-expr>("GenericFluxFunction"), GenericDynamicJacobianFunctionType jacobian_func = default_dynamic_jacobian_function())¶ No documentation provided.
-
template<>
Dune::XT::Functions::GenericFluxFunction::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 =<recovery-expr>("GenericFluxFunction"), GenericDynamicJacobianFunctionType jacobian_func = default_dynamic_jacobian_function())¶ No documentation provided.
-
const GenericOrderFunctionType Dune::XT::Functions::GenericFluxFunction::order_¶
-
const GenericPostBindFunctionType Dune::XT::Functions::GenericFluxFunction::post_bind_¶
No documentation provided.
-
const GenericEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction::evaluate_¶
No documentation provided.
-
const GenericDynamicEvaluateFunctionType Dune::XT::Functions::GenericFluxFunction::dynamic_evaluate_¶
No documentation provided.
-
const Common::ParameterType Dune::XT::Functions::GenericFluxFunction::param_type_¶
No documentation provided.
-
const std::string Dune::XT::Functions::GenericFluxFunction::name_¶
No documentation provided.
-
GenericJacobianFunctionType Dune::XT::Functions::GenericFluxFunction::jacobian_¶
No documentation provided.
-
GenericDynamicJacobianFunctionType Dune::XT::Functions::GenericFluxFunction::dynamic_jacobian_¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::BaseType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::DomainType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::StateType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::RangeType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::DynamicRangeType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::JacobianRangeType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::RangeReturnType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::JacobianRangeReturnType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::DynamicJacobianRangeType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::GenericOrderFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::GenericPostBindFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::GenericEvaluateFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::GenericDynamicEvaluateFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::GenericJacobianFunctionType¶
No documentation provided.
-
type Dune::XT::Functions::GenericFluxFunction::GenericDynamicJacobianFunctionType¶
No documentation provided.