English

A differentiable software suite for accelerated simulation of turbulent flows

Numerical Analysis 2026-04-21 v1 Numerical Analysis Fluid Dynamics

Abstract

We present IncompressibleNavierStokes.jl, an open-source Julia package for solving the incompressible Navier--Stokes equations on staggered Cartesian grids. The package features matrix-free, hardware-agnostic kernels that are compiled from a single source for multi-threaded CPU or GPU execution, and hand-written adjoint kernels for all discrete operators, enabling efficient reverse-mode automatic differentiation through the entire solver. This differentiability allows neural network closure models to be trained a-posteriori while embedded in a large-eddy simulation. Memory optimizations permit double-precision direct numerical simulations at resolutions up to 8403840^3 on a single GPU. The software design, numerical methods, hardware performance, and integration of neural network closure models are described, and results for turbulent channel flow are validated against reference data.

Cite

@article{arxiv.2604.18536,
  title  = {A differentiable software suite for accelerated simulation of turbulent flows},
  author = {Syver Døving Agdestein and Benjamin Sanderse},
  journal= {arXiv preprint arXiv:2604.18536},
  year   = {2026}
}

Comments

22 pages, 19 figures

R2 v1 2026-07-01T12:18:48.268Z