FuncGenFoil: Airfoil Generation and Editing Model in Function Space

Jinouwen Zhang, Junjie Ren, Qianhong Ma, Jianyu Wu, Aobo Yang, Yan Lu, Lu Chen, Hairun Xie, Jing Wang, Miao Zhang, Wanli Ouyang, Shixiang Tang

TL;DR

FuncGenFoil introduces a novel function-space generative model for airfoil design that treats geometries as continuous curves rather than discrete point clouds or rigid parametric formulas. By combining Operator Flow Matching with Fourier Neural Operators, it breaks the traditional trade-off between design flexibility and geometric smoothness, achieving a 74.4% reduction in parameter error and enabling seamless, arbitrary-resolution airfoil editing.

What Problem Does This Paper Address?

In aircraft manufacturing, designing the perfect airfoil—the cross-sectional shape of a wing—is a high-stakes balancing act. Traditionally, engineers rely on slow, iterative aerodynamic simulations and trial-and-error optimization. Machine learning has sped this up, but existing generative models suffer from a fundamental representation dilemma:

  1. Parametric-model-based approaches (like Bézier curves) predefine a mathematical family of shapes. They guarantee smooth surfaces and can be sampled at any resolution, but they severely restrict the "design space"—if a highly efficient shape falls outside the predefined mathematical family, the model can never discover it.
  2. Discrete-point-based approaches directly generate a fixed set of coordinate points. This maximizes design freedom but sacrifices mathematical continuity, often producing jagged surfaces that perform poorly in fluid dynamics. Furthermore, they cannot scale to arbitrary resolutions after training.
Figure 1: The conceptual difference between FuncGenFoil and previous airfoil representation methods. In many previous approaches, airfoils are represented either as parametric models, as shown in (a), or as discrete point-based models, as shown in (b). In contrast, (c) illustrates FuncGenFoil’s approach, where an airfoil is treated as a continuous function mapped from a latent function, enabling a generative model in function space.

FuncGenFoil bridges this gap by modeling airfoils directly in function space, treating the geometry as a continuous function mapped from a latent stochastic process.

Methods

FuncGenFoil utilizes a combination of Flow Matching—an alternative to diffusion models that learns straight-line trajectories to transform noise into data—and Fourier Neural Operators (FNOs) as its backbone network architecture.

The core pipeline consists of:

  • Circular Parameterization: To handle the closed-loop topology of an airfoil, the authors map the 2D coordinates to a continuous function domain $\alpha \in [0, 1]$, transforming the shape into a well-defined functional curve.
  • Velocity Operator Learning: Instead of generating static points, the FNO learns a "velocity field" that gradually deforms a smooth noise function (sampled from a Gaussian Process prior) into the final airfoil function curve over a continuous time horizon $t \in [0, 1]$.
  • Controllable Airfoil Editing: To modify an existing airfoil, the model uses Neural ODE inversion to map the original airfoil back to its exact latent code. Users can then specify constraints (e.g., dragging a specific point on the contour). The model fine-tunes its velocity operator via Maximum A Posteriori (MAP) estimation, balancing the user's geometric constraints with the learned physical priors of valid airfoils.
Figure 2: Top: Overview of FuncGenFoil’s neural network and training scheme. The model is a Fourier Neural Operator designed for point cloud data, although any other neural operator capable of general-purpose function-space approximation may be used. The model takes as input a function ut (point cloud data at an arbitrary resolution d), optional design condition variables c, and the generation time t. It then processes this input function consistently and outputs the current velocity operator vθ(ut, c, t) for calculating the flow matching loss. Bottom: Inference with FuncGenFoil is conducted by first sampling a random latent function from a Gaussian process and then reconstructing the airfoil by solving an ODE.

Datasets

The authors evaluated their model across several established benchmarks:

  • UIUC: A standard database containing 1,600 historical and experimental airfoil geometries.
  • Supercritical Airfoil (Super): A dataset of ~20,000 specialized supercritical airfoils, which are critical for modern high-speed commercial aircraft.
  • AF-200K: A massive, highly diversified dataset consisting of 200,000 airfoil samples.
  • NASA Common Research Model (CRM): A dataset of 135,000 wing geometries paired with high-fidelity Reynolds-Averaged Navier-Stokes (RANS) Computational Fluid Dynamics (CFD) simulation data.

Key Insights and Ideas

  • The Power of Infinite Dimensions: By operating in function space, the model inherently decouples training resolution from inference resolution. A model trained on 257 points can seamlessly generate or evaluate airfoils at 1,025 points or higher without retraining.
  • Gaussian Processes as Smoothness Priors: Choosing a smooth kernel (like Matérn or RBF) for the Gaussian Process noise prior acts as a regularizer. It ensures that the noise being diffused already possesses function-level smoothness, which transfers directly to the generated aerodynamic shapes.
  • Overcoming the "Aha" Curvature Challenge: Classical optimization methods struggle to fit the high-curvature leading edge of an airfoil with limited control points. FuncGenFoil's operator-based approach naturally adapts to these sharp geometric transitions without losing global surface smoothness.

Key Results

FuncGenFoil significantly outperformed state-of-the-art point-based and parametric baselines (such as PK-DIT) across all major metrics:

  • Precision and Diversity: On the massive AF-200K dataset, FuncGenFoil achieved a 74.4% relative reduction in label error (how closely the generated shape matches target geometric parameters) while simultaneously increasing shape diversity by 23.2%.
  • Zero-Error Editing: For freestyle editing tasks (dragging or fixing contour points), the model achieved a Mean Squared Error (MSE) of less than $10^{-7}$, adapting smoothly to user constraints within just a few fine-tuning steps.
  • Aerodynamic Validity: When tested via RANS CFD simulations on generated CRM wings, the lift-to-drag ratio ($L/D$) distribution of FuncGenFoil's designs closely matched the physics-validated distribution of the original dataset, proving that the model generates physically plausible, high-performance shapes.
Figure 5: Left: Comparison of the lift-to-drag ratio histograms for CRM wings in the original dataset and the samples generated by our FuncGenFoil model. Right: Visualization of the pressure coefficient for the generated CRM wings, obtained through aerodynamic simulation.

Limitations and Future Work

While FuncGenFoil represents a major leap forward for functional geometric modeling, the authors note a few key limitations:

  • Geometric Complexity: The current framework is optimized for relatively simple, smooth 2D topologies (airfoils and extruded 3D wings).
  • Scaling to Full Aircraft: Extending this function-space approach to model an entire aircraft body—which contains non-smooth intersections, sharp angles, and highly irregular 3D structures—remains an open challenge. Doing so will require developing new coordinate mapping systems capable of handling complex, multi-component 3D manifolds.

Summary updated

BibTeX
@inproceedings{zhang2025funcgenfoil,
  author = {Jinouwen Zhang and Junjie Ren and Qianhong Ma and Jianyu Wu and Aobo Yang and Yan Lu and Lu Chen and Hairun Xie and Jing Wang and Miao Zhang and Wanli Ouyang and Shixiang Tang},
  title = {{FuncGenFoil: Airfoil Generation and Editing Model in Function Space}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=yXitkQJmpj},
}
Figure