![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Bilinear/linear expressions for vector-valued FE spaces. More...
#include "vulpes/fe/fe_expressions/fe_expr_base.hpp"#include "vulpes/fe/fe_expressions/fe_expr_basis.hpp"#include "vulpes/utils/eigen.hpp"Go to the source code of this file.
Classes | |
| class | vulpes::fe::FeExpressionGradContr< IndexBegin, IndexEnd, Dim, FeSpace, FuncExpr, GradOnTest > |
General bilinear expression: diagonal sum over component blocks (I == J only). Two forms selected by GradOnTest: More... | |
| class | vulpes::fe::FeExpressionGradContrBlock< TestComp, TrialComp, IndexBegin, IndexEnd, Dim, FeSpace, FuncExpr, GradOnTest > |
Bilinear expression for a single (test, trial) component block. Two forms selected by GradOnTest: More... | |
| 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. More... | |
Namespaces | |
| namespace | vulpes |
| namespace | vulpes::fe |
Functions | |
| template<std::size_t Dim, typename FuncExpr, std::size_t IndexBegin, std::size_t IndexEnd, typename FeSpace> | |
| auto | vulpes::fe::grad_contr (const FeExpressionBase< Dim, FuncExpr > &func, const FeExpressionGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, true > &, const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, false > &u) |
| Factory function for FeExpressionGradContr with gradient on TEST (default, GradOnTest=true). | |
| template<std::size_t Dim, typename FuncExpr, std::size_t IndexBegin, std::size_t IndexEnd, typename FeSpace> | |
| auto | vulpes::fe::grad_contr (const FeExpressionBase< Dim, FuncExpr > &func, const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, true > &v, const FeExpressionGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, false > &) |
| Factory function for FeExpressionGradContr with gradient on TRIAL (adjoint form, GradOnTest=false). | |
| template<std::size_t TestComp, std::size_t TrialComp, std::size_t Dim, typename FuncExpr, std::size_t IndexBegin, std::size_t IndexEnd, typename FeSpace> | |
| auto | vulpes::fe::grad_contr_block (const FeExpressionBase< Dim, FuncExpr > &func, const FeExpressionGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, true > &, const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, false > &u) |
| Factory function for FeExpressionGradContrBlock with gradient on TEST (default, GradOnTest=true). | |
| template<std::size_t TestComp, std::size_t TrialComp, std::size_t Dim, typename FuncExpr, std::size_t IndexBegin, std::size_t IndexEnd, typename FeSpace> | |
| auto | vulpes::fe::grad_contr_block (const FeExpressionBase< Dim, FuncExpr > &func, const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, true > &v, const FeExpressionGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, false > &) |
| Factory function for FeExpressionGradContrBlock with gradient on TRIAL (adjoint form, GradOnTest=false). | |
| template<std::size_t TestComp, std::size_t TrialComp, std::size_t Dim, typename CoeffExpr, std::size_t IndexBegin, std::size_t IndexEnd, typename FeSpace, typename VExpr> | |
| auto | vulpes::fe::inner_block (const FeExpressionBase< Dim, CoeffExpr > &coeff, const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, false > &u, const FeExpressionBase< Dim, VExpr > &v) |
| Factory function for FeExpressionInnerBlock. | |
Bilinear/linear expressions for vector-valued FE spaces.
Provides composable weak-form building blocks used to assemble systems whose trial and test functions are vector-valued (multi-component) FE functions:
GradOnTest template parameter:GradOnTest=true (default): \( \sum_k \int_K F \cdot \nabla v_k \, u_k \, dK \) – gradient on TEST. Usage: grad_contr(F, grad(v), u) GradOnTest=false (adjoint): \( \sum_k \int_K v_k \, F \cdot \nabla u_k \, dK \) – gradient on TRIAL. Usage: grad_contr(F, v, grad(u)) GradOnTest=true (default): \( \int_K F \cdot \nabla v_k \, u_l \, dK \). Usage: grad_contr_block<k,l>(F, grad(v), u) GradOnTest=false (adjoint): \( \int_K v_k \, F \cdot \nabla u_l \, dK \). Usage: grad_contr_block<k,l>(F, v, grad(u)) The trial-gradient form assembles \( T_{ij} = \int_K \phi_i \, F \cdot
\nabla \phi_j \, dK \) directly – no IBP, no face terms. This is the transpose of the test-gradient stiffness and is needed for the L2 projection of the curl of a vector field, or the adjoint stiffness in a coupled multi-component system.(TestComp,TrialComp) pair. Used for matrix-valued face fluxes in linearised hyperbolic systems.All block expressions integrate over the (TestComp,TrialComp) pair only; other (I,J) blocks return void() and are skipped by the integrator. Mirrors the existing iteration pattern in WeakFormIntegratorSimplexify so no integrator changes are required to support matrix-valued couplings between components.