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

Values of a coefficient expression (no test or trial function) stored at the quadrature points by precompute(), so that a form evaluates the coefficient once per point instead of once per (basis, point) pair. The stored values are those evaluate() of the wrapped expression returns. More...

#include <fe_expr_unary.hpp>

Inheritance diagram for vulpes::fe::FeExpressionQptsCache< Dim, E >:
[legend]
Collaboration diagram for vulpes::fe::FeExpressionQptsCache< Dim, E >:
[legend]

Public Types

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

Public Member Functions

 FeExpressionQptsCache (const E &expr)
template<std::size_t J = 0, std::size_t I = 0>
const OutputType & evaluate (const FeValues< Dim > &, std::size_t, std::size_t, std::size_t q) const
constexpr UpdateFlagsType computeUpdateFlags () const
constexpr std::size_t computeOrder () const
decltype(auto) evaluatePoly (const FeValues< Dim > &fe_values, std::size_t j, std::size_t i, std::size_t bi, std::size_t bj) const
decltype(auto) evaluatePolyCoef (const auto &mapping, const auto &fe_values, std::size_t bi, std::size_t bj) const
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, FeExpressionQptsCache< Dim, E > > operator- () const
 Unary minus operator for the FE expression.

Static Public Attributes

static constexpr bool is_leaf = false
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 FeExpressionQptsCache< Dim, E > & self () const

Protected Attributes

std::conditional_t< E::is_leaf, const E &, const E > m_expr
std::vector< OutputType > m_values

Detailed Description

template<std::size_t Dim, typename E>
class vulpes::fe::FeExpressionQptsCache< Dim, E >

Values of a coefficient expression (no test or trial function) stored at the quadrature points by precompute(), so that a form evaluates the coefficient once per point instead of once per (basis, point) pair. The stored values are those evaluate() of the wrapped expression returns.

Template Parameters
DimSpatial dimension.
EWrapped expression type (IsNothing).

Member Typedef Documentation

◆ EvalType

template<std::size_t Dim, typename E>
using vulpes::fe::FeExpressionQptsCache< Dim, E >::EvalType
Initial value:
std::decay_t<decltype(std::declval<const E&>().evaluate(
std::declval<const FeValues<Dim>&>(), 0, 0, 0))>
This class works as a cache table for computing efficiently the value of the basis function and its d...
Definition fe_values.hpp:94

◆ FeSpaceType

using vulpes::fe::FeExpressionBase< Dim, FeExpressionQptsCache< Dim, E > >::FeSpaceType
inherited

Type of the associated Finite Element Space.

◆ OutputType

template<std::size_t Dim, typename E>
using vulpes::fe::FeExpressionQptsCache< Dim, E >::OutputType
Initial value:
typename decltype([] {
if constexpr (std::is_arithmetic_v<EvalType>) {
return std::type_identity<EvalType>{};
} else {
return std::type_identity<
std::decay_t<decltype(std::declval<EvalType>().eval())>>{};
}
}())::type
Values of a coefficient expression (no test or trial function) stored at the quadrature points by pre...
Definition fe_expr_unary.hpp:483

Constructor & Destructor Documentation

◆ FeExpressionQptsCache()

template<std::size_t Dim, typename E>
vulpes::fe::FeExpressionQptsCache< Dim, E >::FeExpressionQptsCache ( const E & expr)
inlineexplicit

Member Function Documentation

◆ computeOrder()

template<std::size_t Dim, typename E>
std::size_t vulpes::fe::FeExpressionQptsCache< Dim, E >::computeOrder ( ) const
inlineconstexpr

◆ computeUpdateFlags()

template<std::size_t Dim, typename E>
UpdateFlagsType vulpes::fe::FeExpressionQptsCache< Dim, E >::computeUpdateFlags ( ) const
inlineconstexpr

◆ evaluate()

template<std::size_t Dim, typename E>
template<std::size_t J = 0, std::size_t I = 0>
const OutputType & vulpes::fe::FeExpressionQptsCache< Dim, E >::evaluate ( const FeValues< Dim > & ,
std::size_t ,
std::size_t ,
std::size_t q ) const
inline

◆ evaluatePoly()

template<std::size_t Dim, typename E>
decltype(auto) vulpes::fe::FeExpressionQptsCache< Dim, E >::evaluatePoly ( const FeValues< Dim > & fe_values,
std::size_t j,
std::size_t i,
std::size_t bi,
std::size_t bj ) const
inline

◆ evaluatePolyCoef()

template<std::size_t Dim, typename E>
decltype(auto) vulpes::fe::FeExpressionQptsCache< Dim, E >::evaluatePolyCoef ( const auto & mapping,
const auto & fe_values,
std::size_t bi,
std::size_t bj ) const
inline

◆ feSpace()

const auto & vulpes::fe::FeExpressionBase< Dim, FeExpressionQptsCache< Dim, E > >::feSpace ( ) const
inlineconstexprinherited

Get the associated Finite Element Space.

◆ operator-()

FeExpressionUnaryMinus< Dim, FeExpressionQptsCache< Dim, E > > vulpes::fe::FeExpressionBase< Dim, FeExpressionQptsCache< Dim, E > >::operator- ( ) const
inlineconstexprinherited

Unary minus operator for the FE expression.

Returns
New FE expression representing the negation of the current one

◆ precompute()

template<std::size_t Dim, typename E>
bool vulpes::fe::FeExpressionQptsCache< Dim, E >::precompute ( const FeValues< Dim > & fe_values,
const CellsType< Dim > & cells ) const
inline

◆ self()

const FeExpressionQptsCache< Dim, E > & vulpes::fe::FeExpressionBase< Dim, FeExpressionQptsCache< Dim, E > >::self ( ) const
inlineprotectedinherited

Member Data Documentation

◆ is_bilinear

template<std::size_t Dim, typename E>
uint8_t vulpes::fe::FeExpressionQptsCache< Dim, E >::is_bilinear = IsNothing
staticconstexpr

◆ is_leaf

template<std::size_t Dim, typename E>
bool vulpes::fe::FeExpressionQptsCache< Dim, E >::is_leaf = false
staticconstexpr

◆ k_index_begin

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

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

◆ m_expr

template<std::size_t Dim, typename E>
std::conditional_t<E::is_leaf, const E&, const E> vulpes::fe::FeExpressionQptsCache< Dim, E >::m_expr
protected

◆ m_values

template<std::size_t Dim, typename E>
std::vector<OutputType> vulpes::fe::FeExpressionQptsCache< Dim, E >::m_values
mutableprotected

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