Neel Madhav

I tested NeuralFoil against 9,130 real wind-tunnel measurements.

NeuralFoil predicts the lift and drag of a wing in a fraction of a second, so people use it to design drones and small wind turbines. Nobody had checked it against real tunnels at the slow speeds they fly. So I did, and wrote it up as a paper.

44-page paper, public code and data, 47 automated tests.

Live
9,130wind-tunnel measurements
94different wing shapes
2separate wind tunnels
47automated tests

What is it?

Small drones fly slowly, and slow air is hard to predict. A thin bubble of air lifts off the wing and makes most of the drag. To find a good wing shape, you have to try thousands of them.

NeuralFoil makes that fast. It is not a chatbot or a language model. It is a small neural network trained on hundreds of thousands of runs of an older physics solver, XFoil, and it copies XFoil's answers almost instantly.

Its only published wind-tunnel check was at a speed about ten times faster than a drone flies. I checked it where people actually use it.

How I tested it

  1. Collect

    Every published low-speed measurement from two archives: UIUC (55 airfoils) and Princeton (54). Fifteen were tested in both.

  2. Predict

    Run NeuralFoil at the exact speed and angle of each of the 9,130 measurements.

  3. Split the error

    Run XFoil, the solver NeuralFoil copies, at the same 9,130 points. Every miss splits into XFoil's share and the network's.

  4. Check the tunnels

    Compare the two archives, and Princeton's repeat runs, to see how far real experiments disagree.

  5. Honest error bars

    Resample whole airfoils, not single points, then fit a model that predicts the error of any new answer.

9,130 measurements.

Every dot is one real reading from a wind tunnel: one wing, at one speed, at one angle.

  1. 9,130 measurements.. Every dot is one real reading from a wind tunnel: one wing, at one speed, at one angle.
  2. From two separate tunnels.. Blue dots come from UIUC, orange from Princeton. Together they trace how much lift each wing makes for the drag it pays.
  3. Then I asked NeuralFoil.. Each dot slides to where NeuralFoil predicted it. If it were perfect, nothing would move.
  4. And measured the gap.. Green is within 10 percent, yellow within 25, red further off. Drag comes out 11 to 12 percent off, and the network itself adds only 2.8 percent of that.

What I found

  1. 11.7%

    average drag error

    Across all 9,130 points, and 8 percent in a typical case. At the slowest speed, Reynolds number 60,000, it grows to 17 to 22 percent.

  2. 2.8%

    comes from the network itself

    XFoil misses the same points by 12 percent. NeuralFoil inherits almost all of it (r = 0.95), so more XFoil training data will not fix this. Better physics would.

  3. 55%

    of points, it beats XFoil

    The copy lands closer to the tunnel than the original. Training on hundreds of thousands of XFoil runs smooths away some of XFoil's own scatter.

  4. 9% vs 32%

    what the confidence score means

    When NeuralFoil is confident, its drag is about 9 percent off. When it is not, about 32. The score warns about drag and says nothing about lift.

  5. 1 in 6

    of the error is the build

    Princeton measured its wings after building them. Running NeuralFoil on the real shapes instead of the drawings removes about a sixth of the drag error.

  6. 14%

    better than a flat guess

    My error model reads confidence, speed, angle and camber and predicts the drag error to expect. Trained on one tunnel, tested on the other, on wings it never saw.

Is 11.7 percent a lot?

Compare it with how much real experiments disagree with each other.

NeuralFoil misses by three times what a repeated experiment does, so its error is real, not noise. The gap between the archives also includes how each wing was built and measured.

Then I followed the error into a real aircraft.

A benchmark number means little until you see what it does to a design. I checked a rotor solver against 14 measured propellers, then carried the error through a rotor and a whole aircraft.

  1. In hover

    Two thirds of hover power goes into pushing air down, and drag error cannot touch that part. A 7 percent drag error arrives as 3 percent of power.

  2. Round the design loop

    More power needs a bigger battery, which makes the aircraft heavier, which needs more power. Closing that loop roughly doubles the power error.

  3. In forward flight

    At 14 metres per second, close to the speed this aircraft would cruise at, the same drag error costs 1.7 times as much as in hover.

On a 15.7 kg aircraft, the measured error is worth about 3.5 kg: the difference between a drone that flies and one that does not.

From the paper

Three charts of drag error by Reynolds number and by confidence, for XFoil, NeuralFoil and the network alone, in both tunnels
Where the error comes from. Green is XFoil against the tunnel, blue is NeuralFoil, grey is the network on its own.
Two scatter plots of NeuralFoil's lift and drag against the tunnel's, with the points close to the diagonal line
NeuralFoil against the UIUC tunnel: 4,428 points on 55 airfoils. A perfect model would put every dot on the dashed line.
Charts of how the drag error changes the take-off mass that closes, and where the error grows and shrinks
What the drag error does to take-off weight once the battery loop closes.
PDF

Read the paper.

How far can you trust NeuralFoil below Re = 500,000? A two-tunnel test on 94 airfoils, with XFoil run at every point

Neel Madhav, 2026. 44 pages, 22 figures, PDF (5.5 MB).

It tests NeuralFoil against every published low-speed measurement in two wind tunnels, splits the error between XFoil and the network, and carries it all the way to an aircraft's take-off weight. Every number has an error bar, and 47 tests recheck every claim on each change.

What is new

  • A benchmark in two separate wind tunnels.
  • Splitting the error into XFoil's share and the network's.
  • The noise floor of the experiments themselves.
  • Pulling build error out of model error.
  • Honest error bars, and a model that predicts the error.
  • Carrying the error all the way to take-off weight.

What is not

NeuralFoil, XFoil, the maths for wing shapes and the optimization methods are other people's work. Standard tools, used carefully. All the wind-tunnel data is public and cited in the paper.

How it's built

  1. NeuralFoil

    The network being tested. It predicts a wing's lift and drag in a fraction of a second.

  2. XFoil

    The physics solver NeuralFoil copies. I ran it at all 9,130 points to split the error.

  3. AeroSandbox

    Runs NeuralFoil inside the wing-shape optimizer, for designs that hold up when conditions change.

  4. Python, pandas, NumPy, SciPy

    Read the two tunnel archives, match every point, and do the statistics.

  5. Blade-element rotor model

    Carries the drag error into a spinning rotor, then into a whole aircraft.

  6. pytest and GitHub Actions

    47 tests work every number in the paper out again, on every change.

Next: print the wings and test them.

I have designed 3D-printed test rotors and predicted what the test stand will read before printing them. After that: a third wind tunnel, and a model trained on better data than XFoil at slow speeds.

Shaped by feedback from aerospace faculty at IIT Madras and the University of Maryland.