[Paper Review] Parallel Metric-Based Mesh Adaptation in PETSc using ParMmg
This paper presents the integration of ParMmg, an MPI-parallel metric-based mesh adaptation toolkit, into PETSc, enabling scalable, anisotropic mesh adaptation for finite element simulations. By coupling ParMmg with PETSc's DMPlex mesh management and supporting Riemannian metric construction, the framework achieves optimal $L^2$ convergence rates in 3D Poisson problems with both uniform and spatially varying right-hand sides, demonstrating superior performance over uniform refinement for problems with sharp gradients or interfaces.
This research note documents the integration of the MPI-parallel metric-based mesh adaptation toolkit ParMmg into the solver library PETSc. This coupling brings robust, scalable anisotropic mesh adaptation to a wide community of PETSc users, as well as users of downstream packages. We demonstrate the new functionality via the solution of Poisson problems in three dimensions, with both uniform and spatially-varying right-hand sides.
Motivation & Objective
- To enable scalable, parallel, metric-based mesh adaptation within the PETSc scientific computing library.
- To support users of PETSc and downstream finite element packages like Firedrake in generating high-quality, anisotropic, multi-scale meshes.
- To demonstrate that metric-based adaptation achieves optimal convergence rates where uniform refinement fails, particularly for problems with spatially varying solutions or sharp interfaces.
- To provide a robust, extensible interface for constructing, combining, and normalizing Riemannian metrics within PETSc’s DMPlex framework.
- To lay the foundation for goal-oriented, adaptive finite element simulations with reduced degrees of freedom through consistent parallel mesh-to-mesh interpolation.
Proposed method
- Uses PETSc’s DMPlex data structure to represent unstructured meshes as directed acyclic graphs, enabling dimension- and cell-type-independent algorithms.
- Implements Riemannian metric utilities in PETSc, including metric creation (DMPlexMetricCreate), enforcement of symmetric positive definite (SPD) properties (DMPlexMetricEnforceSPD), and metric combination (e.g., intersection via DMPlexMetricIntersection).
- Applies $L^p$ normalization techniques to control mesh complexity and ensure multi-scale resolution, with target complexity specified via the -adaptor_target_num flag.
- Leverages ParMmg’s parallel remeshing pipeline: local adaptation on each process’s partition, followed by repartitioning and iterative refinement until convergence (typically three iterations).
- Constructs error metrics from the Hessian of the solution, using eigenvalue decomposition to define anisotropic element size and orientation, with magnitude-based scaling to reflect interpolation error.
- Integrates with PETSc’s SNES nonlinear solver, enabling fixed-point iteration with mesh adaptation at each step using the -snes_adapt_sequence flag.
Experimental results
Research questions
- RQ1Can ParMmg be effectively integrated into PETSc to enable scalable, parallel, metric-based mesh adaptation for finite element problems?
- RQ2Does the resulting framework achieve optimal $L^2$ convergence rates for 3D Poisson problems with spatially varying right-hand sides, where uniform refinement fails?
- RQ3Can the framework generate multi-scale, anisotropic meshes that resolve sharp interfaces while maintaining low element count and high quality?
- RQ4How does the combination of Hessian-based metrics and $L^p$ normalization affect mesh complexity and solution accuracy?
- RQ5What is the performance and convergence behavior of the coupled PETSc-ParMmg system in comparison to standard uniform refinement?
Key findings
- The coupled PETSc-ParMmg framework achieves the expected $(k+1)/d$ convergence rate in the $L^2$ norm for $k=1$ finite elements, matching optimal convergence on isotropic meshes.
- For the interface-capturing test case with a sharp spherical discontinuity, the method achieved optimal $L^2$ convergence, while uniform refinement failed to do so.
- The adapted mesh for the interface problem contained 595,594 elements with a maximum aspect ratio of 21.08 and a volume ratio spanning eight orders of magnitude, indicating strong multi-scale resolution.
- 14.8% of elements in the interface-capturing mesh had an aspect ratio greater than two, demonstrating effective anisotropy for capturing sharp gradients.
- The framework successfully reduced mesh complexity while maintaining high accuracy, with the Hessian-based metric enabling resolution of complex solution features using fewer degrees of freedom.
- The integration supports both uniform and spatially-varying metric targets, with the latter enabling goal-oriented adaptation for diagnostic quantities of interest.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.