|
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:
![\[ f_i = f(x_i), i=0,\ldots,dim+1
f_b = f(x_b) - \sum_{i=0}^{dim+1} f_i * \phi_i(x_b),
\]](form_14.png)
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. |