Abstract
We propose a novel denoising diffusion generative model for predicting nonlinear fluid fields named FluidDiff. By performing a diffusion process, the model is able to learn a complex representation of the high-dimensional dynamic system, and then Langevin sampling is used to generate predictions for the flow state under specified initial conditions. The model is trained with finite, discrete fluid simulation data. We demonstrate that our model has the capacity to model the distribution of simulated training data and that it gives accurate predictions on the test data. Without encoded prior knowledge of the underlying physical system, it shares competitive performance with other deep learning models for fluid prediction, which is promising for investigation on new computational fluid dynamics methods.
Introduction
Computational Fluid Dynamics (CFD) is the cornerstone of modern engineering and meteorology, yet solving the governing Navier-Stokes equations remains computationally expensive due to the need for fine-grained discretization. While Deep Learning (DL) has emerged as a faster alternative, existing generative approaches like Generative Adversarial Networks (GANs) often suffer from training instability and mode collapse. Physics-Informed Neural Networks (PINNs), while accurate, typically require explicit knowledge of physical laws and can struggle to generalize. We introduce FluidDiff, a denoising diffusion approach that learns complex fluid behaviors purely from data, offering a stable and high-quality alternative for flow prediction.
Methodology
FluidDiff is built upon the framework of conditional Denoising Diffusion Probabilistic Models (DDPM). The core mechanism involves a diffusion process where Gaussian noise is gradually added to clean fluid velocity fields until they are stochastic. The model then learns to reverse this process, iteratively "denoising" the field to reconstruct the underlying fluid structure.
The model utilizes a modified U-Net backbone incorporating ResNet-like blocks for feature extraction and Transformer layers for self-attention. This allows the model to capture long-range spatial dependencies essential for fluid dynamics. Notably, FluidDiff is physics-agnostic; it does not have the Navier-Stokes equations pre-encoded, instead learning the dynamics entirely from discrete simulation snapshots.
Experimental Setup
The researchers evaluated FluidDiff using a 2D random floating-smoke scenario. Data was generated using the $\phi$Flow framework, simulating 1,000 experiments of buoyant smoke. This resulted in a dataset of 40,000 snapshots of velocity components ($u_x$ and $u_y$) on a 64x64 grid. The model was trained on an 80/20 split to ensure robust generalization to unseen initial conditions.
Key Results and Performance
FluidDiff demonstrates significant advantages in both stability and accuracy compared to traditional generative models. By bypassing the adversarial training of GANs, FluidDiff avoids mode collapse and more effectively learns the true probability distribution of the fluid data.
As shown in Table 1, FluidDiff achieved a Mean Absolute Error (MAE) of 0.1975, significantly outperforming both the cGAN (0.4030) and the standard U-Net (0.3894). While PINNs achieved a lower error (0.1324), they require explicit physical constraints and prior knowledge of the system. Qualitatively, FluidDiff produces realistic, high-fidelity velocity fields that capture the intricate "swirly" textures of turbulence, whereas standard regression models often produce blurred or averaged results.
Limitations and Future Work
Despite its performance, FluidDiff faces challenges regarding sampling speed due to the iterative nature of the denoising process. Additionally, as a purely data-driven model, it can occasionally produce unphysical artifacts or accumulate errors over long-term horizons. Future work will focus on Physics-Guided Diffusion, integrating physical constraints like conservation of mass directly into the denoising process to ensure that generated fields are both visually and physically consistent.
Summary updated