Repository navigation
perf(solver)!: keep negative thrust in the RPM search - #26
Merged
Merged
Conversation
The solver treated negative thrust or non-positive torque as "no data" and spent most of a forward-flight solve narrowing the lower RPM bound. Models now return NaN where they have no result; the solver rejects only non-finite values, and a root with negative thrust is still marked invalid_coefficients. Blade-element forward flight drops from about 56 to 13 propeller calls (112 ms to 27 ms) with the same solved RPM. BREAKING CHANGE: TablePropeller.thrust_torque returns (nan, nan) instead of (0, 0) outside its data (Cp <= 0 or Ct < 0). BladeElementPropeller returns (nan, nan) where a station does not converge. 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
invalid_coefficients.TablePropeller.thrust_torquereturns NaN exactly where the solver used to reject a table point (Cp ≤ 0 or Ct < 0), so tabulated results are unchanged.BladeElementPropellerreturns NaN for an unconverged station instead of zero.AGENTS.mdpoints docs updates todocs/reference/.Blade-element model, 10x5 test case:
Solved RPMs are unchanged.
Breaking change
TablePropeller.thrust_torquereturns(nan, nan)instead of(0, 0)outside its data.Test plan
pytest: 230 passed, golden and QPROP tests unchangedmkdocs build --strict🤖 Generated with Claude Code