![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Q-point based upwind flux expression built from a velocity callable. More...
#include <dg_utils.hpp>
Public Types | |
| using | FeSpaceType |
| Type of the associated Finite Element Space. | |
Public Member Functions | |
| constexpr | FeExpressionUpwindFromFunctionWrapper (const VelocityFunc &velocity_func) |
| FeExpressionUpwindFromFunctionWrapper (const FeExpressionUpwindFromFunctionWrapper &)=delete | |
| FeExpressionUpwindFromFunctionWrapper & | operator= (const FeExpressionUpwindFromFunctionWrapper &)=delete |
| FeExpressionUpwindFromFunctionWrapper (FeExpressionUpwindFromFunctionWrapper &&)=delete | |
| FeExpressionUpwindFromFunctionWrapper & | operator= (FeExpressionUpwindFromFunctionWrapper &&)=delete |
| template<std::size_t I = 0, std::size_t J = 0> | |
| decltype(auto) | evaluate (const fe::FeValues< Dim > &, std::size_t, std::size_t, std::size_t q) const |
| constexpr fe::UpdateFlagsType | computeUpdateFlags () const |
| constexpr std::size_t | computeOrder () const |
| constexpr bool | precompute (const fe::FeValues< Dim > &fe_values, const fe::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, FeExpressionUpwindFromFunctionWrapper< Dim, VelocityFunc > > | operator- () const |
| Unary minus operator for the FE expression. | |
Static Public Attributes | |
| static constexpr bool | is_leaf = true |
| static constexpr uint8_t | is_bilinear = fe::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 FeExpressionUpwindFromFunctionWrapper< Dim, VelocityFunc > & | self () const |
Protected Attributes | |
| const VelocityFunc | m_velocity_func |
| std::vector< double > | m_evals |
Q-point based upwind flux expression built from a velocity callable.
This expression evaluates velocity at face quadrature points (physical space) and computes 0.5 * (|v.n| + v.n) pointwise.
|
inherited |
Type of the associated Finite Element Space.
|
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 |