Skip to main content
QUICK REVIEW

[Paper Review] Anisotropic mesh adaptation in Firedrake with PETSc DMPlex

Nicolas Barral, Matthew G. Knepley|arXiv (Cornell University)|Oct 31, 2016
Computational Fluid Dynamics and AerodynamicsEngineering8 references4 citations
TL;DR

This paper presents an integrated framework for anisotropic mesh adaptation in Firedrake using PETSc DMPlex and the Pragmatic library, enabling efficient, automated solution of time-dependent PDEs with reduced numerical diffusion. The approach achieves high accuracy in a 3D advection test case using only 50 adapted meshes over 25 time sub-intervals, with a serial runtime of 32 hours on a single core.

ABSTRACT

Despite decades of research in this area, mesh adaptation capabilities are still rarely found in numerical simulation software. We postulate that the primary reason for this is lack of usability. Integrating mesh adaptation into existing software is difficult as non-trivial operators, such as error metrics and interpolation operators, are required, and integrating available adaptive remeshers is not straightforward. Our approach presented here is to first integrate Pragmatic, an anisotropic mesh adaptation library, into DMPlex, a PETSc object that manages unstructured meshes and their interactions with PETSc's solvers and I/O routines. As PETSc is already widely used, this will make anisotropic mesh adaptation available to a much larger community. As a demonstration of this we describe the integration of anisotropic mesh adaptation into Firedrake, an automated Finite Element based system for the portable solution of partial differential equations which already uses PETSc solvers and I/O via DMPlex. We present a proof of concept of this integration with a three-dimensional advection test case.

Motivation & Objective

  • To address the lack of usability and integration of anisotropic mesh adaptation in existing PDE solvers, which hinders widespread adoption.
  • To enable seamless integration of mesh adaptation into high-level finite element frameworks like Firedrake by leveraging PETSc DMPlex's mesh management capabilities.
  • To demonstrate a working pipeline for transient, anisotropic mesh adaptation using error-based metric computation, mesh generation, and solution transfer.
  • To lay the foundation for full automation of mesh adaptation within Firedrake, supporting future extension to higher-order finite elements and parallel execution.

Proposed method

  • The method uses a global fixed-point adaptation algorithm that divides the simulation into 25 time sub-intervals, computing error metrics via the Hessian of the solution in each interval.
  • A metric field is constructed from the Hessian of the solution, normalized and used to guide anisotropic mesh adaptation via the Pragmatic library.
  • DMPlex manages the unstructured mesh representation and enables seamless interface with PETSc solvers and I/O, while Pragmatic performs local mesh optimization using refinement, coarsening, swapping, and smoothing.
  • Solution transfer between meshes is performed via point evaluation and linear interpolation using Firedrake’s built-in Lagrange $P^1$ finite element interpolation.
  • The entire workflow is orchestrated in Firedrake, which compiles the variational form into efficient parallel code and interfaces with PETSc for solution and mesh management.
  • The approach uses a Crank-Nicolson time discretization with SUPG stabilization to maintain stability and accuracy in the advection-dominated problem.

Experimental results

Research questions

  • RQ1Can anisotropic mesh adaptation be effectively and transparently integrated into high-level finite element frameworks like Firedrake?
  • RQ2How can the complex pipeline of error metric computation, mesh adaptation, and solution transfer be automated and made scalable?
  • RQ3Can the combination of DMPlex, Pragmatic, and Firedrake achieve accurate, low-diffusion solutions in challenging 3D transient advection problems?
  • RQ4What is the computational cost and scalability of such a mesh adaptation pipeline when executed serially?

Key findings

  • The framework successfully implemented a full anisotropic mesh adaptation pipeline for transient PDEs using only 50 adapted meshes over 25 time sub-intervals in a 3D advection problem.
  • The solution exhibited minimal numerical diffusion, with sharp resolution of the advection front, as confirmed by isosurface visualizations at multiple time steps.
  • The simulation completed in 32 hours on a single core, demonstrating the efficiency of the approach despite current lack of full parallelization.
  • The mesh adaptation process produced band-shaped, anisotropic elements aligned with the flow, indicating effective metric-driven refinement.
  • The integration of Pragmatic into DMPlex enabled one-call mesh adaptation from a metric field, significantly simplifying the workflow for PETSc users.
  • The method is extensible to higher-order finite elements, with plans to use the Supermesh library for improved solution transfer in future work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.