Divergence-Free Diffusion Models for Incompressible Fluid Flows
Wilfried Genuist, Éric Savin, Filippo Gatti, Didier Clouteau
TL;DR
This work investigates divergence-free diffusion models for incompressible fluid flows by enforcing the solenoidal constraint with a Leray projection within an EDM-based diffusion framework and integrating autoregressive conditioning for temporal coherence. The authors generate a 2D Kolmogorov-flow dataset via Fourier-Galerkin discretization and randomized decaying turbulence with Ekman drag, then compare several divergence-free strategies from hard manifold enforcement to soft penalties and corrections. Key findings show that manifold-based divergence-free diffusion yields superior in-distribution accuracy and spectral fidelity, while for long rollouts and out-of-distribution generalization, softer constraints or transport-based corrections offer better robustness. A central design principle emerges: strict, geometry-based constraints excel near training distributions and short horizons, whereas flexible, corrected approaches better handle long-horizon predictions and distributional shifts. The framework is extensible to non-periodic domains and multi-field PDEs and connects diffusion-time dynamics to probability-flow ODE formulations, providing a principled path for physics-informed generative modeling of turbulent flows.
Abstract
Generative diffusion models are extensively used in unsupervised and self-supervised machine learning with the aim to generate new samples from a probability distribution estimated with a set of known samples. They have demonstrated impressive results in replicating dense, real-world contents such as images, musical pieces, or human languages. This work investigates their application to the numerical simulation of incompressible fluid flows, with a view toward incorporating physical constraints such as incompressibility in the probabilistic forecasting framework enabled by generative networks. For that purpose, we explore different conditional, score-based diffusion models where the divergence-free constraint is imposed by the Leray spectral projector, and autoregressive conditioning is aimed at stabilizing the forecasted flow snapshots at distant time horizons. The proposed models are run on a benchmark turbulence problem, namely a Kolmogorov flow, which allows for a fairly detailed analytical and numerical treatment and thus simplifies the evaluation of the numerical methods used to simulate it. Numerical experiments of increasing complexity are performed in order to compare the advantages and limitations of the diffusion models we have implemented and appraise their performances, including: (i) in-distribution assessment over the same time horizons and for similar physical conditions as the ones seen during training; (ii) rollout predictions over time horizons unseen during training; and (iii) out-of-distribution tests for forecasting flows markedly different from those seen during training. In particular, these results illustrate the ability of diffusion models to reproduce the main statistical characteristics of Kolmogorov turbulence in scenarios departing from the ones they were trained on.
