We introduce a dataset of approximately 10,000 Reynolds-Averaged Navier-Stokes (RANS) simulations of steady, incompressible, two-dimensional subsonic flow around downforce-generating NACA 4-digit airfoils, targeting aerodynamic regimes relevant to automotive and motorsport applications (openly available on https://huggingface.co/datasets/ratiolabs/downforce-airfoils). Using this resource, we study geometry-conditioned neural surrogates for fast flow prediction, comparing neural fields with neural ODEs, MLPs with graph-based models, and several spectral geometry-conditioning methods. We further propose Airfoil2Vec, an airfoil-specific spectral geometry encoder that combines the joint contour spectrum with separate spectral representations of camber and thickness, for predicting continuous pressure and velocity fields. We evaluate generalization through angle-of-attack interpolation, interpolation and extrapolation to unseen NACA 4-digit geometries, and generalization to unseen non-NACA airfoils. The resulting surrogate accurately captures aerodynamic quantities and qualitative flow features while providing orders-of-magnitude speedups over conventional computational fluid dynamics.
Figures & tables
Figure 1: Example of a few inverted (negative camber) NACA 4-digit airfoils parameterized by camber m , position of maximum camber p , and thickness t .
Figure 2: Complementary spectral views used by Airfoil2Vec for representative airfoils.
Figure 3: Controlled camber and thickness variations across the Airfoil2Vec spectral views. In the camber sweep, variations in the airfoil predominantly modify CA while the thickness representation remains comparatively stable; in the thickness sweep, the converse behavior is observed for HA . The joint ZA responds to both types of variation, motivating the additional separated Airfoil2Vec views.
Encoding
Val. MSE
MAE p
MAE vx
MAE vy
No Fourier
1.08×10−3±3.92×10−4
0.0222 ± 0.0049
0.0221 ± 0.0034
0.0147 ± 0.0017
Fourier ( σ=45,l=256 )
1.77×10−4±1.29×10−5
0.0138 ± 0.0008
0.0119 ± 0.0005
0.0106 ± 0.0010
Table 1: Validation MSE (mean ± std over 3 seeds) for baseline vs. Fourier encoding.
k
2
4
6
8
10
GCN
2.17
2.37
2.59
2.54
2.75
GAT
2.10
2.26
2.41
2.55
2.70
GATv2
2.41
2.63
2.78
2.91
3.08
SGC
2.02
2.18
2.31
2.47
2.71
ChebNet
1.98
2.07
2.16
2.30
2.55
GIN
2.13
2.24
2.38
2.56
2.82
Table 2: Validation MSE for different graph neighbourhood sizes k at σ=45 ( ×10−4 ).
Model
Val. MSE ( ×10−4 )
MAE p ( ×10−2 )
MAE vx ( ×10−2 )
MAE vy ( ×10−2 )
GCN (No Fourier)
8.17±0.31
1.57±0.16
2.33±0.34
1.48±0.23
GCN (Fourier)
2.16±0.06
1.39±0.04
1.24±0.12
1.35±0.12
GAT (No Fourier)
7.99±0.28
1.78±0.12
2.01±0.21
1.55±0.18
GAT (Fourier)
2.10±0.07
1.33±0.05
1.73±0.14
0.90±0.06
GATv2 (No Fourier)
8.87±0.55
1.82±0.50
2.12±0.66
1.69±0.64
GATv2 (Fourier)
2.46±0.21
1.56±0.18
1.55±0.26
1.00±0.15
Table 3: Val loss (mean ± std over 3 seeds) for GNN architectures ( k=2 ) with and without Fourier encoding.
# Integration Steps
Validation MSE ×10−4
2
1.74±0.24
4
1.53±0.09
8
1.52±0.22
16
1.80±0.59
32
1.84±0.41
Table 4: MLP-NODE val MSE for different numbers of integration steps (mean ± std over 3 seeds).
Connectivity sweep ( s=4 fixed)
Integration-step sweep ( k=k⋆ fixed)
Model
k=1
k=2
k=4
k=8
k⋆
s=1
s=2
s=4
s=6
GCN
1.60
1.58
1.51
1.26
8
1.35
1.44
1.23
1.21
GAT
1.09
1.17
1.23
1.34
1
1.05
1.34
1.16
1.45
GATv2
1.20
1.28
1.30
1.58
1
1.25
1.26
1.28
1.32
SGC
1.25
1.37
1.28
1.34
1
1.22
1.49
1.41
1.52
ChebNet
1.30
1.25
1.45
1.47
2
1.29
1.42
1.49
1.55
Table 5: GNN-NODE hyperparameter ablation. For the graph-connectivity sweep (left), the number of integration steps is fixed at s=4 . For the integration-step sweep (right), graph connectivity is fixed to the best value k⋆ found for each model in the connectivity sweep. Validation MSE is reported in units of ×10−4 .
GNN
GAT
GATv2
GCN
GIN
SGC
ChebNet
(k=1,s=1)
(k=1,s=1)
(k=8,s=6)
(k=4,s=2)
(k=1,s=1)
(k=2,s=1)
Validation MSE
1.19±0.19
1.19±0.26
1.35±0.06
1.09±0.26
1.42±0.18
1.07±0.11
Table 6: Final validation MSE for the selected GNN-NODE configuration of each GNN operator. Each column reports the selected graph connectivity k and number of integration steps in parentheses. Results are mean ± standard deviation over 3 seeds ( ×10−4 ).
Table 8: L2 -norm based error (%) of vx/U∞ , vy/U∞ , p/p∞ states over the full computational domain for models MLP-NF, MLP-NODE, GNN-NODE. Three tests are performed, one per subset of the validation set: AoA interpolation, geometry interpolation and geometry extrapolation. For each test and state variable, the lowest error across the three models is colored in green.
Figure 4: Comparison of (first row) vx/U∞ and (second row) vy/U∞ between OpenFOAM and the MLP-NODE prediction. This case illustrates the model’s ability to extrapolate airfoil geometry, as the NACA8604 was not included in the training set at any AoA. Overall L2 -norm based error [L2,vx,L2,vy,L2,p]=[0.91,5.36,0.03]% .
Figure 5: Pressure coefficient at α=−5∘ for a few airfoil geometries demonstrating AoA interpolation capability of the models. The models were trained on each of these geometries at every AoA except the one shown, which belongs to the AoA interpolation subset of the validation set.
Figure 6: vx/U∞ profiles at 5 streamwise stations in the α=−10∘ wake of NACA airfoils with 8% camber and 4%-18% thickness representative of thin and thick cambered airfoils. Truth: solid colored lines. MLP-NODE prediction: solid black lines.
Figure 7: Spectral noise analysis of vy/U∞ for NACA8604 at α=−5∘ (Appendix G ): prediction-to-truth energy ratio Ep/Et , spectral coherence γ2(κ) and cumulative tail RMS σκ versus wavenumber κ (cycles/ c ) in the (top) farfield patch and (bottom) near-wake patch. The gray band marks κ<κc , excluded from the high-frequency residual σhf .
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 8: Grid-independence study and selected mesh for the NACA6412 airfoil at M∞=0.2 and Re=4.66×106 .
Ratio of specific heats, γ
1.4
Specific gas constant, R ( Jkg−1K−1 )
287.1
Free-stream velocity magnitude, U∞ ( ms−1 )
68.06
Free-stream density, ρ∞ ( kgm−3 )
1.225
Free-stream temperature, T∞ ( K )
288.15
Free-stream pressure, p∞ ( Pa )
101341.63
Free-stream dynamic viscosity, μ∞ ( kgm−1s−1 )
1.789×10−5
Appendix
Table 9: Flow conditions.
Figure 9: Performance of simpleFoam on the 276,000 cells mesh. (Left) Clock time per job in seconds vs. number of CPUs for parallel execution. (Right) Completed jobs per hour on a 128 CPU machine. The optimal set-up to complete the largest number of experiments in one hour is highlighted with the boxes.
σ sweep w/ l=256
l sweep w/ σ=45
5
15
30
45
60
75
64
128
256
512
(×10−4)
2.16
2.00
2.16
1.77
2.08
2.08
1.96
1.89
1.77
2.31
± 0.21
± 0.06
± 1.08
± 0.13
± 0.43
± 0.31
± 0.27
± 0.30
± 0.13
± 0.60
Appendix
Table 10: Fourier ablation validation MSE (mean ± std) vs. σ and encoding dimension.
Table 11: Composition of the training and validation sets. Every geometry is simulated at 11 AoAs, α∈{0∘,−1∘,…,−10∘} . In the geometry extrapolation subset, MP17 and MP18 denote NACA MP17 and NACA MP18 for M∈{7,8} and P∈{1,…,8} .
Figure 10: Comparison of (first column) vx/U∞ , (second column) vy/U∞ and (third column) p/p∞ between OpenFOAM and the MLP-NODE prediction. Streamlines are superimposed. This case is representative of the capability of the model to interpolate AoA since the model was trained on the NACA4207 using all but α=−5∘ . Overall L2 -norm based error [L2,vx,L2,vy,L2,p]=[0.54,3.44,0.02]% .
Figure 11: Comparison of (first column) vx/U∞ , (second column) vy/U∞ and (third column) p/p∞ between OpenFOAM and the MLP-NODE prediction. This case is representative of the model’s ability to interpolate airfoil geometry, since the model was trained on geometries similar to the NACA4412 at α=0∘ , as shown. Overall L2 -norm based error [L2,vx,L2,vy,L2,p]=[0.53,8.34,0.01]% .
Figure 12: Pressure coefficient at several α for two airfoil geometries featuring medium values of camber and thickness. This demonstrates geometry interpolation capability of the models: both airfoils belong to the geometry interpolation subset of the validation set and were not seen during training at any AoA.
Figure 13: Pressure coefficient at several α for a few airfoils with high camber (8%), variable position of maximum camber and very thin (4%) and thick (18%) geometric features. This demonstrates geometry extrapolation capability of the models: all airfoils shown belong to the geometry extrapolation subset of the validation set and were not seen during training at any AoA.
NACA8404
NACA8504
NACA8604
NACA8704
NACA8804
α[∘]
NF
MLP
GNN
NF
MLP
GNN
NF
MLP
GNN
NF
MLP
GNN
NF
MLP
GNN
0
1.53
1.24
1.35
1.60
1.16
1.13
1.82
1.42
1.43
2.23
1.84
2.14
2.77
2.65
2.31
-1
1.38
1.00
1.00
1.50
1.10
1.04
1.73
1.40
1.40
2.14
1.71
1.94
2.58
2.71
2.44
-2
1.32
1.00
1.02
1.39
1.11
1.05
1.59
1.39
1.34
2.06
1.67
1.83
2.60
2.97
2.90
-3
1.24
1.01
1.03
1.30
1.33
1.20
1.49
1.56
1.50
2.25
2.12
2.34
3.10
3.63
3.79
-4
1.22
1.20
1.18
1.31
1.67
1.53
1.66
2.01
2.01
2.80
2.68
3.03
3.60
3.95
4.26
Appendix
Table 12: Wake vx/U∞L2 -norm error (%) in the field of view x/c∈[1,2] , y/c∈[−0.2,0.2] for models MLP-NF, MLP-NODE, GNN-NODE on NACA airfoils with 8% camber and 4% thickness, representative of thin cambered airfoils.
NACA8418
NACA8518
NACA8618
NACA8718
NACA8818
α[∘]
NF
MLP
GNN
NF
MLP
GNN
NF
MLP
GNN
NF
MLP
GNN
NF
MLP
GNN
0
1.69
0.88
1.68
1.63
0.93
1.62
1.81
1.32
1.87
3.01
2.41
2.30
3.71
3.25
3.39
-1
1.77
1.03
1.46
1.71
1.11
1.38
1.96
1.56
1.80
3.17
2.68
2.52
3.68
3.27
3.24
-2
1.87
1.22
1.38
1.82
1.32
1.34
2.20
1.88
2.00
3.43
3.01
2.91
3.87
3.59
3.64
-3
1.98
1.39
1.45
1.97
1.53
1.48
2.50
2.22
2.37
3.64
3.27
3.28
4.02
3.79
3.99
-4
2.12
1.54
1.59
2.15
1.74
1.71
2.72
2.41
2.67
3.75
3.41
3.50
4.16
4.01
4.18
Appendix
Table 13: Wake vx/U∞L2 -norm error (%) in the field of view x/c∈[1,2] , y/c∈[−0.2,0.2] for models MLP-NF, MLP-NODE, GNN-NODE on NACA airfoils with 8% camber and 18% thickness, representative of thick cambered airfoils.
Case
Prediction above κc
Ep/Et
γ2
σhf
σinc
Exact
Fp=Ft
1
1
0
0
Attenuation / omission
Fp=aFt , 0≤a≤1
a2≤1
1
(1−a)T≤B
0
Coherent amplification
Fp=aFt , a>1
a2>1
1
(a−1)T , >B if a>1+B/T
0
Spatial displacement
Fp=Fte−2πik⋅s/L
1
≤1
≤2T
≤T
Additive noise
Fp=Ft+Fn
1+En/Et
≈Et/(Et+En)
≈(∑En)1/2
≈σhf
Appendix
Table 14: Response of the spectral diagnostics above κc to controlled departures of the prediction from the truth, derived from their definitions. T=∑κ≥κcEt≤B2 is the truth-tail energy and En the energy of additive noise uncorrelated with the truth (expected values). For omission ( a=0 ), Ep=0 and γ2 is undefined.
Farfield
Near-wake
Settings
Patch center (xc,yc)
(0.50,2.00)
(1.55,0.00)
Patch extent
x∈[0,1] , y∈[1.5,2.5]
x∈[1.05,2.05] , y∈[−0.5,0.5]
Side L
1
1
Grid ng×ng
512×512
512×512
Grid spacing Δ=L/(ng−1)
1.96×10−3
1.96×10−3
Appendix
Table 15: Probe-patch settings and derived scales of the spectral noise analysis for NACA8604 at α=−5∘ , state vy/U∞ (lengths in chords c , wavenumbers in cycles/ c ). Cell sizes h are Delaunay edge lengths of the cell centers inside the patch (minimum / median / 95th percentile).
σhf
σinc
Patch
Model
vx
vy
p
vx
vy
p
Farfield
MLP-NF
3.5×10−3
4.7×10−3
2.4×10−4
3.5×10−3
4.7×10−3
2.3×10−4
MLP-NODE
2.0×10−3
1.8×10−3
1.6×10−4
1.9×10−3
1.7×10−3
1.5×10−4
GNN-NODE
1.7×10−3
2.5×10−3
1.3×10−4
1.6×10−3
2.4×10−3
1.3×10−4
omission bound B
1.1×10−4
1.0×10−4
5.6×10−6
–
–
–
Near-wake
MLP-NF
4.0×10−3
3.9×10−3
5.6×10−4
2.9×10−3
3.9×10−3
5.5×10−4
Appendix
Table 16: High-frequency residual σhf and its incoherent part σinc for NACA8604 at α=−5∘ per model, state and patch (velocities in units of U∞ , pressure in units of p∞ ). Cutoffs from the truth-tail criterion: farfield κc=(5,4,4) and near-wake κc=(29,18,5) cycles/ c for (vx,vy,p) . The last row of each block is the omission bound B=(εVarwqt)1/2 , the level reached by a prediction that omits the truth tail (Appendix G ); it is not an upper bound for every noise-free prediction.
Selig S1223
Clark Y
Eppler E423
Wortmann FX 63-137
NASA LS(1)-0413
α[∘]
NF
MLP
GNN
NF
MLP
GNN
NF
MLP
GNN
NF
MLP
GNN
NF
MLP
GNN
0
2.09
1.81
2.08
0.76
0.62
0.69
1.79
1.53
2.00
1.41
1.42
1.67
1.22
1.21
1.27
-1
2.17
1.86
2.11
0.75
0.60
0.65
1.82
1.53
1.99
1.46
1.47
1.72
1.26
1.28
1.32
-2
2.26
1.92
2.16
0.76
0.61
0.65
1.87
1.56
2.00
1.52
1.53
1.78
1.30
1.34
1.37
-3
2.36
2.01
2.23
0.78
0.61
0.67
1.94
1.61
2.04
1.60
1.61
1.84
1.32
1.37
1.39
-4
2.51
2.15
2.37
0.80
0.62
0.69
2.04
1.70
2.11
1.69
1.70
1.93
1.35
1.41
1.41
Appendix
Table 17: L2 -norm based error (%) of vx/U∞ over the full computational domain for models MLP-NF, MLP-NODE, GNN-NODE. Five non-NACA airfoils listed: Selig S1223, Clark Y, Eppler E423, Wortmann FX 63-137 and NASA LS(1)-0413.
Figure 14: Comparison of vx/U∞ at α=−5∘ between OpenFOAM and the MLP-NODE prediction. This case illustrates the model’s ability to extrapolate airfoil geometries beyond NACA 4-digit airfoils using only NACA training data. Five non-NACA airfoils are represented: Eppler E423, Clark Y, Selig S1223, Wortmann FX 63-137 and NASA LS(1)-0413.
Figure 15: Full flow field comparison of (first column) vx/U∞ , (second column) vy/U∞ and (third column) p/p∞ between OpenFOAM and the MLP-NODE prediction for Selig S1223 airfoil at α=−5∘ .