Preliminary Study of Airfoil Design Synthesis Using a Conditional Diffusion Model and Smoothing Method

Kazuo Yonekura, Yuta Oshima, Masaatsu AichiComput 2024

TL;DR

This paper explores using conditional diffusion models for airfoil design synthesis, a task crucial for creating high-performance aerodynamic shapes. While diffusion models show promise, they generate noisy shapes that require smoothing. The study demonstrates that convolutional diffusion models, combined with a moving average filter, can produce usable airfoil designs, though with limitations in accuracy compared to existing methods.

What Problem Does This Paper Address?

Designing airfoils with specific performance characteristics, like lift coefficients, is a complex process. Traditional methods often rely on iterative refinement by human experts, which can be time-consuming and limit the discovery of novel shapes. Machine learning, particularly deep generative models, offers a way to automate and enhance this design process. While generative adversarial networks (GANs) and variational autoencoders (VAEs) have been applied, they can produce noisy outputs or struggle to meet performance requirements. Diffusion models, a newer class of generative models, have shown superior performance in image generation and are being explored for design synthesis. However, their application to airfoil design, especially ensuring performance requirements and dealing with inherent noise, remains an open research question. This paper investigates the use of conditional diffusion models for airfoil design synthesis, aiming to understand their capabilities and limitations in generating shapes that meet performance criteria.

Methods

The core of this research lies in applying a Denoising Diffusion Probabilistic Model (DDPM), a type of diffusion model, for airfoil shape generation. The authors specifically use a conditional diffusion model, meaning the generation process is guided by specific conditions (in this case, desired lift coefficients).

Two main architectural approaches were explored:

  • Linear Layers: This approach used fully connected linear layers within the diffusion model.
  • Convolutional Layers: This approach employed convolutional layers, which are generally better at capturing spatial hierarchies and local patterns in data, making them more suitable for image-like structures such as airfoil shapes.

A key challenge identified was the noisy output from the diffusion models. To address this, the researchers applied a moving average filter to smooth the generated airfoil outlines. The filter's formula is given as $\hat{x}_i = \frac{1}{2N+1} \sum_{j=i-N}^{i+N} x_j$, with $N=7$ used in their experiments. This smoothing step was crucial for enabling subsequent flow analysis.

Datasets

The study utilized a dataset of NACA 4-digit series airfoils and Joukowski airfoils. These airfoils are defined by specific geometric parameters. The dataset was preprocessed by:

  • Discretizing airfoil profiles into 248 coordinates.
  • Calculating lift coefficients using the XFoil software.
  • Excluding profiles where XFoil calculations failed to converge or produced unrealistic lift coefficients.
  • Standardizing the airfoil coordinates and lift coefficients to have a mean of 0 and a variance of 1.

The final dataset comprised 3767 pairs of airfoil profiles and lift coefficients. The authors note that this dataset size is relatively small for diffusion models, which can impact training stability.

Key Insights and Ideas

  • Linear layers are insufficient for airfoil shape generation: The initial experiments with linear layers resulted in completely random outputs, highlighting the need for more spatially aware architectures.
  • Convolutional layers are better suited but still produce noise: While convolutional layers generated recognizable airfoil shapes, the outlines were significantly noisy, preventing direct flow analysis. This noise is attributed to the inherent Gaussian noise in the diffusion process.
  • Smoothing is essential for practical application: The moving average filter proved effective in reducing noise and creating smooth airfoil outlines, making them amenable to aerodynamic analysis.
  • Small dataset size is a significant limitation: The relatively small dataset size (3767 samples) is identified as a potential reason for the instability and noise observed in the diffusion models.

Key Results

  • Convergence Rate: The conditional diffusion model achieved a convergence rate of 20.4% for lift coefficient calculations using XFoil. This is significantly lower than conditional S-VAE (89.8%) and conditional GAN (90.4%) reported in prior work.
  • Mean Squared Error (LMSE): The LMSE for the diffusion model was 0.489, which is considerably higher than that of conditional S-VAE (0.020) and conditional GAN (0.047). The authors attribute this to the smoothing filter altering the airfoil shape.
  • Diversity (μ): The diversity metric (μ) for the diffusion model was 6.472, also higher than S-VAE and GAN.
  • Uniqueness (ν): The uniqueness metric (ν) was 0.171, which is comparable to S-VAE and GAN.

Qualitatively, the convolutional diffusion model, when smoothed, produced recognizable airfoil shapes, but the accuracy of meeting specific lift coefficients was lower compared to established methods.

Limitations and Future Work

The paper acknowledges several limitations and suggests future directions:

  • Noisy Outputs: The inherent noise in diffusion models requires post-processing (smoothing), which can impact the accuracy of the generated shapes and their performance.
  • Low Convergence Rate and High LMSE: The generated airfoils have a low success rate in XFoil calculations and a high mean squared error, indicating that the model struggles to generate shapes that precisely meet the desired lift coefficients.
  • Small Dataset Size: The limited dataset size is a major factor contributing to instability and noise. Future work should explore larger datasets.
  • Smoothing Impact: The moving average filter, while effective for smoothing, alters the airfoil shape, leading to higher LMSE. Research into more sophisticated or physics-informed smoothing techniques is needed.
  • Stabilization Techniques: The authors suggest that stabilization techniques, similar to those used for GANs, could be beneficial for diffusion models.
  • Loss Function Revision: Incorporating penalty terms for noisy lines into the loss function could directly address the noise issue.
  • Physics-Informed Neural Networks: For improved accuracy in meeting requirements, the integration of physics-informed neural networks is proposed.

Summary updated

BibTeX
@article{yonekura2024preliminary,
  author = {Kazuo Yonekura and Yuta Oshima and Masaatsu Aichi},
  title = {{Preliminary Study of Airfoil Design Synthesis Using a Conditional Diffusion Model and Smoothing Method}},
  journal = {Comput.},
  year = {2024},
  doi = {10.3390/computation12110227},
}

Loading related content...

Figure