Prediction of Aerodynamic Flow Fields Using Convolutional Neural Networks

Yaser Afshar, Saakaar Bhatnagar, Shaowu Pan, Karthik Duraisamy, Shailendra KaushikarXiv 2019 · DOI

TL;DR

This paper introduces a Convolutional Neural Network (CNN) capable of rapidly predicting aerodynamic flow fields around airfoils. By learning from RANS simulations, the CNN can estimate velocity and pressure fields for novel airfoil shapes and flow conditions orders of magnitude faster than traditional solvers, enabling near real-time design exploration.

What Problem Does This Paper Address?

Designing aerodynamic systems, like aircraft wings or wind turbine blades, often involves computationally intensive simulations to understand fluid flow. These simulations, typically based on solving the Reynolds Averaged Navier-Stokes (RANS) equations, are time-consuming and require significant computational resources. This makes iterative design processes, where engineers explore many different shapes and operating conditions, slow and costly. The paper aims to bridge this gap by developing a data-driven surrogate model that can predict these complex flow fields much more efficiently, accelerating the design and optimization cycle.

Methods

The core of this work is a Convolutional Neural Network (CNN) designed as an encoder-decoder architecture. This architecture is inspired by machine translation models, where an "encoder" compresses the input information (airfoil shape and flow conditions) into a lower-dimensional representation, and a "decoder" reconstructs the desired output (velocity and pressure fields).

Key methodological aspects include:

  • Signed Distance Function (SDF) for Geometry Representation: Instead of using raw mesh data, the airfoil shape is represented by a Signed Distance Function (SDF) sampled on a Cartesian grid. This provides a continuous and robust representation of the geometry that CNNs can effectively process.
  • Shared Encoder-Decoder Architecture: The authors propose a "shared-encoder and decoder" design, where the weights in the decoding layers are shared. This is hypothesized to be more computationally efficient and parameter-light than a "separated decoder" approach, while achieving comparable accuracy.
  • Gradient Sharpening (GS) Loss Function: To improve the sharpness and accuracy of predictions, particularly in regions like the wake, a gradient sharpening term is incorporated into the loss function. This penalizes discrepancies in the gradients of the predicted fields compared to the ground truth.
  • Data-Driven Approach: The CNN is trained on a dataset of RANS simulation results, learning the complex relationships between airfoil geometry, flow parameters (angle of attack, Reynolds number), and the resulting flow field.

Datasets

The study utilizes a dataset generated from 252 RANS simulations performed using the OVERTURNS CFD code. These simulations cover:

  • Three Airfoil Shapes: S805, S809, and S814.
  • Reynolds Numbers: 0.5, 1, 2, and 3 × 10⁶.
  • Angles of Attack: Swept from 0° to 20° in one-degree increments.

The data is split into training (85%) and testing (15%) sets. The paper also evaluates the model on "unseen" airfoil shapes (a "new airfoil" which is an average of S809 and S814, and the S807 and S819 airfoils) to assess generalization capabilities.

Key Insights and Ideas

  • CNNs as Efficient Aerodynamic Surrogates: The research demonstrates that CNNs can effectively learn complex fluid dynamics phenomena from simulation data, offering a significant speedup over traditional solvers.
  • SDF as a Powerful Geometry Input: Representing airfoil shapes using Signed Distance Functions proves to be a robust and effective input for CNNs, allowing them to capture intricate geometric details.
  • Shared Decoder Benefits: The shared encoder-decoder architecture shows promise in reducing computational cost and model complexity without sacrificing accuracy, suggesting a more efficient design for such tasks.
  • Gradient Sharpening for Improved Accuracy: Incorporating gradient sharpening into the loss function demonstrably improves the prediction quality, especially in critical regions like the airfoil wake, leading to sharper and more accurate flow field representations.
  • Near Real-Time Design Exploration: The orders-of-magnitude speedup achieved by the CNN opens up possibilities for real-time or near real-time aerodynamic design and optimization, a significant advancement for engineering workflows.

