Abstract
In recent years, applying deep learning to solve physics problems has attracted much attention. Data-driven deep learning methods produce fast numerical operators that can learn approximate solutions to the whole system of partial differential equations (i.e., surrogate modeling). Although these neural networks may have lower accuracy than traditional numerical methods, they, once trained, are orders of magnitude faster at inference. Hence, one crucial feature is that these operators can generalize to unseen PDE parameters without expensive re-training. In this paper, we construct CFDBench, a benchmark tailored for evaluating the generalization ability of neural operators after training in computational fluid dynamics (CFD) problems. It features four classic CFD problems: lid-driven cavity flow, laminar boundary layer flow in circular tubes, dam flows through the steps, and periodic Karman vortex street. The data contains a total of 302K frames of velocity and pressure fields, involving 739 cases with different operating condition parameters, generated with numerical methods. We evaluate the effectiveness of popular neural operators including feed-forward networks, DeepONet, FNO, U-Net, etc. on CFDBench by predicting flows with non-periodic boundary conditions, fluid properties, and flow domain shapes that are not seen during training. Empirical results on CFDBench show many baseline models have errors as high as 300% in some problems, and severe error accumulation when performing autoregressive inference. CFDBench facilitates a more comprehensive comparison between different neural operators for CFD compared to existing benchmarks.
Introduction
The rise of "surrogate modeling"—using neural networks to approximate solutions for Partial Differential Equations (PDEs)—has promised a revolution in engineering. These models offer the potential to predict complex fluid flows in milliseconds, providing a 100x to 200x speedup over traditional numerical solvers like Finite Volume Methods. However, a significant hurdle remains: generalization.
Most current research focuses on changing initial conditions. In practical engineering, models must generalize to varying operating parameters—such as fluid viscosity, inlet velocities, or entirely new geometries—without retraining. CFDBench addresses this gap by providing a rigorous testing ground for the generalization capabilities of neural operators across diverse physical properties and boundary conditions.
Methodology
The study evaluates two primary modeling approaches:
- Non-Autoregressive Modeling: The model functions as a continuous operator, taking coordinates $(x, y, t)$ and operating parameters $\Omega$ as inputs to directly predict fluid velocity.
- Autoregressive Modeling: The model predicts the state at time $t$ based on the state at $t-1$, mimicking the iterative nature of traditional solvers.
To accommodate varying parameters in standard architectures like U-Net or FNO, the authors introduced "operating condition channels." Parameters such as density or viscosity were integrated as additional input layers, and "mask channels" were utilized to define complex geometries and obstacles within the flow domain.
The CFDBench Dataset
CFDBench was generated using industry-standard ANSYS Fluent software, comprising 302,000 frames across 739 distinct cases. It covers four foundational CFD problems that test different physical phenomena:
- Lid-Driven Cavity Flow: Fluid motion within a box driven by a sliding lid.
- Tube Flow: Laminar flow through circular tubes, focusing on boundary layer theory.
- Dam Flow: A dam-break scenario where fluid interacts with vertical obstacles, testing gravity and inertia.
- Cylinder Flow: Flow around a cylinder resulting in a periodic Karman vortex street.
Unlike previous benchmarks, CFDBench explicitly varies three critical dimensions: Boundary Conditions (BC), Physical Properties (PROP), and Geometry (GEO).
Analysis of Neural Operator Performance
The evaluation reveals a significant "generalization gap." Models that achieve high accuracy on specific training setups often fail when faced with unseen fluid viscosities or container shapes, with some errors exceeding 300%.
Architecture-Specific Strengths
- U-Net: Demonstrated superior performance in flows without gravity due to its ability to capture sharp spatial gradients.
- Fourier Neural Operator (FNO): Excelled at periodic flows, such as the cylinder vortex, by operating effectively in the frequency domain.
- DeepONet: Showed greater robustness in handling source terms like gravity in the dam flow problem.
Stability and Error Accumulation
A critical finding is the "identity trap" in autoregressive modeling, where networks learn to simply output the previous frame. While this yields low single-step error, it fails to capture the underlying physics, leading to massive error accumulation over time. For example, FNO’s error increased by 1,000x within just 15 time steps in tube flow simulations. Non-autoregressive models proved more stable over time but struggled with the convergence of complex, high-velocity flows.
Conclusion and Future Directions
While neural operators offer transformative speed, CFDBench demonstrates that their reliability for engineering-grade CFD is currently limited by long-term stability and generalization issues. Purely data-driven models often "drift" from physical reality. The authors suggest that integrating physical laws directly into training—such as through Physics-Informed Neural Networks (PINNs)—is the necessary next step to mitigate the generalization errors and accumulation issues identified in this benchmark.
Summary updated