Skip to main content
QUICK REVIEW

[Paper Review] A FFT-accelerated multi-block finite-difference solver for massively parallel simulations of incompressible flows

Pedro Costa|arXiv (Cornell University)|Jun 7, 2021
Computational Fluid Dynamics and AerodynamicsEngineering53 references13 citations
TL;DR

This paper presents SNaC, an open-source, FFT-accelerated multi-block finite-difference solver for massively parallel Direct Numerical Simulations (DNS) of incompressible flows. By applying FFT-based eigenfunction expansions along a homogeneous direction to reduce the 3D Poisson equation to multiple 2D Helmholtz problems, and solving them with geometric multigrid, the method achieves up to 8-fold speedup in computational cost compared to non-FFT approaches, while supporting diverse boundary conditions and scaling efficiently on extreme HPC architectures.

ABSTRACT

We present a multi-block finite-difference solver for massively parallel Direct Numerical Simulations (DNS) of incompressible flows. The algorithm combines the versatility of a multi-block solver with the method of eigenfunctions expansions, to speedup the solution of the pressure Poisson equation. This is achieved by employing FFT-based transforms along one homogeneous direction, which effectively reduce the problem complexity at a low cost. These FFT-based expansions are implemented in a framework that unifies all valid combinations of boundary conditions for this type of method. Subsequently, a geometric multigrid solver is employed to solve the reduced Poisson equation in a multi-block geometry. Particular care was taken here, to guarantee the parallel performance of the multigrid solver when solving the reduced linear systems equations. We have validated the overall numerical algorithm and assessed its performance in a massively parallel setting. The results show that 2- to 8-fold reductions in computational cost may be easily achieved when exploiting FFT acceleration for the solution of the Poisson equation. The solver, SNaC, has been made freely available and open-source under the terms of an MIT license.

Motivation & Objective

  • To develop a highly efficient, massively parallel DNS solver for incompressible flows that overcomes the computational bottleneck of solving the pressure Poisson equation.
  • To extend FFT-based Poisson solvers beyond simple geometries by integrating them into a multi-block framework that supports complex domains and diverse boundary conditions.
  • To ensure high parallel performance by combining FFT acceleration with geometric multigrid solvers and optimizing task distribution across processors.
  • To provide a freely available, open-source, and extensible solver (SNaC) that supports advanced simulations of turbulent flows, two-phase flows, and complex geometries.

Proposed method

  • The solver uses second-order finite-difference/finite-volume discretization of the incompressible Navier-Stokes equations on a structured, multi-block grid.
  • It applies FFT-based eigenfunction expansions along one homogeneous (extruded) direction to decouple the 3D Poisson equation into independent 2D Helmholtz problems.
  • Each reduced 2D problem is solved using a geometric multigrid (GMG) solver, with the hypre library used for high-performance parallelization.
  • The method supports all valid combinations of boundary conditions for the eigenfunction expansion, including non-periodic ones, via a unified framework.
  • A sliced pencils approach is employed to balance load and handle inhomogeneous convergence rates across 2D problems, improving parallel efficiency.
  • The entire algorithm is implemented in a massively parallel environment using MPI, with optimizations to minimize communication overhead and ensure strong and weak scaling on extreme-scale systems.

Experimental results

Research questions

  • RQ1Can FFT-based eigenfunction expansions be effectively extended to multi-block, non-periodic geometries to accelerate Poisson solves in DNS of incompressible flows?
  • RQ2How does the combination of FFT acceleration and geometric multigrid perform in terms of scalability and computational efficiency on modern HPC systems?
  • RQ3What is the optimal partitioning strategy for distributing 2D reduced problems across processors to balance load and minimize wall-clock time, especially given varying convergence rates?
  • RQ4Can the method achieve significant speedup (e.g., 2–8×) over conventional solvers while maintaining high accuracy and supporting complex boundary conditions?
  • RQ5How does the solver scale at extreme problem sizes and core counts, particularly in comparison to naive or suboptimal parallelization strategies?

Key findings

  • The FFT-accelerated approach achieves up to 8-fold reduction in computational cost for solving the Poisson equation compared to non-FFT methods, with 2- to 8-fold speedups observed in simulations.
  • The solver demonstrates excellent weak and strong scaling up to 65,536 cores on the Betzy supercomputer, with wall-clock time per grid point scaling nearly ideally.
  • The 3D multigrid with FFT acceleration (3D MG w/ FFT) outperforms all other configurations at extreme scales, while the naive 2D MG w/ FFT approach failed or performed poorly due to communication and load imbalance.
  • The sliced pencils approach with p ≈ 16 provides a good balance between load per task and convergence inhomogeneity, reducing wall-clock time per time step by optimizing task distribution.
  • The method successfully handles diverse boundary conditions through a unified framework for eigenfunction expansions, enabling broader applicability than previous FFT-based solvers.
  • The SNaC solver is open-source under the MIT license and has been validated on canonical flows such as the lid-driven cavity, showing high accuracy and performance.

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.