Extract a single scalar spatial component at compile-time index K from a vector-output FE expression.
More...
|
| constexpr | FeExpressionSpatialComponent (const E &expr) |
| template<typename U = E, typename = std::void_t<decltype(std::declval<const U&>().feSpace())>> |
| constexpr decltype(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 |
| constexpr UpdateFlagsType | computeUpdateFlags () const |
| constexpr std::size_t | computeOrder () const |
| constexpr bool | precompute (const FeValues< Dim > &fe_values, const CellsType< Dim > &cells) 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 |
| | 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, FeExpressionSpatialComponent< K, Dim, E > > | operator- () const |
| | Unary minus operator for the FE expression.
|
template<std::size_t K, std::size_t Dim, typename E>
class vulpes::fe::FeExpressionSpatialComponent< K, Dim, E >
Extract a single scalar spatial component at compile-time index K from a vector-output FE expression.
Works for all expression types (IsNothing, IsLinearTest, IsLinearTrial, IsBilinear) whose evaluate() returns a type supporting operator[K]. Returns the K-th spatial component as a double at every quadrature point.
Typical uses:
FeGradProjectionExpr< FeSpaceType::dim, FeSpaceType, DofHandlerType > grad_proj(const la::Vector &uh, const FeSpaceType &fe_space, const DofHandlerType &dof_handler)
Factory for FeGradProjectionExpr: gradient of a DG field.
Definition fe_expr_func.hpp:903
const auto normal(const FeSpace &)
Definition fe_expr_func.hpp:92
FeExpressionSpatialComponent< K, Dim, E > spatial_component(const FeExpressionBase< Dim, E > &e)
Extract the K-th scalar spatial component of a vector-output FE expression at every quadrature point.
Definition fe_expr_unary.hpp:313
FeExpressionGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > grad(const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > &w)
Definition fe_expr_basis.hpp:315
For block-diagonal field extraction from a multi-component test/trial expression use fe::field_component instead.
Renamed from FeExpressionComponentK (2026-06-10); factory was fe::component<K>.
- Template Parameters
-
| K | Compile-time spatial component index to extract (zero-based). |
| Dim | Spatial dimension. |
| E | Wrapped expression type; evaluate() must return a type supporting operator[]. |