Skip to content

feat(propeller): propeller geometry files and NeuralFoil airfoil polars - #28

Merged
karakayahuseyin merged 6 commits into
mainfrom
feat/propeller-geometry
Nov 19, 2026
Merged

karakayahuseyin merged 6 commits into
mainfrom
feat/propeller-geometry

Conversation

@karakayahuseyin

Copy link
Copy Markdown
Contributor

Summary

The blade-element model can now run on real propeller geometry with airfoil polars computed by NeuralFoil.

  • UIUC files:
    • read_uiuc_geometry reads blade geometry (r/R, c/R, β).
    • read_uiuc_performance reads static and forward-flight measurements into a TablePropeller.
  • APC geometry: read_apc_geometry reads APC *-PERF.PE0 files.
    • Stations inside the hub are skipped.
    • Sections blend across the AIRFOIL1 → AIRFOIL2 transition.
    • TWIST is taken as the leading-edge-to-trailing-edge angle.
    • The tip radius tolerates APC's rounded RADIUS.
  • Airfoil polars:
    • AirfoilPolar.from_neuralfoil: the airfoil is a NACA 4/5-digit string, a .dat file or coordinates.
    • BlendedPolar mixes two polars.
    • apc_airfoil_polars() gives E63, APC12 (NACA 4412) and CLARK-Y.
    • The default n_crit is 7.
    • New required dependency: setuav-neuralfoil (NumPy-only fork of NeuralFoil, MIT).
  • Solver: solve_stations and BladeElementPropeller accept polar sections as well as BladeSection. The QPROP path is unchanged.
  • Validation: validation/ compares the models with UIUC measurements of 75 APC propellers. Results are on the new docs page Reference → Validation.

Results (49 test propellers, mean absolute error per propeller)

Model Static C_T Static C_P Forward C_T Forward C_P
Blade element + NeuralFoil (n_crit 7) 9.2% 13.5% 12.3% 11.5%
APC's own tables 14.5% 12.5% 16.0% 11.3%
Blade element + generic section 9.6% 14.3% 20.0% 16.7%

The polar path reproduces QPROP 1.22 when it is given QPROP's own section data (within 1%). Station count and table resolution change results by less than 1% on average.

Test plan

  • pytest: 276 passed
  • mkdocs build --strict
  • PYTHONPATH=. python validation/apc_uiuc.py && PYTHONPATH=. python validation/report.py

🤖 Generated with Claude Code

karakayahuseyin and others added 6 commits November 19, 2026 11:25
read_uiuc_geometry builds a BladeGeometry from a UIUC Propeller Database
geometry file (r/R, c/R, beta). The file gives no diameter, blade count or
airfoil, so they are arguments. With the QPROP guide's example section the
APC 10x5 static CT is 7-15% above the UIUC measurement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
read_apc_geometry builds a BladeGeometry from an APC PE0 file: chord and
blade angle from the hub transition outward, tip radius and blade count.
Sections come as one BladeSection or a mapping from the file's two airfoil
names, blended linearly across the transition. With the QPROP guide's
example section, the APC 10x5E geometry matches the UIUC forward-flight
measurement to about 5% in CT and CP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… model

AirfoilPolar tabulates an airfoil's lift and drag with NeuralFoil
(setuav-neuralfoil, now a dependency) from -20 to 25 degrees and Reynolds
numbers 1e4 to 1e6, with a flat plate beyond, from a NACA designation, a
.dat file or coordinates. A blade's stations use QPROP BladeSection
parameters or polars; BlendedPolar mixes two airfoils, and the analysis
stations mix the polars of the nearest geometry stations. The QPROP path is
unchanged. apc_airfoil_polars() gives E63, APC12 (NACA 4412) and CLARK-Y.

APC's TWIST is the chord-line angle (it matches the LE-TE pitch), not the
flat-bottom one; read_apc_geometry's docs said otherwise and are fixed.

APC 10x5E against UIUC data with n_crit 5: static CT 4.0% and CP 3.0% mean
error (19% for CP with the generic section), forward CT 4.0%, CP 9.2%.
A solved operating point takes about 60 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…propellers

read_uiuc_performance builds a TablePropeller from UIUC static and
forward-flight files, one RPM band per forward file starting at the static
point.

validation/apc_uiuc.py downloads UIUC measurements and APC geometry and
performance files into a local cache, compares the blade-element model
(NeuralFoil polars at n_crit 3-9, and the generic QPROP section) and APC's
table with the measurements, chooses n_crit on a third of the propellers and
tests on the rest, and solves operating points against the measured table.
validation/report.py prints tables and draws the figures.

read_apc_geometry takes the last station as the tip radius where RADIUS,
rounded to two decimals, is smaller (13x8E: 6.47 in against 6.475 in).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Validation page reports the blade-element model with NeuralFoil polars,
the generic QPROP section and APC's tables against UIUC's measurements: on
the 49 propellers not used to choose n_crit, the model's mean error per
propeller is 9% in static and 12% in forward thrust, 12 to 14% in power,
about as good as APC's tables and better in thrust. Sport propellers get
15-20% too little power and Slow Flyers 17% too little forward thrust.
Scaling the airfoils to APC's station thickness made the fit worse and
UIUC's measured geometry did not help; both are reported.

n_crit 7 and 5 fit best (9 loses too much lift at low Reynolds numbers), so
AirfoilPolar.from_neuralfoil and apc_airfoil_polars default to 7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@karakayahuseyin
karakayahuseyin merged commit bc1d04a into main Nov 19, 2026
4 checks passed
@karakayahuseyin
karakayahuseyin deleted the feat/propeller-geometry branch November 19, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant