Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secant #65

Merged
merged 4 commits into from May 23, 2019
Merged

Secant #65

merged 4 commits into from May 23, 2019

Conversation

dkavolis
Copy link
Owner

Use the secant method to find a stable angle of attack for stability derivative calculation:

  • More robust than Brent's method since it does not depend on brackets having different signs
  • Generally faster to converge, usually takes ~5-6 function calls
  • Only fails very near the edge of the stable flight envelope

In addition, fix stability labels crashing GUI if any of the values are NaN and show NaN angle of attack if the solver did not converge

* keep track of number of function calls in root solvers
* return OptimizationResult struct instead of double
* use Secant to find stable AoA
* use NaN values if failed to converge
@dkavolis dkavolis merged commit 3cb4f9d into master May 23, 2019
@dkavolis dkavolis deleted the secant branch May 23, 2019 22:02
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.

None yet

1 participant