Machine learning accelerated computational fluid dynamics

Dmitrii Kochkov, Jamie A. Smith, Ayya Alieva, Qing Wang, Michael P. Brenner, Stephan HoyerarXiv 2021 · DOI

TL;DR

This paper introduces a novel machine learning-accelerated computational fluid dynamics (CFD) solver that achieves the accuracy of high-resolution simulations with significantly coarser grids, leading to substantial speedups. By integrating learned components into traditional CFD solvers, the method demonstrates remarkable generalization capabilities, outperforming existing ML approaches.

What Problem Does This Paper Address?

Simulating fluid dynamics, governed by the Navier-Stokes equations, is crucial for fields like weather forecasting, climate modeling, and aerospace engineering. However, accurately capturing the smallest spatiotemporal features of turbulent flows requires immense computational resources, leading to a trade-off between accuracy and tractability. Direct Numerical Simulation (DNS), which resolves all scales, is prohibitively expensive for most practical applications. Large Eddy Simulation (LES) offers a compromise by modeling smaller scales, but its accuracy is limited by the sub-grid scale models. This paper tackles the challenge of achieving high-fidelity fluid simulations at a fraction of the computational cost, bridging the gap between accuracy and efficiency.

Methods

The authors propose a "learned interpolation" (LI) approach that enhances existing CFD solvers. Instead of replacing the entire simulation with a black-box ML model, they integrate learned components into specific parts of the solver most affected by coarse-graining, particularly the convection term. Their method uses a convolutional neural network to learn local operators that interpolate differential operators onto a coarse mesh with high accuracy. This approach is trained end-to-end using automatic differentiation within a JAX framework, allowing for gradient-based optimization of the entire algorithm. The learned components are designed to respect fundamental physical symmetries and scaling properties, ensuring better generalization than pure ML methods. They also explore a "learned correction" (LC) approach, which models a residual correction to the discretized Navier-Stokes equations, similar in spirit to LES modeling.

Datasets

The paper utilizes several datasets generated from high-resolution direct numerical simulations (DNS) of turbulent flows. These include:

  • Kolmogorov flows: At Reynolds numbers of 1000 and 4000.
  • Larger domain Kolmogorov flow: A 2x larger domain simulation at Re=1000.
  • Decaying turbulence: A simulation where turbulence evolves without forcing.
  • Large Eddy Simulation (LES) dataset: At a Reynolds number of 10⁵.

These datasets are used for both training and evaluating the generalization capabilities of their learned models. The ground truth trajectories are obtained by running high-resolution simulations and then downsampling them to the coarser grid resolution used by the ML models.

Key Insights and Ideas

  • Physics-informed ML for CFD: Integrating ML components into existing, physics-based solvers (rather than replacing them entirely) leads to more robust and generalizable models.
  • Learned Interpolation as Super-Resolution: The LI approach effectively acts as a form of "super-resolution" for fluid simulations, recovering accuracy typically found at much finer resolutions.
  • Generalization through Local Operators: The learned operators are inherently local, allowing them to generalize well to different domain sizes, forcing functions, and even Reynolds numbers outside the training distribution.
  • Efficiency Gains: The significant speedups are achieved not by reducing the number of operations drastically, but by enabling the use of much coarser grids for the same level of accuracy.

Key Results

  • Accuracy: The learned interpolation model achieves accuracy comparable to baseline solvers with 8-10x finer resolution in each spatial dimension.
  • Speedup: This improved resolution translates to a 40-80x computational speedup for 2D turbulent flows.
  • Generalization: The models demonstrate strong generalization capabilities, performing well on larger domains, decaying turbulence, and higher Reynolds numbers without retraining.
  • LES Acceleration: The method also successfully accelerates LES simulations, achieving an effective 8x upscaling and roughly 40x speedup.
  • Comparison to other ML models: The learned interpolation and correction models consistently outperform pure black-box ML methods (ResNet, Encoder-Processor-Decoder) in terms of accuracy, stability, and generalization.

Limitations and Future Work

  • Equation-Specific: The derived models are equation-specific and require training on high-resolution simulations of the target PDE.
  • 3D Turbulence: While the authors believe their approach can generalize to 3D, they acknowledge that significant speedups (10³-10⁴) might require more efficient representations or accepting statistical rather than pointwise accuracy.
  • ML Cost: The current ML inference cost is higher than the physics cost, but this is offset by the coarser grid. Future work could focus on making ML inference even more efficient.
  • Future Directions: The authors suggest exploring more efficient ML representations, potentially using recurrent neural networks for shared computations across time steps, and investigating applications to other computationally intensive scientific domains.

Summary updated

BibTeX
@misc{kochkov2021machine,
  author = {Dmitrii Kochkov and Jamie A. Smith and Ayya Alieva and Qing Wang and Michael P. Brenner and Stephan Hoyer},
  title = {{Machine learning accelerated computational fluid dynamics}},
  year = {2021},
  eprint = {2102.01010},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.01010},
}
Figure