Parallel implementation of a compatible high-order meshless method for the Stokes' equations

Quang-Thinh Ha, Paul A. Kuberry, Nathaniel A. Trask, Emily M. RyanarXiv 2021

Introduction

Computational Fluid Dynamics (CFD) has traditionally relied on mesh-based methods, such as Finite Element or Finite Volume analysis. While effective for many applications, these methods face significant hurdles when dealing with the complex, irregular geometries found in pore-scale simulations—such as those required for studying water filtration or carbon sequestration. This paper introduces a parallel, high-order meshless solver designed specifically for the Stokes equations, offering a robust alternative that bypasses the costly mesh generation process.

The Challenge of Pore-Scale Simulation

Simulating fluid flow through porous media is computationally demanding. In traditional methods, the "mesh"—a structured grid of cells—must be meticulously generated to fill the jagged voids of microscopic pores. This preprocessing step often becomes a massive bottleneck, sometimes consuming more time and resources than the simulation itself.

Furthermore, solving the Stokes equations, which describe low-speed viscous flow, introduces mathematical complexities. Specifically, solvers must navigate the "inf-sup" instability—a mathematical mismatch between velocity and pressure fields that can lead to non-physical results. Conventional meshless methods often require artificial stabilization or the reintroduction of a grid to maintain stability, which defeats the purpose of a truly meshless approach.

Methodology: Compatible GMLS Discretization

The authors address these challenges using a framework known as Generalized Moving Least Squares (GMLS). Unlike grid-based methods, GMLS approximates differential operators using a local cloud of points. The core innovation of this work lies in its "compatible discretization" strategy:

  1. Divergence-Free Velocity: The solver utilizes a specific set of vector polynomials for the velocity field that are mathematically guaranteed to be divergence-free. This ensures mass conservation by construction, a critical requirement for accurate fluid simulation.
  2. Staggered Pressure Scheme: By employing a "staggered" approach, the method decouples velocity and pressure calculations within the domain. This avoids the classic stability pitfalls associated with the Stokes problem without needing artificial "fudge factors."
  3. High-Order Accuracy: The method supports high-order convergence (e.g., 4th-order). The researchers demonstrate that high-order solvers can actually be more efficient than lower-order ones; although the mathematics is more complex, they require significantly fewer points to achieve the same level of precision.

High-Performance Computing and Parallelism

To handle large-scale simulations, the solver is built for modern high-performance computing (HPC) architectures. The implementation leverages several key libraries:

  • Trilinos: Provides the overarching framework for linear algebra and solver tools.
  • COMPADRE: Manages the meshless stencils.
  • Kokkos: Offers hardware abstraction, allowing the code to run seamlessly on both CPUs and GPUs.
  • Zoltan: Handles domain decomposition, efficiently distributing the workload across many processors.

The GMLS approach is inherently "embarrassingly parallel" at the local level. Since each point calculates its own stencil independently, the method is exceptionally well-suited for the massive parallelism of modern GPUs.

Numerical Validation and Results

The solver was rigorously tested using three primary benchmarks:

  • Manufactured Solutions: Using both polynomial and trigonometric functions, the authors verified that the solver could reproduce mathematical fields with machine precision and achieve the theoretical 2nd-order and 4th-order convergence rates.
  • Flow Past a Sphere: This classic physical benchmark validated the solver against a known analytical solution. The results showed that errors decreased predictably as the particle spacing ($h$) was reduced.

In terms of performance, the solver demonstrated excellent weak scaling. In tests involving up to 450 processors, the time required to assemble the GMLS stencils remained nearly constant as the problem size increased proportionally with the number of processors. This indicates that the method is prepared for massive scaling on next-generation supercomputers.

Conclusion and Future Work

This research presents a viable path forward for meshless CFD. By combining divergence-free basis functions with a parallel GMLS framework, the authors have created a stable, high-order solver that eliminates the mesh generation bottleneck.

While the assembly phase scales perfectly, the authors noted that the "solve time" (the linear system crunching) showed slight increases at scale due to the sub-optimal Block Gauss-Seidel preconditioner used. Future work will focus on developing more sophisticated preconditioning techniques to ensure the entire pipeline scales linearly, as well as extending the method to reactive transport problems where fluid chemistry evolves during flow.

Summary updated

BibTeX
@misc{ha2021parallel,
  author = {Quang-Thinh Ha and Paul A. Kuberry and Nathaniel A. Trask and Emily M. Ryan},
  title = {{Parallel implementation of a compatible high-order meshless method for the Stokes' equations}},
  year = {2021},
  eprint = {2104.14447},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.14447},
}
Figure