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

Add safety checks in AirfoilInfo for ill-defined airfoils #2456

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

bjonkman
Copy link
Contributor

@bjonkman bjonkman commented Oct 9, 2024

Feature or improvement description
When calculating UA parameters, we need to check that there are sufficient points to compute the least-squares solution.

This can be a problem when the airfoil doesn't have enough points between -20 and 20 degrees angle of attack and/or when the shape of the polar is somewhat unusual. This fix should get around the issues we have been seeing in some unusual airfoils, but a more robust fix will come later.

Related issue, if one exists
#2447

Impacted areas of the software
AeroDyn: AirfoilInfo and UnsteadyAero

Additional supporting information

Test results, if applicable
This does not appear to change results in the current regression tests. I don't think the UA parameters that failed in debug mode were used in the simulations (based on the UA models that are used).

When calculating UA parameters, we need to check that there are sufficient points to compute the least-squares solution.
@deslaughter
Copy link
Contributor

@bjonkman Thanks for getting this put together!

@deslaughter deslaughter merged commit 8a25ee4 into OpenFAST:dev Oct 9, 2024
21 checks passed
@bjonkman bjonkman deleted the b/AFI_UA_params branch October 9, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CalculateUACoeffs fails when iLow2 == iHigh2
3 participants