Class template Dune::XT::Functions::GenericGridFunction¶
Inherits from Dune::XT::Functions::GridFunctionInterface.
-
template<class E, size_t r = 1, size_t rC = 1, class R = double>
class Dune::XT::Functions::GenericGridFunction<E, r, rC, R> : public GridFunctionInterface<E, r, rC, R>¶ A function given by a lambda expression or std::function which is evaluated locally on each element.
GenericGridFunction<…> f([](const typename F::DomainType& point_in_local_coordinates, const XT::Common::Parameter& param) { typename F::RangeType ret(std::pow(point_in_local_coordinates[0], param.get(“power”).at(0))); return ret; }, integration_order, XT::Common::ParameterType(“power”, 1), “x_power_p”);
To model the function f(x) = x^p (where x is the local coordinate on the reference element) 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. If you want the function to have Jacobians, you have to provide an additional generic function to the constructor. Note that this generic jacobian function should describe the local jacobian on the reference element (for the x^p function in one dimension, this would be p x^{p-1}). The jacobian(…) method of the LocalGenericGridFunction will do the transformation for you and return the jacobian on the actual grid element.
Class Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction¶
Inherits from Dune::XT::Functions::ElementFunctionInterface.
-
class Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction : public ElementFunctionInterface<E, r, rC, R>¶
No documentation provided.
Method Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::post_bind¶
-
void Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::post_bind(const ElementType &element) final¶
No documentation provided.
Method Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::order¶
-
int Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::order(const XT::Common::Parameter ¶m) const final¶
No documentation provided.
Method Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::evaluate¶
-
RangeReturnType Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::evaluate(const DomainType &point_in_local_coordinates, const Common::Parameter ¶m) const final¶
No documentation provided.
Method Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::jacobian¶
-
DerivativeRangeReturnType Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::jacobian(const DomainType &point_in_local_coordinates, const Common::Parameter ¶m) const final¶
No documentation provided.
Method Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::derivative¶
-
DerivativeRangeReturnType Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::derivative(const int &alpha, const DomainType &point_in_local_coordinates, const Common::Parameter ¶m) const final¶
No documentation provided.
Constructor Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::LocalGenericGridFunction¶
-
Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::LocalGenericGridFunction(GenericOrderFunctionType order_func, GenericPostBindFunctionType post_bind_func, GenericEvaluateFunctionType evaluate_func, const Common::ParameterType ¶m_type, GenericJacobianFunctionType jacobian_func, GenericDerivativeFunctionType derivative_func)¶
No documentation provided.
Field Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::order_¶
-
const GenericOrderFunctionType Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::order_¶
No documentation provided.
Field Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::post_bind_¶
-
const GenericPostBindFunctionType Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::post_bind_¶
No documentation provided.
Field Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::evaluate_¶
-
const GenericEvaluateFunctionType Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::evaluate_¶
No documentation provided.
Field Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::jacobian_¶
-
const GenericJacobianFunctionType Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::jacobian_¶
No documentation provided.
Field Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::derivative_¶
-
const GenericDerivativeFunctionType Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::derivative_¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::BaseType¶
-
type Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::BaseType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericEvaluateFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericEvaluateFunctionType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericPostBindFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericPostBindFunctionType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericOrderFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericOrderFunctionType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericJacobianFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericJacobianFunctionType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericDerivativeFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::LocalGenericGridFunction::GenericDerivativeFunctionType¶
No documentation provided.
Method Dune::XT::Functions::GenericGridFunction::copy_as_grid_function_impl¶
Method Dune::XT::Functions::GenericGridFunction::copy_as_grid_function¶
Method Dune::XT::Functions::GenericGridFunction::name¶
Method Dune::XT::Functions::GenericGridFunction::local_function¶
Method Dune::XT::Functions::GenericGridFunction::default_order_lambda¶
Method Dune::XT::Functions::GenericGridFunction::default_post_bind_function¶
Method Dune::XT::Functions::GenericGridFunction::default_evaluate_function¶
Method Dune::XT::Functions::GenericGridFunction::default_jacobian_function¶
Method Dune::XT::Functions::GenericGridFunction::default_derivative_function¶
Constructor Dune::XT::Functions::GenericGridFunction::GenericGridFunction<E, r, rC, R>¶
-
template<>
template<class E, size_t r = 1, size_t rC = 1, class R = double>
explicit Dune::XT::Functions::GenericGridFunction<E, r, rC, R>::GenericGridFunction<E, r, rC, R>(const int ord, GenericPostBindFunctionType post_bind_func = default_post_bind_function(), GenericEvaluateFunctionType evaluate_func = default_evaluate_function(), const Common::ParameterType ¶m_type = Common::ParameterType(), std::string nm, GenericJacobianFunctionType jacobian_func = default_jacobian_function(), GenericDerivativeFunctionType derivative_func = default_derivative_function())¶ No documentation provided.
Constructor Dune::XT::Functions::GenericGridFunction::GenericGridFunction<E, r, rC, R>¶
-
template<>
template<class E, size_t r = 1, size_t rC = 1, class R = double>
explicit Dune::XT::Functions::GenericGridFunction<E, r, rC, R>::GenericGridFunction<E, r, rC, R>(GenericOrderFunctionType order_func, GenericPostBindFunctionType post_bind_func = default_post_bind_function(), GenericEvaluateFunctionType evaluate_func = default_evaluate_function(), const Common::ParameterType ¶m_type = Common::ParameterType(), std::string nm, GenericJacobianFunctionType jacobian_func = default_jacobian_function(), GenericDerivativeFunctionType derivative_func = default_derivative_function())¶ No documentation provided.
Constructor Dune::XT::Functions::GenericGridFunction::GenericGridFunction<E, r, rC, R>¶
Constructor Dune::XT::Functions::GenericGridFunction::GenericGridFunction<E, r, rC, R>¶
Field Dune::XT::Functions::GenericGridFunction::order_¶
-
const GenericOrderFunctionType Dune::XT::Functions::GenericGridFunction::order_¶
Field Dune::XT::Functions::GenericGridFunction::post_bind_¶
-
const GenericPostBindFunctionType Dune::XT::Functions::GenericGridFunction::post_bind_¶
No documentation provided.
Field Dune::XT::Functions::GenericGridFunction::evaluate_¶
-
const GenericEvaluateFunctionType Dune::XT::Functions::GenericGridFunction::evaluate_¶
No documentation provided.
Field Dune::XT::Functions::GenericGridFunction::name_¶
-
const std::string Dune::XT::Functions::GenericGridFunction::name_¶
No documentation provided.
Field Dune::XT::Functions::GenericGridFunction::jacobian_¶
-
const GenericJacobianFunctionType Dune::XT::Functions::GenericGridFunction::jacobian_¶
No documentation provided.
Field Dune::XT::Functions::GenericGridFunction::derivative_¶
-
const GenericDerivativeFunctionType Dune::XT::Functions::GenericGridFunction::derivative_¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::ThisType¶
-
type Dune::XT::Functions::GenericGridFunction::ThisType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::BaseType¶
-
type Dune::XT::Functions::GenericGridFunction::BaseType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::DomainType¶
-
type Dune::XT::Functions::GenericGridFunction::DomainType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::RangeType¶
-
type Dune::XT::Functions::GenericGridFunction::RangeType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::DerivativeRangeType¶
-
type Dune::XT::Functions::GenericGridFunction::DerivativeRangeType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::RangeReturnType¶
-
type Dune::XT::Functions::GenericGridFunction::RangeReturnType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::DerivativeRangeReturnType¶
-
type Dune::XT::Functions::GenericGridFunction::DerivativeRangeReturnType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::GenericOrderFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::GenericOrderFunctionType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::GenericPostBindFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::GenericPostBindFunctionType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::GenericEvaluateFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::GenericEvaluateFunctionType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::GenericJacobianFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::GenericJacobianFunctionType¶
No documentation provided.
Type alias Dune::XT::Functions::GenericGridFunction::GenericDerivativeFunctionType¶
-
type Dune::XT::Functions::GenericGridFunction::GenericDerivativeFunctionType¶
No documentation provided.