Repository navigation
feat(propeller): propeller geometry files and NeuralFoil airfoil polars - #28
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The blade-element model can now run on real propeller geometry with airfoil polars computed by NeuralFoil.
read_uiuc_geometryreads blade geometry (r/R, c/R, β).read_uiuc_performancereads static and forward-flight measurements into aTablePropeller.read_apc_geometryreads APC*-PERF.PE0files.AirfoilPolar.from_neuralfoil: the airfoil is a NACA 4/5-digit string, a.datfile or coordinates.BlendedPolarmixes two polars.apc_airfoil_polars()gives E63, APC12 (NACA 4412) and CLARK-Y.n_critis 7.setuav-neuralfoil(NumPy-only fork of NeuralFoil, MIT).solve_stationsandBladeElementPropelleraccept polar sections as well asBladeSection. The QPROP path is unchanged.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)
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 passedmkdocs build --strictPYTHONPATH=. python validation/apc_uiuc.py && PYTHONPATH=. python validation/report.py🤖 Generated with Claude Code