FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Assembly::Interpolator Class Reference

Interpolator class template. More...

#include <interpolator.hpp>

Static Public Member Functions

template<typename DT_ , typename IT_ , typename Function_ , typename Space_ >
static void project (LAFEM::DenseVector< DT_, IT_ > &vector, const Function_ &function, const Space_ &space)
 Interpolates a scalar function. More...
 
template<typename DT_ , typename IT_ , int block_size_, typename Function_ , typename Space_ >
static void project (LAFEM::DenseVectorBlocked< DT_, IT_, block_size_ > &vector, const Function_ &function, const Space_ &space)
 Interpolates a vector field. More...
 

Detailed Description

Interpolator class template.

This class template implements an interpolator which projects an (analytic) function into a Finite-Element space by evaluating its node functionals.

Author
Peter Zajac

Definition at line 128 of file interpolator.hpp.

Member Function Documentation

◆ project() [1/2]

template<typename DT_ , typename IT_ , typename Function_ , typename Space_ >
static void FEAT::Assembly::Interpolator::project ( LAFEM::DenseVector< DT_, IT_ > &  vector,
const Function_ &  function,
const Space_ &  space 
)
inlinestatic

Interpolates a scalar function.

Parameters
[out]vectorA transient reference to the vector that shall receive the interpolation coefficients. The vector is automatically allocated to the correct size, so it does not need to be allocated before calling this function.
[in]functionA transient reference to the function object implementing the Analytic::Function interface.
[in]spaceA transient reference to the Finite-Element space into which the function is to be projected.

Definition at line 150 of file interpolator.hpp.

Referenced by FEAT::Assembly::MeanFilterAssembler::assemble().

◆ project() [2/2]

template<typename DT_ , typename IT_ , int block_size_, typename Function_ , typename Space_ >
static void FEAT::Assembly::Interpolator::project ( LAFEM::DenseVectorBlocked< DT_, IT_, block_size_ > &  vector,
const Function_ &  function,
const Space_ &  space 
)
inlinestatic

Interpolates a vector field.

Parameters
[out]vectorA transient reference to the vector that shall receive the interpolation coefficients. The vector is automatically allocated to the correct size, so it does not need to be allocated before calling this function.
[in]functionA transient reference to the function object implementing the Analytic::Function interface.
[in]spaceA transient reference to the Finite-Element space into which the function is to be projected.

Definition at line 187 of file interpolator.hpp.


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