DeepCFD: Efficient Steady-State Laminar Flow Approximation with Deep Convolutional Neural Networks

Mateus Dias Ribeiro, Abdul Rehman, Sheraz Ahmed, Andreas DengelarXiv 2020

Introduction

Computational Fluid Dynamics (CFD) is essential for diverse applications, from automotive design to climate modeling. However, solving the underlying Navier-Stokes equations is computationally intensive, often requiring significant time and memory to reach convergence. This "computational tax" creates a bottleneck in iterative engineering design processes. DeepCFD addresses this challenge by providing a deep learning surrogate model capable of approximating 2D steady-state laminar flow solutions with near-instantaneous results.

Methodology

The DeepCFD framework employs a convolutional neural network (CNN) to predict the horizontal velocity ($u_x$), vertical velocity ($u_y$), and pressure ($p$) fields directly from geometric inputs.

Input Representation and Pipeline

To effectively communicate geometry to the network, the researchers utilized a Signed Distance Function (SDF). Unlike simple binary masks, the SDF provides a smooth spatial gradient representing the distance from every grid point to the nearest surface, which is more conducive to CNN processing. Additionally, a "flow region channel" explicitly labels boundary conditions such as inlets, outlets, and no-slip walls.

Overview of the DeepCFD learning approach: (a) Input channels with SDF and region labeling, (b) the encoder-decoder architecture, and (c) the resulting velocity and pressure fields.

Architectural Innovations

The study compared standard Autoencoder (AE) architectures with U-Net variants. The U-Net architecture proved superior due to its skip-connections, which preserve high-resolution geometric details by passing features directly from the encoder to the decoder. Furthermore, the researchers introduced a multi-decoder approach, where separate decoders are used for each output variable ($u_x, u_y, p$). This disentanglement allows the model to better capture the distinct physical scales and behaviors of velocity versus pressure.

Comparison of the four investigated architectures: Autoencoders and U-Nets with either one or three decoders.

Experimental Setup and Results

The model was trained on a dataset of over 1,000 simulations generated using OpenFOAM. The dataset featured diverse geometries created by applying random deformations to primitive shapes (circles, squares, triangles, and rhombi) to ensure robustness to unseen designs.

Performance and Accuracy

DeepCFD achieved remarkable speedups compared to traditional numerical solvers:

  • CPU Performance: A standard simulation taking 52.5 seconds was completed in 0.04 seconds (a ~1,100x speedup).
  • GPU Performance: Execution time dropped to 0.004 seconds, representing a five-order-of-magnitude speedup.

Despite the speed, the model maintained high fidelity. Quantitative analysis showed that most predictions had a relative error of less than 10% compared to ground-truth OpenFOAM results. Qualitatively, the model accurately captured complex flow phenomena, such as flow separation and high-pressure zones on leading edges.

Conclusion and Future Work

DeepCFD demonstrates the potential of CNNs as powerful surrogates for steady-state laminar flow. While currently limited to 2D flows, future work aims to extend the architecture to 3D geometries and turbulent flow regimes, potentially utilizing Recurrent Neural Networks (RNNs) for temporal dynamics. Additionally, incorporating physical constraints directly into the loss function (Physics-Informed Neural Networks) remains a promising avenue to ensure strict adherence to conservation laws.

Summary updated

BibTeX
@misc{ribeiro2020deepcfd,
  author = {Mateus Dias Ribeiro and Abdul Rehman and Sheraz Ahmed and Andreas Dengel},
  title = {{DeepCFD: Efficient Steady-State Laminar Flow Approximation with Deep Convolutional Neural Networks}},
  year = {2020},
  eprint = {2004.08826},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.08826},
}
Figure