Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim > Class Template Reference

Class that wraps the projected of a given vector of coefficients on the FE space. More...

#include <fe_expr_func.hpp>

Inheritance diagram for vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >:
[legend]
Collaboration diagram for vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >:
[legend]

Public Types

using OutputType
using FeSpaceType
 Type of the associated Finite Element Space.

Public Member Functions

constexpr FeExactExpressionFeProjection (const la::Vector &projection, const FeSpace &fe_space, const DofHandler &dof_handler)
 FeExactExpressionFeProjection (const FeExactExpressionFeProjection &)=delete
FeExactExpressionFeProjection & operator= (const FeExactExpressionFeProjection &)=delete
 FeExactExpressionFeProjection (FeExactExpressionFeProjection &&)=delete
FeExactExpressionFeProjection & operator= (FeExactExpressionFeProjection &&)=delete
template<std::size_t J = 0, std::size_t I = 0>
decltype(auto) evaluate (const FeValues< Dim > &, std::size_t, std::size_t, std::size_t q) const
decltype(auto) evaluatePoly (const FeValues< Dim > &, std::size_t, std::size_t, std::size_t, std::size_t) const
decltype(auto) evaluatePolyCoef (const auto &, const auto &fe_values, std::size_t, std::size_t) const
constexpr UpdateFlagsType computeUpdateFlags () const
constexpr std::size_t computeOrder () const
constexpr bool precompute (const FeValues< Dim > &fe_values, const CellsType< Dim > &) const
constexpr const auto & feSpace () const
 Get the associated Finite Element Space.
constexpr FeExpressionUnaryMinus< Dim, FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > > operator- () const
 Unary minus operator for the FE expression.

Static Public Attributes

static constexpr bool is_leaf = true
static constexpr uint8_t is_bilinear = IsNothing
static constexpr std::size_t k_index_begin
 Index the block of the expression starts from (for vectorial problems).
static constexpr std::size_t k_index_end
 Index the block of the expression ends to (for vectorial problems).

Protected Member Functions

const FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > & self () const

Protected Attributes

const la::Vector & m_projection
const FeSpace & m_fe_space
const DofHandler & m_dof_handler
std::vector< OutputType > m_evals

Detailed Description

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
class vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >

Class that wraps the projected of a given vector of coefficients on the FE space.

Note
This is used only for computing the projection for the exact solution when the L2 error is computed.

Member Typedef Documentation

◆ FeSpaceType

using vulpes::fe::FeExpressionBase< Dim, FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > >::FeSpaceType
inherited

Type of the associated Finite Element Space.

◆ OutputType

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
using vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::OutputType
Initial value:
std::
conditional_t<OutputDim == 1, double, Eigen::Vector<double, OutputDim>>

Constructor & Destructor Documentation

◆ FeExactExpressionFeProjection() [1/3]

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::FeExactExpressionFeProjection ( const la::Vector & projection,
const FeSpace & fe_space,
const DofHandler & dof_handler )
inlineexplicitconstexpr

◆ FeExactExpressionFeProjection() [2/3]

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::FeExactExpressionFeProjection ( const FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim > & )
delete

◆ FeExactExpressionFeProjection() [3/3]

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::FeExactExpressionFeProjection ( FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim > && )
delete

Member Function Documentation

◆ computeOrder()

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
std::size_t vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::computeOrder ( ) const
inlineconstexpr

◆ computeUpdateFlags()

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
UpdateFlagsType vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::computeUpdateFlags ( ) const
inlineconstexpr

◆ evaluate()

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
template<std::size_t J = 0, std::size_t I = 0>
decltype(auto) vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::evaluate ( const FeValues< Dim > & ,
std::size_t ,
std::size_t ,
std::size_t q ) const
inline

◆ evaluatePoly()

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
decltype(auto) vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::evaluatePoly ( const FeValues< Dim > & ,
std::size_t ,
std::size_t ,
std::size_t ,
std::size_t  ) const
inline

◆ evaluatePolyCoef()

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
decltype(auto) vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::evaluatePolyCoef ( const auto & ,
const auto & fe_values,
std::size_t ,
std::size_t  ) const
inline

◆ feSpace()

const auto & vulpes::fe::FeExpressionBase< Dim, FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > >::feSpace ( ) const
inlineconstexprinherited

Get the associated Finite Element Space.

◆ operator-()

FeExpressionUnaryMinus< Dim, FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > > vulpes::fe::FeExpressionBase< Dim, FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > >::operator- ( ) const
inlineconstexprinherited

Unary minus operator for the FE expression.

Returns
New FE expression representing the negation of the current one

◆ operator=() [1/2]

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
FeExactExpressionFeProjection & vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::operator= ( const FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim > & )
delete

◆ operator=() [2/2]

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
FeExactExpressionFeProjection & vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::operator= ( FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim > && )
delete

◆ precompute()

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
bool vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::precompute ( const FeValues< Dim > & fe_values,
const CellsType< Dim > &  ) const
inlineconstexpr

◆ self()

const FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > & vulpes::fe::FeExpressionBase< Dim, FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > >::self ( ) const
inlineprotectedinherited

Member Data Documentation

◆ is_bilinear

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
uint8_t vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::is_bilinear = IsNothing
staticconstexpr

◆ is_leaf

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
bool vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::is_leaf = true
staticconstexpr

◆ k_index_begin

std::size_t vulpes::fe::FeExpressionBase< Dim, FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > >::k_index_begin
inlinestaticconstexprinherited

Index the block of the expression starts from (for vectorial problems).

◆ k_index_end

std::size_t vulpes::fe::FeExpressionBase< Dim, FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, 1 > >::k_index_end
inlinestaticconstexprinherited

Index the block of the expression ends to (for vectorial problems).

◆ m_dof_handler

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
const DofHandler& vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::m_dof_handler
protected

◆ m_evals

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
std::vector<OutputType> vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::m_evals
mutableprotected

◆ m_fe_space

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
const FeSpace& vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::m_fe_space
protected

◆ m_projection

template<std::size_t Dim, typename FeSpace, typename DofHandler, std::size_t OutputDim = 1>
const la::Vector& vulpes::fe::FeExactExpressionFeProjection< Dim, FeSpace, DofHandler, OutputDim >::m_projection
protected

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