![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Specialized integrator for scalar expressions using simplification. More...
#include <integrator_simplexify.hpp>
Public Types | |
| using | index_t = typename MeshType::index_t |
Public Member Functions | |
| ScalarExpressionIntegrator (const MeshType &mesh, CellManager< MeshType, FeSpaceType > &cell_manager, const ExprType &expression, std::optional< uint32_t > quadrature_order=std::nullopt) | |
| Construct scalar integrator. | |
| double | integrate () |
| Integrate the scalar expression over the entire domain. | |
| double | integrateCell (index_t cell_id) |
| Integrate the scalar expression over one local cell. | |
Static Public Attributes | |
| static constexpr std::size_t | Dim = MeshType::self_dim |
Private Member Functions | |
| double | integrateSimplexDirect (index_t cell_id, int32_t simplex_id, const Eigen::MatrixXi &simplexes, const Eigen::MatrixXd &vertexes, const auto &mapping, const auto &fe_space) |
| Integrate expression over a single simplex using quadrature. | |
| void | mapQPointsToPhysicalSimplex (qrule::QuadratureRule< double, Dim > &qrule, const Eigen::MatrixXi &simplexes, const Eigen::MatrixXd &vertexes, int32_t k) |
| Map quadrature points from reference simplex to physical simplex Direct copy of logic from WeakFormIntegratorSimplexify::mapQuadraturePointsToSimplex. | |
Private Attributes | |
| const MeshType & | m_mesh |
| CellManager< MeshType, FeSpaceType > & | m_cell_manager |
| const ExprType & | m_expression |
| uint32_t | m_quadrature_order |
| std::shared_ptr< qrule::QuadratureRule< double, Dim > > | m_qrule_ref |
Specialized integrator for scalar expressions using simplification.
This class integrates scalar FE expressions (e.g., f(x), (u_h - u_exact)^2) directly at quadrature points. It reuses the simplification and quadrature infrastructure from WeakFormIntegratorSimplexify but evaluates expressions as pure scalars instead of assembling weak forms.
Structure mirrors WeakFormIntegratorSimplexify:
| using vulpes::assemble::ScalarExpressionIntegrator< MeshType, FeSpaceType, ExprType >::index_t = typename MeshType::index_t |
|
inline |
Construct scalar integrator.
| mesh | The computational mesh |
| cell_manager | CellManager with FE space and mappings |
| expression | The scalar expression to integrate |
| quadrature_order | Polynomial degree integrated exactly by the simplex rule; defaults to 1 + expression.computeOrder() |
|
inline |
Integrate the scalar expression over the entire domain.
|
inline |
Integrate the scalar expression over one local cell.
| cell_id | Local index of the cell |
|
inlineprivate |
Integrate expression over a single simplex using quadrature.
|
inlineprivate |
Map quadrature points from reference simplex to physical simplex Direct copy of logic from WeakFormIntegratorSimplexify::mapQuadraturePointsToSimplex.
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |
|
private |