Key Results

  • Speedup: The CNN-based predictions are reported to be four orders of magnitude faster than RANS solvers on a single GPU.
  • Accuracy: The model achieves mean square error levels of less than 10% over the entire flow field. Mean Absolute Percentage Error (MAPE) values are presented, showing errors typically in the range of 5-15% for velocity and pressure in the entire flow field, with slightly higher errors in the wake region.
  • Generalization: The model shows good generalization capabilities to unseen airfoil shapes, with MAPE values for the "new airfoil" and S807/S819 airfoils also remaining within reasonable bounds.
  • Impact of Gradient Sharpening: The use of gradient sharpening significantly reduces errors, particularly in the wake region, and enhances the sharpness of the predicted flow fields.

Limitations and Future Work

  • Data Limitations: The authors acknowledge that training on only three airfoil shapes might limit the general prediction behavior for entirely different airfoil families.
  • Future Work Suggestions:
    • Augmenting Training Data: To improve generalization, the authors propose using data augmentation techniques to create a broader set of slightly altered training data.
  • Exploring More Airfoil Families: Expanding the training dataset to include a wider variety of airfoil shapes is crucial for broader applicability.
  • Incorporating Physical Constraints: Investigating the use of physical loss functions to explicitly enforce conservation laws (mass, momentum) could further enhance the physical realism and accuracy of the predictions.

Summary updated

Abstract

An approximation model based on convolutional neural networks (CNNs) is proposed for flow field predictions. The CNN is used to predict the velocity and pressure field in unseen flow conditions and geometries given the pixelated shape of the object. In particular, we consider Reynolds Averaged Navier-Stokes (RANS) flow solutions over airfoil shapes. The CNN can automatically detect essential features with minimal human supervision and shown to effectively estimate the velocity and pressure field orders of magnitude faster than the RANS solver, making it possible to study the impact of the airfoil shape and operating conditions on the aerodynamic forces and the flow field in near-real time. The use of specific convolution operations, parameter sharing, and robustness to noise are shown to enhance the predictive capabilities of CNN. We explore the network architecture and its effectiveness in predicting the flow field for different airfoil shapes, angles of attack, and Reynolds numbers.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
S807 unseen airfoilproposed CNN flow-field predictorMAPE, U component, entire flow field8.4%Flow Field Prediction · region=entire flow field · subset=unseen airfoil · component=U
Source quote
L613: S807 │ U │ 11.35% │ 8.4%
S807 unseen airfoilproposed CNN flow-field predictorMAPE, V component, entire flow field8.8%Flow Field Prediction · region=entire flow field · subset=unseen airfoil · component=V
Source quote
L614: S807 │ V │ 2.2% │ 8.8%
S807 unseen airfoilproposed CNN flow-field predictorMAPE, P component, entire flow field7.6%Flow Field Prediction · region=entire flow field · subset=unseen airfoil · component=P
Source quote
L615: S807 │ P │ 6.0% │ 7.6%
S819 unseen airfoilproposed CNN flow-field predictorMAPE, U component, entire flow field10.3%Flow Field Prediction · region=entire flow field · subset=unseen airfoil · component=U
Source quote
L616: S819 │ U │ 13.3% │ 10.3%
S819 unseen airfoilproposed CNN flow-field predictorMAPE, V component, entire flow field8.6%Flow Field Prediction · region=entire flow field · subset=unseen airfoil · component=V
Source quote
L617: S819 │ V │ 2.4% │ 8.6%
S819 unseen airfoilproposed CNN flow-field predictorMAPE, P component, entire flow field7.5%Flow Field Prediction · region=entire flow field · subset=unseen airfoil · component=P
Source quote
L618: S819 │ P │ 5.5% │ 7.5%
BibTeX
@misc{afshar2019prediction,
  author = {Yaser Afshar and Saakaar Bhatnagar and Shaowu Pan and Karthik Duraisamy and Shailendra Kaushik},
  title = {{Prediction of Aerodynamic Flow Fields Using Convolutional Neural Networks}},
  year = {2019},
  eprint = {1905.13166},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.13166},
}
Figure