dune-localfunctions 2.10
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Dune::SimplexP1BubbleLocalInterpolation< LB > Class Template Reference

Interpolation into the SimplexP1BubbleLocalBasis. More...

#include <dune/localfunctions/enriched/simplexp1bubble/localinterpolation.hh>

Inheritance diagram for Dune::SimplexP1BubbleLocalInterpolation< LB >:
Inheritance graph

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.
 

Detailed Description

template<class LB>
class Dune::SimplexP1BubbleLocalInterpolation< LB >

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),
\]

with \phi_i the local basis functions.

Member Function Documentation

◆ interpolate()

template<class LB >
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 Dune::SimplexP1BubbleLocalInterpolation< LB >::interpolate ( const F &  f,
std::vector< C > &  out 
)
inlinestaticconstexpr

Local interpolation of the function f.

Parameters
[in]fA callable f:D -> R with domain D=DomainType and range R convertible into the coefficient type C.
[out]outThe interpolation coefficients {f_i...,f_b} are stored in this output vector.

The documentation for this class was generated from the following file: