Turbulent injection assisted by diffusion models for scale-resolving simulations

M. Boxho, Joachim Dominique, Tariq Benamara, Michel Rasquin, Lionel Salesses, Caroline Sainvitu, Gilles Louppe, Thomas ToulorgePhysics 2025

Abstract

The present research proposes a new memory-efficient method using diffusion models to inject turbulent inflow conditions into large eddy simulation and direct numerical simulation for various flow problems. A guided diffusion model was trained on decaying homogeneous isotropic turbulence samples, characterized by different turbulent kinetic energy levels and integral length scales. Samples generated by the diffusion model accurately reproduce turbulence statistics, such as the energy spectrum and the two-point autocorrelation functions, while preserving the ability to generate instantaneous three-dimensional velocity fields with detailed fluctuations. Physical representativeness is also evaluated by injecting the synthetic samples into a free domain through an inlet boundary condition. The method demonstrates promising results regarding energy spectrum, spatial correlation, turbulent kinetic energy level, and integral length scales without increasing the development distance as compared to a library-based method.

Introduction

In computational fluid dynamics (CFD), specifically for Large Eddy Simulations (LES), establishing realistic "inlet" conditions is a significant challenge. To simulate complex flows accurately, researchers must inject turbulence that mimics experimental conditions. Existing methods often face a "trilemma": synthetic generators are fast but lack physical realism; transition-inducing methods require massive computational domains; and library-based methods demand excessive storage and manual tuning to match specific Reynolds numbers. This paper introduces a generative AI solution using Diffusion Models (DMs) to provide the physical realism of a library with the speed and flexibility of a synthetic generator.

Methodology

The core of this approach is a Classifier-Free Diffusion Model (CF-DM). Diffusion models generate new data by learning to reverse a noise-addition process. The model is conditioned on the Reynolds number ($Re_{L_{int}}$), allowing it to generate specific turbulence states on demand.

Schematic of the turbulent injection framework using a Classifier-Free Diffusion Model (CF-DM) and the Argo-DG flow solver.

To ensure temporal continuity between generated turbulence "boxes," the authors utilized Moment Matching Posterior Sampling (MMPS). This technique uses a mask to ensure the beginning of a new box matches the end of the previous one, preventing unphysical jumps in the flow. The generated turbulence was validated using the Argo-DG Solver, a high-order Discontinuous Galerkin flow solver, to evaluate how the synthetic fluctuations behave when injected into a simulation domain.

Data and Training

The model was trained on a database of Decaying Homogeneous Isotropic Turbulence (DHIT) consisting of 214 unique 3D snapshots. These snapshots cover a wide range of Turbulent Kinetic Energy (TKE) levels and normalized integral length scales. By leveraging the periodic nature of these 3D boxes, the authors used translations to expand the dataset to over 56 million potential training samples, ensuring the model could generalize effectively.

Key Results and Discussion

The AI-based approach offers dramatic improvements in both computational efficiency and physical accuracy:

  • Computational Efficiency: The model can generate 24 boxes of turbulence in just 3 minutes. Producing the same data using traditional high-fidelity simulations would require approximately 6,144 CPU hours.
  • Storage Gains: The trained model occupies only 32 MB of memory, whereas a traditional library of equivalent variety would require gigabytes of storage and significant I/O overhead.
  • Physical Accuracy: A posteriori tests (actual injection) demonstrated that the turbulence remained stable and physically representative as it moved through the simulation domain.
Evolution of the energy spectrum E(K) at different downstream locations (x/L) after injection, demonstrating the stability of the generated turbulence.

As shown in the energy spectra above, the injected turbulence maintains its physical characteristics at various downstream locations ($x/L$), matching the target statistics closely. A key insight is the model's interpolation power; it can accurately generate turbulence for Reynolds numbers it was not explicitly trained on, eliminating the need for expensive new precursor simulations for every test case.

Conclusion and Future Work

While the method is highly efficient, the researchers noted that the MMPS method introduced some unwanted directional bias (anisotropy). Future work will focus on incorporating physical constraints, such as "divergence-free" conditions, directly into the neural network's loss function. Additionally, the team aims to extend this framework from simple homogeneous isotropic turbulence to more complex flows, such as boundary layers near walls and turbulent wakes.

Summary updated

BibTeX
@inproceedings{boxho2025turbulent,
  author = {M. Boxho and Joachim Dominique and Tariq Benamara and Michel Rasquin and Lionel Salesses and Caroline Sainvitu and Gilles Louppe and Thomas Toulorge},
  title = {{Turbulent injection assisted by diffusion models for scale-resolving simulations}},
  booktitle = {Physics},
  year = {2025},
  doi = {10.1063/5.0278541},
}
Figure