A FFT-based finite-difference solver for massively-parallel direct numerical simulations of turbulent flows

Pedro Costa
2/28/2018
physics.flu-dyn

Official code: CaNS-World/CaNS (279 stars, MIT, last commit 2026-10-01).

Abstract

We present an efficient solver for massively-parallel direct numerical simulations of incompressible turbulent flows. The method uses a second-order, finite-volume pressure-correction scheme, where the pressure Poisson equation is solved with the method of eigenfunction expansions. This approach allows for very efficient FFT-based solvers in problems with different combinations of homogeneous pressure boundary conditions. Our algorithm explores all combinations of pressure boundary conditions valid for such a solver, in a single, general framework. The method is implemented in a 2D pencil-like domain decomposition, which enables efficient massively-parallel simulations. The implementation was validated against different canonical flows, and its computational performance was examined. Excellent strong scaling performance up to $10^4$ cores is demonstrated for a domain with $10^9$ spatial degrees of freedom, corresponding to a very small wall-clock time/time step. The resulting tool, CaNS, has been made freely available and open-source.

View on arXivView PDF

Code Implementations(1)

CaNS-World/CaNSOfficial100%
MIT

A code for fast, massively-parallel direct numerical simulations (DNS) of canonical flows

27994Awk, ShellJun 26, 20172 weeks agoMIT
cfdcomputational-fluid-dynamicsfluid-dynamicsfluid-simulationfortran+4 more

Similar Papers

Cite this paper

@article{costa2018fftbased,
  title  = {A FFT-based finite-difference solver for massively-parallel direct numerical simulations of turbulent flows},
  author = {Pedro Costa},
  year   = {2018},
  eprint = {1802.10323},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1802.10323}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1802.10323.svg)](https://codeofpaper.com/paper/1802.10323)

Discussion