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

Restricted Element-Wise Projection operator. More...

#include <rew_projector.hpp>

Public Types

enum class  WeightType { arithmetic = 0 , volume }
 Weighting type enumeration. More...
 

Static Public Member Functions

template<typename DT_ , typename IT_ , typename Function_ , typename Space_ , typename CubatureFactory_ >
static void project (LAFEM::DenseVector< DT_, IT_ > &vector, const Function_ &function, const Space_ &space, const CubatureFactory_ &cubature_factory, WeightType weight_type=WeightType::volume)
 Projects an analytic function into a finite element space. More...
 

Detailed Description

Restricted Element-Wise Projection operator.

This class template implements the "restricted element-wise projection" operator which projects an (analytic) function into a Finite-Element space by performing weighted element-wise L2-projections.

Author
Peter Zajac

Definition at line 27 of file rew_projector.hpp.

Member Enumeration Documentation

◆ WeightType

Weighting type enumeration.

Enumerator
arithmetic 

use arithmetic averaging

volume 

use volume-based averaging

Definition at line 33 of file rew_projector.hpp.

Member Function Documentation

◆ project()

template<typename DT_ , typename IT_ , typename Function_ , typename Space_ , typename CubatureFactory_ >
static void FEAT::Assembly::RewProjector::project ( LAFEM::DenseVector< DT_, IT_ > &  vector,
const Function_ &  function,
const Space_ &  space,
const CubatureFactory_ &  cubature_factory,
WeightType  weight_type = WeightType::volume 
)
inlinestatic

Projects an analytic function into a finite element space.

Parameters
[out]vectorA transient reference to the coefficient vector that is to be assembled. The vector is automatically allocated by this function, so it does not need to be allocated beforehand.
[in]functionA transient reference to an object implementing the AnalyticFunction interface capable of computing function values.
[in]spaceA transient reference to the space to which to project into.
[in]cubature_factoryA cubature factory to be used for integration.
[in]weight_typeThe weighting type to be used.

Definition at line 68 of file rew_projector.hpp.

References arithmetic, FEAT::LAFEM::DenseVector< DT_, IT_ >::elements(), FEAT::Math::invert_matrix(), and volume.


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