dune-localfunctions 2.10
|
Interpolation into the SimplexP1BubbleLocalBasis. More...
#include <dune/localfunctions/enriched/simplexp1bubble/localinterpolation.hh>
Static Public Member Functions | |
template<class F , class C , class R = std::invoke_result_t<F, DomainType>, std::enable_if_t< std::is_convertible_v< R, C >, int > = 0> | |
static constexpr void | interpolate (const F &f, std::vector< C > &out) |
Local interpolation of the function f . | |
Interpolation into the SimplexP1BubbleLocalBasis.
The coefficients f_i
associated to the vertex DOFs are computed by evaluation of the function f
to interpolate in the vertex positions x_i
. The coefficient associated to the bubble function, f_b
, is obtains by evaluation f
in the barycenter x_b
of the element minus the linear contributions in that point:
with
|
inlinestaticconstexpr |
Local interpolation of the function f
.
[in] | f | A callable f:D -> R with domain D=DomainType and range R convertible into the coefficient type C . |
[out] | out | The interpolation coefficients {f_i...,f_b} are stored in this output vector. |