|
| | FeGradProjectionExpr (const la::Vector &uh, const FeSpaceType &fe_space, const DofHandlerType &dof_handler) |
| template<std::size_t J = 0, std::size_t I = 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 |
| decltype(auto) | evaluatePoly (const fe::FeValues< Dim > &, std::size_t, std::size_t, std::size_t, std::size_t) const |
| decltype(auto) | evaluatePolyCoef (const auto &, const auto &, std::size_t, std::size_t) const |
| constexpr const auto & | feSpace () const |
| | Get the associated Finite Element Space.
|
| constexpr FeExpressionUnaryMinus< Dim, FeGradProjectionExpr< Dim, FeSpaceType, DofHandlerType > > | operator- () const |
| | Unary minus operator for the FE expression.
|
template<std::size_t Dim, typename
FeSpaceType, typename DofHandlerType>
class vulpes::fe::FeGradProjectionExpr< Dim, FeSpaceType, DofHandlerType >
Physical gradient of a DG field given its DOF coefficient vector.
Originally introduced to support H1 semi-norm error computation (int_K |grad(u_h - u_ref)|^2 dK). Also suitable when the gradient of a projected coefficient field is needed as a composable expression.
Evaluates grad(u_h)(x_q) = sum_k c_k * grad(phi_k)(x_q) at every quadrature point using the precomputed physical gradients from fe_values.getGradEval(). Requires UpdateGradients.
OutputType is Eigen::Vector<double,Dim>. computeOrder returns order-1 (gradient lowers polynomial degree by one). The expression is a pure coefficient node (is_bilinear = IsNothing).
Use the factory fe::grad_proj to construct:
dof_handler))
dof_handler));
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
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
- Template Parameters
-
| Dim | Spatial dimension. |
| FeSpaceType | FE space type. |
| DofHandlerType | DOF handler type. |