CPAFT: A consistent parallel advancing front technique for unstructured triangular/tetrahedral mesh generation

Chengdi Ma, Jizu Huang, Hao Luo, Chao Yang

TL;DR

CPAFT is a breakthrough parallel mesh generator that achieves "parallel consistency"—guaranteeing the same mesh output regardless of processor count—while scaling effectively to over 2,000 CPU cores. It addresses the long-standing bottleneck of unstructured mesh generation in high-performance scientific computing.

What Problem Does This Paper Address?

In the world of scientific simulation, solving partial differential equations (PDEs) has become incredibly fast thanks to massive parallelism. However, creating the unstructured triangular or tetrahedral meshes that these solvers require remains a significant bottleneck.

The "Advancing Front Technique" (AFT) is a popular way to generate these meshes, but parallelizing it is notoriously difficult. Most existing parallel AFT methods suffer from two major flaws:

  1. Lack of Parallel Consistency: If you run the generator on 4 processors and then on 8, you might get two different meshes. This makes debugging and verification a nightmare for researchers.
  2. Scaling Limits: Most generators struggle to scale beyond a few hundred processors due to the complex communication required to prevent mesh elements from intersecting at subdomain boundaries.

Methods

The authors propose CPAFT (Consistent Parallel Advancing Front Technique), which combines several novel strategies to overcome these hurdles:

  • SFC-based Domain Decomposition: They use Space-Filling Curves (SFCs) to partition the geometry. Crucially, this provides a "geometrically invariant global index" for every potential mesh front. Because this index depends only on geometry and not on how the domain is split, it ensures consistency. Domain decomposition based on geometry and space-filling curves.

  • Distributed Forest-of-Overlapping-Trees: To handle intersections at boundaries, each processor maintains an "overlapping" view of its neighbors' meshes. This allows for local intersection checks that are globally valid without needing a central coordinator. Overlapping quadtrees allow processors to check for intersections across boundaries.

  • Consistent Parallel MIS Algorithm: They adapted the Maximal Independent Set (MIS) algorithm to select which new mesh elements to create in parallel. By using the SFC-based global indices, they ensure that the parallel selection process is deterministic and matches a sequential execution.

Domain decomposition based on geometry and space-filling curves.
Overlapping quadtrees allow processors to check for intersections across boundaries.

Datasets

The algorithm was evaluated on a variety of 2D and 3D benchmarks:

  • 2D Models: A gear model, the NACA0012 airfoil, and a complex concave facial model.
  • 3D Models: Standard test cases from the Gmsh library (t13, t20).
  • Complex Engineering Geometries: A space shuttle model and a realistic human artery vessel model.

Key Insights and Ideas

  • Consistency is Mathematical: The authors prove that their algorithm is mathematically guaranteed to produce the same mesh regardless of the number of processors or the specific domain decomposition used.
  • Geometry-First Partitioning: Instead of partitioning an existing mesh, they partition the background space using SFCs before generation begins. This is a novel attempt to integrate partitioning directly into the generation workflow to achieve high parallelism.
  • Decoupling Growth: By using the MIS algorithm, they can identify sets of "advancing fronts" that are far enough apart to grow simultaneously without any risk of intersecting, maximizing parallel throughput.

Key Results

CPAFT sets a new bar for performance in the field of mesh generation:

  • Unprecedented Scalability: It is the first unstructured mesh generator demonstrated to scale to O(1,000) CPU processors.
  • Efficiency: On a complex artery model, it achieved a 15.2x speedup on 32 processors (47.5% efficiency), whereas industry standards like Gmsh and NETGEN dropped below 10% efficiency.
  • Weak Scaling: In tests with up to 2,048 processors, the algorithm maintained a generation efficiency of over 51%, proving it can handle massive, multi-million element meshes.
  • Quality: The generated meshes meet high-quality standards and are further improved by a parallelized Laplacian smoothing technique.

Limitations and Future Work

While CPAFT is a major step forward, the authors note some areas for improvement:

  • Complex 3D Geometries: For very intricate 3D models, simple smoothing isn't always enough. They currently supplement CPAFT with a local remeshing step using the CGAL library to ensure top-tier mesh quality.
  • Hardware Heterogeneity: The current implementation is CPU-based. Future versions aim to support heterogeneous architectures, such as multi-GPU systems.
  • Robustness: They plan to integrate rational coordinates to further enhance the algorithm's robustness against floating-point errors in extremely complex geometries.

Summary updated

BibTeX
@article{ma2025cpaft,
  author = {Chengdi Ma and Jizu Huang and Hao Luo and Chao Yang},
  title = {{CPAFT: A consistent parallel advancing front technique for unstructured triangular/tetrahedral mesh generation}},
  journal = {Comput. Phys. Commun.},
  year = {2025},
  doi = {10.1016/j.cpc.2025.109535},
}
Figure