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

Class that wraps a function which is cell constant and need the evaluation of neighbours (e.g. penalty coefficient). More...

#include <fe_expr_func.hpp>

Inheritance diagram for vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >:
[legend]
Collaboration diagram for vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >:
[legend]

Public Types

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

Public Member Functions

constexpr FeExpressionCellConstantNeedNeigh (const FuncType &func)
 FeExpressionCellConstantNeedNeigh (const FeExpressionCellConstantNeedNeigh &)=delete
FeExpressionCellConstantNeedNeigh & operator= (const FeExpressionCellConstantNeedNeigh &)=delete
 FeExpressionCellConstantNeedNeigh (FeExpressionCellConstantNeedNeigh &&)=delete
FeExpressionCellConstantNeedNeigh & operator= (FeExpressionCellConstantNeedNeigh &&)=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) const
constexpr UpdateFlagsType computeUpdateFlags () const
constexpr std::size_t computeOrder () 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 &, std::size_t, std::size_t) const
constexpr bool precompute (const FeValues< Dim > &fe_values, const CellsType< Dim > &cells) const
constexpr const auto & feSpace () const
 Get the associated Finite Element Space.
constexpr FeExpressionUnaryMinus< Dim, FeExpressionCellConstantNeedNeigh< Dim, UpdateNothing > > 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 FeExpressionCellConstantNeedNeigh< Dim, UpdateNothing > & self () const

Protected Attributes

const FuncType m_func
double m_val = std::numeric_limits<double>::quiet_NaN()

Detailed Description

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
class vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >

Class that wraps a function which is cell constant and need the evaluation of neighbours (e.g. penalty coefficient).

Template Parameters
ExtraFlagsUpdate flags added to UpdateNeighborCell, e.g. UpdateNeighborValues when the function reads neighbour values and the form has no neigh(...) leaf.

Member Typedef Documentation

◆ FeSpaceType

Type of the associated Finite Element Space.

◆ FuncType

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
using vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::FuncType
Initial value:
std::function<double(const FeValues<Dim>&, const CellsType<Dim>&)>
This class works as a cache table for computing efficiently the value of the basis function and its d...
Definition fe_values.hpp:94
std::vector< std::unique_ptr< CellType< Dim > > > CellsType
Definition fe_expr_base.hpp:44

Constructor & Destructor Documentation

◆ FeExpressionCellConstantNeedNeigh() [1/3]

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::FeExpressionCellConstantNeedNeigh ( const FuncType & func)
inlineexplicitconstexpr

◆ FeExpressionCellConstantNeedNeigh() [2/3]

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::FeExpressionCellConstantNeedNeigh ( const FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags > & )
delete

◆ FeExpressionCellConstantNeedNeigh() [3/3]

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::FeExpressionCellConstantNeedNeigh ( FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags > && )
delete

Member Function Documentation

◆ computeOrder()

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
std::size_t vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::computeOrder ( ) const
inlineconstexpr

◆ computeUpdateFlags()

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
UpdateFlagsType vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::computeUpdateFlags ( ) const
inlineconstexpr

◆ evaluate()

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
template<std::size_t J = 0, std::size_t I = 0>
decltype(auto) vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::evaluate ( const FeValues< Dim > & ,
std::size_t ,
std::size_t ,
std::size_t  ) const
inline

◆ evaluatePoly()

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
decltype(auto) vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::evaluatePoly ( const FeValues< Dim > & ,
std::size_t ,
std::size_t ,
std::size_t ,
std::size_t  ) const
inline

◆ evaluatePolyCoef()

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
decltype(auto) vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::evaluatePolyCoef ( const auto & ,
const auto & ,
std::size_t ,
std::size_t  ) const
inline

◆ feSpace()

const auto & vulpes::fe::FeExpressionBase< Dim, FeExpressionCellConstantNeedNeigh< Dim, UpdateNothing > >::feSpace ( ) const
inlineconstexprinherited

Get the associated Finite Element Space.

◆ operator-()

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, UpdateFlagsType ExtraFlags = UpdateNothing>
FeExpressionCellConstantNeedNeigh & vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::operator= ( const FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags > & )
delete

◆ operator=() [2/2]

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
FeExpressionCellConstantNeedNeigh & vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::operator= ( FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags > && )
delete

◆ precompute()

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
bool vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::precompute ( const FeValues< Dim > & fe_values,
const CellsType< Dim > & cells ) const
inlineconstexpr

◆ self()

Member Data Documentation

◆ is_bilinear

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
uint8_t vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::is_bilinear = IsNothing
staticconstexpr

◆ is_leaf

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
bool vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::is_leaf = true
staticconstexpr

◆ k_index_begin

std::size_t vulpes::fe::FeExpressionBase< Dim, FeExpressionCellConstantNeedNeigh< Dim, UpdateNothing > >::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, FeExpressionCellConstantNeedNeigh< Dim, UpdateNothing > >::k_index_end
inlinestaticconstexprinherited

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

◆ m_func

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
const FuncType vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::m_func
protected

◆ m_val

template<std::size_t Dim, UpdateFlagsType ExtraFlags = UpdateNothing>
double vulpes::fe::FeExpressionCellConstantNeedNeigh< Dim, ExtraFlags >::m_val = std::numeric_limits<double>::quiet_NaN()
mutableprotected

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