|
| | FeExpressionInnerBlock (const CoeffExpr &coeff, const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, false > &u, const VExpr &v) |
| | Construct from a scalar coefficient expression, vector trial, and vector test.
|
| constexpr const auto & | feSpace () const |
| template<std::size_t J = 0, std::size_t I = 0> |
| decltype(auto) | evaluate (const FeValues< Dim > &fe_values, std::size_t j, std::size_t i, std::size_t q) const |
| | Evaluate the (J, I) block contribution at quadrature point q.
|
| 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 |
| | Not implemented: simplexify integrator only. Returns void().
|
| decltype(auto) | evaluatePolyCoef (const auto &, const auto &, std::size_t, std::size_t) const |
| | Not implemented: simplexify integrator only. Returns void().
|
| constexpr bool | precompute (const FeValues< Dim > &fe_values, const CellsType< Dim > &cells) const |
| | Forward precompute to all sub-expressions (coeff, u, v).
|
| constexpr FeExpressionUnaryMinus< Dim, FeExpressionInnerBlock< TestComp, TrialComp, IndexBegin, IndexEnd, Dim, FeSpace, CoeffExpr, VExpr > > | operator- () const |
| | Unary minus operator for the FE expression.
|
template<std::size_t TestComp, std::size_t TrialComp, std::size_t IndexBegin, std::size_t IndexEnd, std::size_t Dim, typename FeSpace, typename CoeffExpr, typename VExpr>
class vulpes::fe::FeExpressionInnerBlock< TestComp, TrialComp, IndexBegin, IndexEnd, Dim, FeSpace, CoeffExpr, VExpr >
Single-block bilinear expression \( c(x) \, u_l \, v_k \), where \( k \) = TestComp and \( l \) = TrialComp.
Face-side analogue of FeExpressionGradContrBlock for matrix-valued couplings between two components of a vector FE function. Selects exactly one (TestComp, TrialComp) entry of a coefficient matrix at integration time; every other (I,J) block returns void() and is skipped by the integrator.
The test argument v may be either an own-cell FeExpressionFunc or a neighbour-cell FeExpressionNeighborFunc (obtained via fe::neigh). When the latter is supplied the basis values are read from fe_values.neighValues() automatically — the implementation delegates to the sub-expression's evaluate, reusing the same routing that FeExpressionInner already relies on for face neighbour terms.
Typical use case — a numerical flux split for a hyperbolic system with flux Jacobian \( A(n) \):
auto coeff_kl = (0.5 * c) * n_x * n_x;
FeExpressionNeighborFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > neigh(const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > &w)
Definition fe_expr_basis.hpp:686
auto inner_block(const FeExpressionBase< Dim, CoeffExpr > &coeff, const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, false > &u, const FeExpressionBase< Dim, VExpr > &v)
Factory function for FeExpressionInnerBlock.
Definition fe_expr_vector.hpp:831
Sum 9 such block expressions to obtain the full \( A^{\pm}(n) \) flux, or 4 + 5 to obtain a central + dissipation form.
- Note
evaluatePoly / evaluatePolyCoef return void(); this expression supports the simplexify (quadrature-based) integrator only. Same restriction as FeExpressionGradContrBlock.
- Template Parameters
-
| TestComp | Test component index \( k \) (absolute, within [IndexBegin, IndexEnd)). |
| TrialComp | Trial component index \( l \) (absolute, within [IndexBegin, IndexEnd)). |
| IndexBegin | First component index of the function-space range. |
| IndexEnd | One past the last component index. |
| Dim | Spatial dimension. |
| FeSpace | FE space type. |
| CoeffExpr | Expression type for the scalar coefficient \( c(x) \). |
| VExpr | Expression type for the test side; typically either a FeExpressionFunc<...,true> (own test) or a FeExpressionNeighborFunc<...,true> (neighbour test). |
template<std::size_t TestComp, std::size_t TrialComp, std::size_t IndexBegin, std::size_t IndexEnd, std::size_t Dim, typename FeSpace, typename CoeffExpr, typename VExpr>
template<std::size_t J = 0, std::size_t I = 0>
| decltype(auto) vulpes::fe::FeExpressionInnerBlock< TestComp, TrialComp, IndexBegin, IndexEnd, Dim, FeSpace, CoeffExpr, VExpr >::evaluate |
( |
const FeValues< Dim > & | fe_values, |
|
|
std::size_t | j, |
|
|
std::size_t | i, |
|
|
std::size_t | q ) const |
|
inline |
Evaluate the (J, I) block contribution at quadrature point q.
J is the trial component (col block) and I is the test component (row block) selected by the integrator's outer loop. The integrator accumulates
row = i_basis * nblocks + I
col = j_basis * nblocks + J
This expression fires only when (J, I) == (TrialComp, TestComp). All other pairs return void().
Returns \( c(x_q) \cdot \phi_i(q) \cdot \phi_j(q) \) for the active pair, where \( \phi_i \) is taken from v (own or neighbour cell depending on VExpr) and \( \phi_j \) from u (own cell). Basis values are obtained by delegating to the sub-expressions' own evaluate so that neighbour routing is preserved.
- Template Parameters
-
| J | Trial component index (compile-time constant). |
| I | Test component index (compile-time constant). |