![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Namespaces | |
| namespace | internal |
Classes | |
| struct | DofPolicyBase |
| Static class describing the template for a DoF policy. More... | |
| struct | DofPolicyFeSpaceCQ |
| struct | DofPolicyFeSpaceCP |
| struct | DofPolicyFeSpaceDQ |
| struct | DofPolicyFeSpaceDP |
| class | FeExpressionUnaryMinus |
| class | FeExpressionBase |
| Base class for Finite Element Expressions. More... | |
| class | FeExpressionFunc |
| class | FeExpressionGradFunc |
| class | FeExpressionSymGradFunc |
| class | FeExpressionTraceSymGradFunc |
| class | FeExpressionNeighborFunc |
| class | FeExpressionSelfFunc |
| class | FeExpressionFaceNormal |
| Class that wraps the normal vector for the faces. More... | |
| class | FeExpressionConstant |
| Class that wraps a constant function. More... | |
| class | FeExpressionCellConstant |
| Class that wraps a cell constant function. More... | |
| class | FeExpressionCellConstantTensor |
| Class that wraps a cell constant tensor. More... | |
| class | FeExpressionCellConstantNeedNeigh |
| Class that wraps a function which is cell constant and need the evaluation of neighbours (e.g. penalty coefficient). More... | |
| class | FeExpressionFacePointsNeedNeigh |
| Class that wraps a face function given by one value per quadrature point, filled by a user function that may read the neighbour's values at the same physical points (fe_values.neighValues()), e.g. a numerical trace built from both sides of the face. More... | |
| class | FeExpressionSkipper |
| Class that is used to skip the computation of the expression (first parameter) if the rule is not verified (second parameter). More... | |
| class | FeExpressionFunctionWrapper |
| Class that wraps a user-provided function. More... | |
| class | FeExpressionFeProjection |
| Class that wraps the projected of a given vector of coefficients on the FE space. More... | |
| class | FeExactExpressionFeProjection |
| Class that wraps the projected of a given vector of coefficients on the FE space. More... | |
| class | FeGradProjectionExpr |
| Physical gradient of a DG field given its DOF coefficient vector. More... | |
| class | FeExpressionFunctionWrapperTensor |
| Class that wraps a user-provided function that returns a tensor, evaluated at the quadrature points. More... | |
| class | FeExpressionInner |
| class | FeExpressionOuter |
| class | FeExpressionProduct |
| class | FeExpressionSum |
| class | FeExpressionDifference |
| class | FeExpressionMakeVec |
| class | FeExpressionScale |
| Multiply an FE expression by a scalar constant at every quadrature point. More... | |
| class | FeExpressionShift |
| Add a constant offset to an FE expression at every quadrature point. More... | |
| class | FeExpressionFieldComponent |
| Extract the field (block) component of a multi-component test/trial expression driven by the integration loop's DOF index. More... | |
| class | FeExpressionSpatialComponent |
| Extract a single scalar spatial component at compile-time index K from a vector-output FE expression. More... | |
| class | FeExpressionDiagOnly |
| class | FeExpressionAbs |
| class | FeExpressionQptsCache |
| Values of a coefficient expression (no test or trial function) stored at the quadrature points by precompute(), so that a form evaluates the coefficient once per point instead of once per (basis, point) pair. The stored values are those evaluate() of the wrapped expression returns. More... | |
| class | FeExpressionGradContr |
General bilinear expression: diagonal sum over component blocks (I == J only). Two forms selected by GradOnTest: More... | |
| class | FeExpressionGradContrBlock |
Bilinear expression for a single (test, trial) component block. Two forms selected by GradOnTest: More... | |
| class | FeExpressionInnerBlock |
Single-block bilinear expression \( c(x) \, u_l \, v_k \), where \( k \) = TestComp and \( l \) = TrialComp. More... | |
| class | FeSpaceBase |
| Class describing the template for a FeSpace. More... | |
| class | FeSpaceLagrangeP |
| General finite element space on a simplex with (nodal) Lagrangian basis function, can be either continuous or discontinuous. More... | |
| class | FeSpaceLagrangeQ |
| General finite element space on a tensor product cell with (nodal) Lagrangian basis function, can be either continuous or discontinuous. More... | |
| class | FeSpaceModalP |
| Modal FE Space on simplex elements. More... | |
| class | FeSpaceModalQ |
| Modal FE Space on polytopal elements (tensor product of Legendre polynomials on the bounding box). The total degree is limited to the given order in the sum of the exponents. More... | |
| class | FeValues |
| This class works as a cache table for computing efficiently the value of the basis function and its derivatives for each cell. More... | |
Typedefs | |
| template<std::size_t Dim> | |
| using | CellType = geometry::Cell<Dim, double, int32_t> |
| template<std::size_t Dim> | |
| using | CellsType = std::vector<std::unique_ptr<CellType<Dim>>> |
| template<typename FeSpace, std::size_t IndexBegin = 0, std::size_t IndexEnd = 1> | |
| using | TrialFunction |
| template<typename FeSpace, std::size_t IndexBegin = 0, std::size_t IndexEnd = 1> | |
| using | TestFunction |
| template<typename DataType, std::size_t Dim> | |
| using | Point = geometry::Point<DataType, Dim> |
| template<std::size_t Dim> | |
| using | FeSpaceLagrangeCP |
| Continuous lagrangian finite element space with equi-spaced nodes. | |
| template<std::size_t Dim> | |
| using | FeSpaceLagrangeDP |
| Discontinuous lagrangian finite element space with equi-spaced nodes. | |
| template<std::size_t Dim> | |
| using | FeSpaceSpectralCP |
| Continuous spectral finite element space with optimal conditioning. | |
| template<std::size_t Dim> | |
| using | FeSpaceSpectralDP |
| Discontinuous spectral finite element space with optimal conditioning. | |
| template<std::size_t Dim> | |
| using | FeSpaceLagrangeCQ |
| Continuous lagrangian finite element space with equi-spaced nodes. | |
| template<std::size_t Dim> | |
| using | FeSpaceLagrangeDQ |
| Discontinuous lagrangian finite element space with equi-spaced nodes. | |
| template<std::size_t Dim> | |
| using | FeSpaceSpectralCQ |
| Continuous spectral finite element space. | |
| template<std::size_t Dim> | |
| using | FeSpaceSpectralDQ |
| Discontinuous spectral finite element space. | |
| template<std::size_t Dim> | |
| using | FeSpaceModalLegendreDP = FeSpaceModalP<Dim, DofPolicyFeSpaceDP<Dim>> |
| Modal DiscontinuousLegendre FE Space on simplex elements with optimal conditioning for simplex elements. | |
| template<std::size_t Dim, bool EnableScaling = false> | |
| using | FeSpaceModalLegendreDQ |
| Modal Discontinuous Legendre FE Space on bounding box elements. | |
| using | UpdateFlagsType = std::underlying_type_t<UpdateFlags> |
Enumerations | |
| enum | IntegrationForm : uint8_t { IsNothing = 0 , IsLinearTest = 1 , IsLinearTrial = 2 , IsBilinear = IsLinearTest | IsLinearTrial } |
| Enumeration for the type of integration form (presence of test/trial functions). More... | |
| enum | FeType : uint8_t { Simplex , Tensor , Poly } |
| enum | UpdateFlags : uint32_t { UpdateNothing = 0ULL , UpdateMapping = (1ULL << 0ULL) , UpdateValues = (1ULL << 1ULL) , UpdateGradients = (1ULL << 2ULL) , UpdateHessians = (1ULL << 3ULL) , UpdateWeights = (1ULL << 4ULL) , UpdateQuadraturePts = (1ULL << 5ULL) , UpdateNormals = (1ULL << 6ULL) , UpdateId = (1ULL << 7ULL) , UpdateNeighborCell = (1ULL << 8ULL) , UpdateNeighborValues = (1ULL << 9ULL) , UpdateAll = 0xFFFFFFFFUL } |
| Flags that indicate which parts of FeValues shall be updated on each cell. More... | |
Functions | |
| template<std::size_t IndexBegin, std::size_t IndexEnd, std::size_t Dim, typename FeSpace, bool IsTest> | |
| FeExpressionGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > | grad (const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > &w) |
| template<std::size_t IndexBegin, std::size_t IndexEnd, std::size_t Dim, typename FeSpace, bool IsTest> | |
| FeExpressionSymGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > | symgrad (const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > &w) |
| template<std::size_t IndexBegin, std::size_t IndexEnd, std::size_t Dim, typename FeSpace, bool IsTest> | |
| FeExpressionTraceSymGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > | trsymgrad (const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > &w) |
| template<std::size_t IndexBegin, std::size_t IndexEnd, std::size_t Dim, typename FeSpace, bool IsTest> | |
| FeExpressionTraceSymGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > | div (const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > &w) |
| template<std::size_t IndexBegin, std::size_t IndexEnd, std::size_t Dim, typename FeSpace, bool IsTest> | |
| FeExpressionNeighborFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > | neigh (const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > &w) |
| template<std::size_t IndexBegin, std::size_t IndexEnd, std::size_t Dim, typename FeSpace, bool IsTest> | |
| FeExpressionSelfFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > | self (const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > &w) |
| template<typename FeSpace> | |
| const auto | normal (const FeSpace &) |
| template<std::size_t Dim, typename E> | |
| auto | skip (const E &expr, const typename FeExpressionSkipper< Dim, E >::FuncType &func) |
| template<typename FeSpaceType, typename DofHandlerType> | |
| 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. | |
| template<std::size_t Dim, typename FeExpressionU, typename FeExpressionV> | |
| FeExpressionInner< Dim, FeExpressionU, FeExpressionV > | inner (const FeExpressionBase< Dim, FeExpressionU > &u, const FeExpressionBase< Dim, FeExpressionV > &v) |
| template<std::size_t Dim, typename FeExpressionU, typename FeExpressionV> | |
| FeExpressionOuter< Dim, FeExpressionU, FeExpressionV > | outer (const FeExpressionBase< Dim, FeExpressionU > &u, const FeExpressionBase< Dim, FeExpressionV > &v) |
| template<std::size_t Dim, typename FeExpressionU, typename FeExpressionV> | |
| FeExpressionProduct< Dim, FeExpressionU, FeExpressionV > | operator* (const FeExpressionBase< Dim, FeExpressionU > &u, const FeExpressionBase< Dim, FeExpressionV > &v) |
| template<std::size_t Dim, typename FeExpressionU, typename FeExpressionV> | |
| FeExpressionSum< Dim, FeExpressionU, FeExpressionV > | operator+ (const FeExpressionBase< Dim, FeExpressionU > &u, const FeExpressionBase< Dim, FeExpressionV > &v) |
| template<std::size_t Dim, typename FeExpressionU, typename FeExpressionV> | |
| FeExpressionDifference< Dim, FeExpressionU, FeExpressionV > | operator- (const FeExpressionBase< Dim, FeExpressionU > &u, const FeExpressionBase< Dim, FeExpressionV > &v) |
| template<std::size_t Dim, typename... ScalarExprs> | |
| FeExpressionMakeVec< Dim, ScalarExprs... > | make_vec (const FeExpressionBase< Dim, ScalarExprs > &... exprs) |
| template<std::size_t Dim, typename E> | |
| FeExpressionScale< Dim, E > | operator* (double c, const FeExpressionBase< Dim, E > &e) |
Scalar-multiply an FE expression: c * expr. | |
| template<std::size_t Dim, typename E> | |
| FeExpressionScale< Dim, E > | operator* (const FeExpressionBase< Dim, E > &e, double c) |
Scalar-multiply an FE expression: expr * c. | |
| template<std::size_t Dim, typename E, std::enable_if_t< std::is_same_v< typename E::OutputType, double >, int > = 0> | |
| FeExpressionShift< Dim, E > | operator+ (double c, const FeExpressionBase< Dim, E > &e) |
Shift a scalar FE expression by a constant: c + expr. | |
| template<std::size_t Dim, typename E, std::enable_if_t< std::is_same_v< typename E::OutputType, double >, int > = 0> | |
| FeExpressionShift< Dim, E > | operator+ (const FeExpressionBase< Dim, E > &e, double c) |
Shift a scalar FE expression by a constant: expr + c. | |
| template<std::size_t Dim, typename E, std::enable_if_t< std::is_same_v< typename E::OutputType, double >, int > = 0> | |
| FeExpressionShift< Dim, E > | operator- (const FeExpressionBase< Dim, E > &e, double c) |
Shift a scalar FE expression by a negative constant: expr - c. | |
| template<std::size_t Dim, typename E> | |
| FeExpressionShift< Dim, E > | shift (const typename E::OutputType &c, const FeExpressionBase< Dim, E > &e) |
General shift factory: c + expr, works for any OutputType. | |
| template<std::size_t Dim, typename E> | |
| FeExpressionShift< Dim, E > | shift (const FeExpressionBase< Dim, E > &e, const typename E::OutputType &c) |
General shift factory: expr + c, works for any OutputType. | |
| template<typename E> | |
| auto | perp (const FeExpressionBase< 2, E > &e) |
| 2D perpendicular rotation of a 2-vector coefficient expression. | |
| template<std::size_t K, std::size_t Dim, typename E> | |
| 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. | |
| template<std::size_t Dim, typename E> | |
| FeExpressionFieldComponent< Dim, E > | field_component (const FeExpressionBase< Dim, E > &e) |
| Extract the block field component of a multi-component test/trial expression, driven by the integration loop's DOF index. | |
| template<std::size_t Dim, typename E> | |
| FeExpressionDiagOnly< Dim, E > | ondiag (const E &w) |
| template<std::size_t Dim, typename E> | |
| FeExpressionAbs< Dim, E > | abs (const FeExpressionBase< Dim, E > &e) |
| template<std::size_t Dim, typename E> | |
| FeExpressionQptsCache< Dim, E > | cached (const FeExpressionBase< Dim, E > &e) |
| Coefficient expression evaluated once per quadrature point (see FeExpressionQptsCache). | |
| template<std::size_t Dim, typename FuncExpr, std::size_t IndexBegin, std::size_t IndexEnd, typename FeSpace> | |
| auto | 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 | 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 | 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 | 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 | inner_block (const FeExpressionBase< Dim, CoeffExpr > &coeff, const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, false > &u, const FeExpressionBase< Dim, VExpr > &v) |
| Factory function for FeExpressionInnerBlock. | |
| using vulpes::fe::CellsType = std::vector<std::unique_ptr<CellType<Dim>>> |
| using vulpes::fe::CellType = geometry::Cell<Dim, double, int32_t> |
| using vulpes::fe::FeSpaceLagrangeCP |
Continuous lagrangian finite element space with equi-spaced nodes.
| using vulpes::fe::FeSpaceLagrangeCQ |
Continuous lagrangian finite element space with equi-spaced nodes.
| using vulpes::fe::FeSpaceLagrangeDP |
Discontinuous lagrangian finite element space with equi-spaced nodes.
| using vulpes::fe::FeSpaceLagrangeDQ |
Discontinuous lagrangian finite element space with equi-spaced nodes.
| using vulpes::fe::FeSpaceModalLegendreDP = FeSpaceModalP<Dim, DofPolicyFeSpaceDP<Dim>> |
Modal DiscontinuousLegendre FE Space on simplex elements with optimal conditioning for simplex elements.
| using vulpes::fe::FeSpaceModalLegendreDQ |
Modal Discontinuous Legendre FE Space on bounding box elements.
| using vulpes::fe::FeSpaceSpectralCP |
Continuous spectral finite element space with optimal conditioning.
| using vulpes::fe::FeSpaceSpectralCQ |
Continuous spectral finite element space.
| using vulpes::fe::FeSpaceSpectralDP |
Discontinuous spectral finite element space with optimal conditioning.
| using vulpes::fe::FeSpaceSpectralDQ |
Discontinuous spectral finite element space.
| using vulpes::fe::Point = geometry::Point<DataType, Dim> |
| using vulpes::fe::TestFunction |
| using vulpes::fe::TrialFunction |
| using vulpes::fe::UpdateFlagsType = std::underlying_type_t<UpdateFlags> |
| enum vulpes::fe::FeType : uint8_t |
| enum vulpes::fe::IntegrationForm : uint8_t |
| enum vulpes::fe::UpdateFlags : uint32_t |
Flags that indicate which parts of FeValues shall be updated on each cell.
| Enumerator | |
|---|---|
| UpdateNothing | |
| UpdateMapping | |
| UpdateValues | |
| UpdateGradients | |
| UpdateHessians | |
| UpdateWeights | |
| UpdateQuadraturePts | |
| UpdateNormals | |
| UpdateId | |
| UpdateNeighborCell | |
| UpdateNeighborValues | |
| UpdateAll | |
| FeExpressionAbs< Dim, E > vulpes::fe::abs | ( | const FeExpressionBase< Dim, E > & | e | ) |
| FeExpressionQptsCache< Dim, E > vulpes::fe::cached | ( | const FeExpressionBase< Dim, E > & | e | ) |
Coefficient expression evaluated once per quadrature point (see FeExpressionQptsCache).
| FeExpressionTraceSymGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > vulpes::fe::div | ( | const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > & | w | ) |
| FeExpressionFieldComponent< Dim, E > vulpes::fe::field_component | ( | const FeExpressionBase< Dim, E > & | e | ) |
Extract the block field component of a multi-component test/trial expression, driven by the integration loop's DOF index.
The extracted index is the test DOF block index I (for IsLinearTest), trial index J (for IsLinearTrial), or (J,I) pair (for IsBilinear). The result is block-diagonal across fields.
| Dim | Spatial dimension. |
| E | Expression type (IsLinearTest, IsLinearTrial, or IsBilinear). |
| e | Multi-component test/trial FE expression. |
| FeExpressionGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > vulpes::fe::grad | ( | const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > & | w | ) |
| 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).
Builds: sum_I int_K v_I * F . grad(u_I) dK
Assembles the adjoint stiffness T_{ij} = int_K phi_i * F . grad(phi_j) dK directly – no integration-by-parts, no face terms.
Typical use: auto wf = fe::grad_contr(c_expr, v, fe::grad(u));
| func | Dim-vector expression for F(x). |
| v | Vector test function. Must match grad_u's component range. |
| 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).
Builds: sum_I int_K F . grad(v_I) * u_I dK
Template parameters IndexBegin, IndexEnd, Dim, and FeSpace are deduced from the grad_v and u arguments, which must share the same component range and FE space.
Typical use: auto wf = fe::grad_contr(c_expr, fe::grad(v), u);
| func | Dim-vector expression for F(x). |
| u | Vector trial function. Must match grad_v's component range. |
| 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).
Builds the bilinear expression v_k * F . grad(u_l) for the single (TestComp, TrialComp) component block. TestComp and TrialComp must be specified explicitly; all other template parameters are deduced from v and grad_u.
Assembles: T_{ij} = int_K phi_i * F . grad(phi_j) dK This is the transpose of the test-gradient stiffness – no IBP, no face terms.
Typical use (off-diagonal block k=0, l=1): auto wf = fe::grad_contr_block<0, 1>(A_expr, v, fe::grad(u));
| func | Dim-vector expression for F(x). |
| v | Vector test function. Must match grad_u's component range. |
| 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).
Builds the bilinear expression F . grad(v_k) * u_l for the single (TestComp, TrialComp) component block. TestComp and TrialComp must be specified explicitly; all other template parameters are deduced from grad_v and u.
Assembles: S_{ij} = int_K F . grad(phi_i) * phi_j dK
Typical use (off-diagonal block k=0, l=1): auto wf = fe::grad_contr_block<0, 1>(A_expr, fe::grad(v), u);
| func | Dim-vector expression for F(x). |
| u | Vector trial function. Must match grad_v's component range. |
| FeGradProjectionExpr< FeSpaceType::dim, FeSpaceType, DofHandlerType > vulpes::fe::grad_proj | ( | const la::Vector & | uh, |
| const FeSpaceType & | fe_space, | ||
| const DofHandlerType & | dof_handler ) |
Factory for FeGradProjectionExpr: gradient of a DG field.
| Dim | Spatial dimension (deduced from FeSpaceType). |
| FeSpaceType | FE space type. |
| DofHandlerType | DOF handler type. |
| uh | DOF coefficient vector of the field. |
| fe_space | FE space used to define the basis. |
| dof_handler | DOF handler mapping cells to DOF indices. |
| FeExpressionInner< Dim, FeExpressionU, FeExpressionV > vulpes::fe::inner | ( | const FeExpressionBase< Dim, FeExpressionU > & | u, |
| const FeExpressionBase< Dim, FeExpressionV > & | v ) |
| 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.
Builds the bilinear expression \( c(x) \, u_l \, v_k \) for the single (TestComp, TrialComp) block. TestComp and TrialComp must be specified explicitly; the remaining template parameters are deduced from u and v.
The test argument v may be either a regular vector test function ( FeExpressionFunc<...,true> ) or its neighbour-side wrapper ( FeExpressionNeighborFunc<...,true> obtained via fe::neigh ).
Typical use (off-diagonal coupling between two field components, e.g. one entry of a flux Jacobian split):
| coeff | Scalar coefficient expression \( c(x) \). |
| u | Vector trial function (own cell). |
| v | Vector test function. Own or neighbour; must share the component range of u. |
| FeExpressionMakeVec< Dim, ScalarExprs... > vulpes::fe::make_vec | ( | const FeExpressionBase< Dim, ScalarExprs > &... | exprs | ) |
| FeExpressionNeighborFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > vulpes::fe::neigh | ( | const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > & | w | ) |
| const auto vulpes::fe::normal | ( | const FeSpace & | ) |
| FeExpressionDiagOnly< Dim, E > vulpes::fe::ondiag | ( | const E & | w | ) |
| FeExpressionScale< Dim, E > vulpes::fe::operator* | ( | const FeExpressionBase< Dim, E > & | e, |
| double | c ) |
Scalar-multiply an FE expression: expr * c.
| Dim | Spatial dimension. |
| E | Expression type. |
| e | FE expression to scale. |
| c | Scalar multiplier. |
e with factor c. | FeExpressionProduct< Dim, FeExpressionU, FeExpressionV > vulpes::fe::operator* | ( | const FeExpressionBase< Dim, FeExpressionU > & | u, |
| const FeExpressionBase< Dim, FeExpressionV > & | v ) |
| FeExpressionScale< Dim, E > vulpes::fe::operator* | ( | double | c, |
| const FeExpressionBase< Dim, E > & | e ) |
Scalar-multiply an FE expression: c * expr.
| Dim | Spatial dimension. |
| E | Expression type. |
| c | Scalar multiplier. |
| e | FE expression to scale. |
e with factor c. | FeExpressionShift< Dim, E > vulpes::fe::operator+ | ( | const FeExpressionBase< Dim, E > & | e, |
| double | c ) |
Shift a scalar FE expression by a constant: expr + c.
| Dim | Spatial dimension. |
| E | Expression type with OutputType = double. |
| e | Scalar FE expression. |
| c | Scalar offset. |
e with offset c. | FeExpressionSum< Dim, FeExpressionU, FeExpressionV > vulpes::fe::operator+ | ( | const FeExpressionBase< Dim, FeExpressionU > & | u, |
| const FeExpressionBase< Dim, FeExpressionV > & | v ) |
| FeExpressionShift< Dim, E > vulpes::fe::operator+ | ( | double | c, |
| const FeExpressionBase< Dim, E > & | e ) |
Shift a scalar FE expression by a constant: c + expr.
SFINAE-guarded to scalar expressions (OutputType = double) so that template argument deduction succeeds without ambiguity.
| Dim | Spatial dimension. |
| E | Expression type with OutputType = double. |
| c | Scalar offset. |
| e | Scalar FE expression. |
e with offset c. | FeExpressionShift< Dim, E > vulpes::fe::operator- | ( | const FeExpressionBase< Dim, E > & | e, |
| double | c ) |
Shift a scalar FE expression by a negative constant: expr - c.
| Dim | Spatial dimension. |
| E | Expression type with OutputType = double. |
| e | Scalar FE expression. |
| c | Scalar value to subtract. |
e with offset -c. | FeExpressionDifference< Dim, FeExpressionU, FeExpressionV > vulpes::fe::operator- | ( | const FeExpressionBase< Dim, FeExpressionU > & | u, |
| const FeExpressionBase< Dim, FeExpressionV > & | v ) |
| FeExpressionOuter< Dim, FeExpressionU, FeExpressionV > vulpes::fe::outer | ( | const FeExpressionBase< Dim, FeExpressionU > & | u, |
| const FeExpressionBase< Dim, FeExpressionV > & | v ) |
| auto vulpes::fe::perp | ( | const FeExpressionBase< 2, E > & | e | ) |
2D perpendicular rotation of a 2-vector coefficient expression.
Returns the 90-degree counterclockwise rotation: perp([u, v]) = [-v, u]
Implemented as make_vec(-spatial_component<1>(e), spatial_component<0>(e)). No new class is needed; this is a free factory that composes existing expressions. Only defined for Dim=2 and expressions with OutputType = Eigen::Vector2d.
Typical use (scalar weighting of a perpendicular 2D vector field):
| E | Expression type; OutputType must be Eigen::Vector<double,2>. |
| e | 2D vector-output coefficient expression. |
| FeExpressionSelfFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > vulpes::fe::self | ( | const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > & | w | ) |
| FeExpressionShift< Dim, E > vulpes::fe::shift | ( | const FeExpressionBase< Dim, E > & | e, |
| const typename E::OutputType & | c ) |
General shift factory: expr + c, works for any OutputType.
| Dim | Spatial dimension. |
| E | Expression type. |
| e | FE expression. |
| c | Constant offset of type E::OutputType. |
e with offset c. | FeExpressionShift< Dim, E > vulpes::fe::shift | ( | const typename E::OutputType & | c, |
| const FeExpressionBase< Dim, E > & | e ) |
General shift factory: c + expr, works for any OutputType.
Use this form for vector expressions where operator+ is not available due to template deduction limitations:
| Dim | Spatial dimension. |
| E | Expression type. |
| c | Constant offset of type E::OutputType. |
| e | FE expression. |
e with offset c. | auto vulpes::fe::skip | ( | const E & | expr, |
| const typename FeExpressionSkipper< Dim, E >::FuncType & | func ) |
| FeExpressionSpatialComponent< K, Dim, E > vulpes::fe::spatial_component | ( | const FeExpressionBase< Dim, E > & | e | ) |
Extract the K-th scalar spatial component of a vector-output FE expression at every quadrature point.
| K | Compile-time spatial component index (zero-based). |
| Dim | Spatial dimension. |
| E | Expression type whose evaluate() returns a type supporting operator[]. |
| e | Vector-output FE expression. |
| FeExpressionSymGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > vulpes::fe::symgrad | ( | const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > & | w | ) |
| FeExpressionTraceSymGradFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > vulpes::fe::trsymgrad | ( | const FeExpressionFunc< IndexBegin, IndexEnd, Dim, FeSpace, IsTest > & | w | ) |