Finite Volume Features, Global Geometry Representations, and Residual Training for Deep Learning-based CFD Simulation

Loh Sher En Jessica, Naheed Anjum Arafat, Wei Xian Lim, Wai Lee Chan, Adams Wai Kin Kong

This paper presents a significant step forward in making deep learning a practical tool for engineering design by bridging the gap between modern Graph Neural Networks (GNNs) and traditional, physics-based numerical simulation methods.

TL;DR

Researchers have developed new ways to feed geometric and physical information into Graph Neural Networks for fluid dynamics, achieving up to a 41% reduction in prediction error. By incorporating "global" geometric perspectives and traditional finite volume characteristics, these models can predict complex flow fields around objects like airfoils much more accurately than previous state-of-the-art methods.

What Problem Does This Paper Address?

Computational Fluid Dynamics (CFD) is the backbone of modern engineering, used to design everything from fuel-efficient aircraft to urban wind corridors. However, high-fidelity CFD is notoriously slow and computationally expensive. While researchers have turned to GNNs to accelerate these simulations, current AI models suffer from two major "blind spots":

  1. Lack of Global Context: Most GNNs only "see" their immediate neighbors. To understand the shape of an object (like a wing) immersed in the fluid, information must travel through many layers of the network, which is inefficient and prone to error.
  2. Ignoring Physical Mesh Data: Traditional CFD relies on the Finite Volume Method (FVM), which uses specific cell properties like volume and face area to calculate fluid flow. Most current GNNs ignore these critical physical parameters, treating the simulation mesh as a simple, abstract graph.

Methods

The authors propose three key innovations to fix these issues:

  • Global Geometry Representations: They introduce two new features for every node in the graph: Shortest Vector (SV) and Directional Integrated Distance (DID). Unlike the standard Signed Distance Function (SDF) which only gives distance, SV provides a vector pointing to the nearest boundary. DID goes further, providing a weighted average distance to boundaries across multiple angular segments, giving each node a "panoramic view" of the surrounding geometry. Comparison of geometry representations: SDF, SV, and DID
Figure 2: Illustration of three geometry representations: (a) SDF value only indicates presence of the closest boundary point somewhere along the circle’s circumference. (b) SV provides both distance and direction from the nearest bound- ary point. (c) DID gives the average distance of all boundary within several difference angle ranges.
  • Finite Volume Features (FVF): The authors shift from standard node-based graphs to cell-centroid-based graphs. In this setup, nodes represent the centers of fluid cells, and edges represent the shared faces between them. They then embed physical characteristics—cell volume, face area normal vectors, and relative face centroids—directly into the GNN's message-passing operations. Cell-centroid graph construction and associated physical features
Figure 4: (a) CFD mesh with an airfoil body surrounded by different sizes of cells. (b) Illustration of cell characteristics, namely cell centroids, xi and xj, face centroid, cf,ij, face area normal vector, Sf,ij, and cell volumes, Vi and Vj.
  • Residual Training: Instead of asking the AI to predict the entire complex flow field from scratch, they use a "residual" approach. The model is given a low-resolution, "cheap" simulation as a starting point and is trained only to predict the difference (the residual) between that and the high-resolution truth. This allows the network to focus its learning capacity on the most difficult, high-gradient areas like boundary layers.

Datasets

The methods were evaluated on two primary benchmarks:

  • 2DSHAPES: A collection of 2,000 random shapes generated by Bézier curves, used for steady-state laminar flow.
  • AirfRANS: A high-fidelity dataset of 1,000 airfoil shapes with Reynolds-averaged Navier-Stokes (RANS) solutions.
  • Coarse-AirfRANS: The authors created a new, low-resolution version of the AirfRANS dataset (with ~20x fewer nodes) specifically to test their residual training scheme.

Key Insights and Ideas

  • Geometry is a First-Class Citizen: By providing nodes with a global perspective (DID), the network doesn't have to "discover" the airfoil's shape through layers of communication. It knows where it is relative to the object from the start, significantly easing the learning task.
  • Physics-Aware Architectures: Moving to cell-centroid graphs isn't just a formatting change; it allows the GNN to mathematically mimic the Finite Volume Method used in industry-standard solvers like OpenFOAM.
  • Subtracting the "Easy" Parts: Residual training is powerful because low-resolution simulations are often "mostly right" in large, simple areas of the flow. By subtracting this baseline, the AI can dedicate its neurons to solving the complex physics near surfaces and in wakes.

Key Results

The results across five different state-of-the-art GNN architectures (including MeshGraphNet and Graph U-Net) were consistently positive:

  • Massive Error Reduction: The combination of SV, DID, and FVF reduced predictive errors by as much as 41% compared to baseline models.
  • Improved Boundary Layers: Qualitative analysis showed that the new features allow models to capture velocity profiles near airfoil surfaces much more accurately than standard GNNs.
  • Efficiency: The computational cost of calculating these new features is minimal (often just milliseconds), making them a "free lunch" for improving model accuracy.

Limitations and Future Work

  • Computational Bottlenecks: The current implementation of DID calculates angular segments consecutively. The authors note that parallelizing this calculation would be necessary for scaling to very large meshes.
  • Dimensionality: The study focused on 2D simulations. While the principles of FVF and global geometry should translate to 3D, the complexity of 3D meshes and DID calculations remains a challenge for future research.
  • Unsteady Flows: The work primarily addresses steady-state simulations. Extending these features to time-dependent, unsteady flows is a promising next step.

Summary updated

BibTeX
@inproceedings{jessica2024finite,
  author = {Loh Sher En Jessica and Naheed Anjum Arafat and Wei Xian Lim and Wai Lee Chan and Adams Wai Kin Kong},
  title = {{Finite Volume Features, Global Geometry Representations, and Residual Training for Deep Learning-based CFD Simulation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=WzD4a5ufN8},
}
Figure