|
| std::vector< double > | computeOrder (const std::vector< double > &err, const std::vector< double > &h) |
| | Estimate convergence orders from a sequence of errors and mesh sizes.
|
| void | printConvergenceTable (const std::vector< double > &h_vec, const std::vector< std::pair< std::string, std::vector< double > > > &series, const std::string &output_dir="", const std::string &filename_stem="convergence") |
| | Print a unified convergence table for one or more named error series.
|
| template<typename MeshType, typename FeSpaceType> |
| Eigen::MatrixXd | projectSolution (const dofs::DofHandler< MeshType > &dof_handler, const assemble::CellManager< MeshType, FeSpaceType > &cell_manager, const la::Vector &solution) |
| | Evaluate a solution vector on the vertices of a mesh.
|
| template<typename MeshType, typename FeSpaceType> |
| datastructure::CrsMap< double, typename MeshType::index_t > | projectSolutionSubmesh (const geometry::MeshExporterSubmesh< MeshType > &mesh_exporter, const dofs::DofHandler< MeshType > &dof_handler, const assemble::CellManager< MeshType, FeSpaceType > &cell_manager, const la::Vector &solution) |
| | Evaluate a finite element solution on the vertices of the mesh sub-triangulation used for visualization.
|
| void vulpes::postprocessing::printConvergenceTable |
( |
const std::vector< double > & | h_vec, |
|
|
const std::vector< std::pair< std::string, std::vector< double > > > & | series, |
|
|
const std::string & | output_dir = "", |
|
|
const std::string & | filename_stem = "convergence" ) |
|
inline |
Print a unified convergence table for one or more named error series.
Each entry in series is a (column_name, error_vector) pair. Convergence orders are computed internally between consecutive refinement levels. Format: scientific notation (3 sig-figs) for errors, fixed (2 d.p.) for orders, "---" on the first row where no order is available.
- Parameters
-
| h_vec | Mesh diameters, one per refinement level. |
| series | Named error series to display. All vectors must match h_vec. |
| output_dir | If non-empty, the table is also saved as a CSV in this directory (created if it does not exist). |
| filename_stem | Base name of the CSV file without extension. |
template<typename MeshType, typename FeSpaceType>
Evaluate a finite element solution on the vertices of the mesh sub-triangulation used for visualization.
The solution is a la::Vector containing the coefficients of the finite element basis. The basis can be nodal or modal. For each original mesh cell, the solution is evaluated at the vertices of the corresponding VTK subgrid.
- Template Parameters
-
| MeshType | Mesh type. |
| FeSpaceType | Finite element space type. |
- Parameters
-
| mesh_exporter | Submesh exporter containing the generated VTK subgrids. |
| dof_handler | Cell-to-dof connectivity. |
| cell_manager | Mesh, mappings, and finite element cell data. |
| solution | Coefficients of the finite element basis. |
- Returns
- CRS map containing one row per exported cell/subgrid. Each row stores the projected values on that subgrid, flattened as vertex_id * block_size + component.
- Note
- In parallel, only owned cells are projected. The function assumes that the dofs of owned cells are locally owned by the rank, as expected for the DG/modal workflow.