DUNE PDELab (git)

Dune::SimplexP1BubbleLocalInterpolation< LB > Class Template Reference

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. More...
 

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:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 24, 23:30, 2024)