![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Class that wraps a user-provided function. More...
#include <fe_expr_func.hpp>
Public Types | |
| using | OutputType |
| using | FuncT = std::function<OutputType(const Eigen::Vector<double, Dim>&)> |
| using | FeSpaceType |
| Type of the associated Finite Element Space. | |
Public Member Functions | |
| constexpr | FeExpressionFunctionWrapper (const FuncT &func, std::size_t order) |
| FeExpressionFunctionWrapper (const FeExpressionFunctionWrapper &)=delete | |
| FeExpressionFunctionWrapper & | operator= (const FeExpressionFunctionWrapper &)=delete |
| FeExpressionFunctionWrapper (FeExpressionFunctionWrapper &&)=delete | |
| FeExpressionFunctionWrapper & | operator= (FeExpressionFunctionWrapper &&)=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 |
| 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. | |
| 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 |
| Compute the polynomial associated to the expression for basis i and j and block bi and bj. | |
| decltype(auto) | evaluatePolyCoef (const auto &mapping, const auto &fe_values, std::size_t bi, std::size_t bj) const |
| Compute the coefficients of the polynomial associated to the expression for basis i and j and block bi and bj. | |
| constexpr FeExpressionUnaryMinus< Dim, FeExpressionFunctionWrapper< Dim, 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 FeExpressionFunctionWrapper< Dim, 1 > & | self () const |
Protected Attributes | |
| const FuncT | m_func |
| std::vector< OutputType > | m_evals |
| const std::size_t | m_order |
Class that wraps a user-provided function.
order is the polynomial degree assumed for the function when quadrature rules are chosen; it has no default. For a non-polynomial function use at least p + 1, typically p + 3, where p is the degree of the FE space it is integrated against.
|
inherited |
Type of the associated Finite Element Space.
| using vulpes::fe::FeExpressionFunctionWrapper< Dim, OutputDim >::FuncT = std::function<OutputType(const Eigen::Vector<double, Dim>&)> |
| using vulpes::fe::FeExpressionFunctionWrapper< Dim, OutputDim >::OutputType |
|
inlineexplicitconstexpr |
|
delete |
|
delete |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inlineinherited |
Compute the polynomial associated to the expression for basis i and j and block bi and bj.
| fe_values | Finite element values at quadrature points |
| j | Index of the trial function basis |
| i | Index of the test function basis |
| bi | Block index of the trial function |
| bj | Block index of the test function |
We use the convention that in the result, each row corresponds to a spatial direction (this extends also to tensors, by unrolling them), while each column corresponds to a addendum of the expression requiring a particular pullback/pushforward transformation. These coefficients are computed by the evaluatePolyCoef method.
|
inlineinherited |
Compute the coefficients of the polynomial associated to the expression for basis i and j and block bi and bj.
| mapping | The mapping used for the FE |
| fe_values | Finite element values at quadrature points |
| bi | Block index of the trial function |
| bj | Block index of the test function |
The coefficients are the pullback/pushforward needed by each of the polynomial returned by evaluatePoly. Each column corresponds to an addendum of the expression requiring a particular pullback/pushforward transformation. Each row corresponds to a spatial direction (this extends also to tensors, by unrolling them).
|
inlineconstexprinherited |
Get the associated Finite Element Space.
|
inlineconstexprinherited |
Unary minus operator for the FE expression.
|
delete |
|
delete |
|
inlineconstexpr |
|
inlineprotectedinherited |
|
staticconstexpr |
|
staticconstexpr |
|
inlinestaticconstexprinherited |
Index the block of the expression starts from (for vectorial problems).
|
inlinestaticconstexprinherited |
Index the block of the expression ends to (for vectorial problems).
|
mutableprotected |
|
protected |
|
protected |