Abstract
Computational design optimization in fluid dynamics usually requires to solve non-linear partial differential equations numerically. In this work, we explore a Bayesian optimization approach to minimize an object's drag coefficient in laminar flow based on predicting drag directly from the object shape. Jointly training an architecture combining a variational autoencoder mapping shapes to latent representations and Gaussian process regression allows us to generate improved shapes in the two dimensional case we consider.
Introduction
In engineering disciplines such as aerospace and automotive design, minimizing fluid resistance, or drag, is a critical objective. Traditionally, evaluating the aerodynamic performance of a shape requires solving the Navier-Stokes equations. These non-linear partial differential equations describe fluid flow but lack analytical solutions for complex geometries, necessitating computationally intensive numerical simulations like finite element analysis. This reliance on heavy computation creates a significant bottleneck in iterative design cycles.
This paper presents a data-driven alternative: a Bayesian optimization framework that learns to map 2D shapes directly to their drag coefficients. By operating in a learned, continuous latent space, the system can explore and optimize designs without requiring a full simulation at every step of the optimization process.
Proposed Framework
The core of the approach is a pipeline that translates discrete shape images into a continuous, mathematically optimizable representation.
The architecture consists of several integrated components:
- Shape Encoding: A Convolutional Variational Autoencoder (VAE) compresses binary images of 2D shapes into a lower-dimensional latent space.
- Label-Guided Joint Training: Unlike standard VAEs trained solely on reconstruction, this model incorporates a "Drag Network" (DN) that predicts drag coefficients directly from latent vectors. By training the VAE and DN jointly, the latent space is organized according to both visual features and aerodynamic performance.
- Uncertainty Quantification: For effective Bayesian optimization, the system must estimate prediction uncertainty. The authors freeze the trained encoder and fit a sparse-spectrum Gaussian Process (GP) over the latent space.
- Bayesian Optimization: The GP guides a search for latent vectors that maximize "Expected Improvement" (EI). Once an optimal vector is found, the VAE decoder reconstructs it into a physical 2D shape.
Data Generation and Simulation
To train the model, the authors generated a dataset of 5,200 unique 2D shapes. These shapes were constructed using random radii at various polar angles, smoothed via Fourier descriptors to ensure realistic geometries.
Ground-truth drag coefficients and velocity fields were calculated using a finite element solver (QuickerSim in MATLAB). The simulations modeled laminar, incompressible flow at low Reynolds numbers. The resulting dataset provided the necessary labels for the joint training process.
Performance and Optimization Results
The study demonstrates that joint training significantly enhances the predictive power of the model. For a 20-dimensional latent space, the relative Mean Squared Error (MSE) for drag prediction dropped from 0.74 (with separate training) to 0.52 (with joint training). This suggests that incorporating performance labels during encoding creates a smoother, more structured latent space.
In optimization tasks, the framework successfully identified novel shapes that outperformed the training set. The generated designs achieved a 4% to 8% reduction in drag coefficient compared to the best-performing shape in the original 5,200-sample dataset. Furthermore, while initial data generation and training required approximately 23 hours, the subsequent optimization of new shapes took only one hour, representing a substantial speedup over traditional simulation-based iteration.
Conclusion and Future Work
This work highlights the potential of label-guided VAEs to accelerate aerodynamic design. By decoupling high-dimensional image processing from uncertainty-aware regression, the model effectively navigates the design space to find high-performance geometries.
However, several challenges remain. The current scope is limited to 2D laminar flow; extending the model to 3D voxel data and turbulent flow regimes is a necessary next step for industrial application. Additionally, the inherent "blurriness" of VAE outputs requires post-processing (such as Sobel edge detection) to extract precise boundaries for validation. Future research will focus on these scaling challenges and improving the fidelity of generated designs.
Summary updated