-
Notifications
You must be signed in to change notification settings - Fork 465
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
Update in Computing Default Unsteady Airfoil Coefficients #920
Conversation
Also remove unused comments + fix some of the UA/AFI documentation
@ebranlard, I added some documentation on how the default values are computed, if you want to review that. |
The slope of the :math:`C_n` curve is computed as follows: | ||
|
||
.. math:: | ||
C_{n}^{Slope}\left(\frac{\alpha_{i+1} + \alpha_i}{2}\right) = \frac{C_n(\alpha_{i+1}) - C_n(\alpha_i)}{\alpha_{i+1} - \alpha_i} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this computed for a range of angle of attack and then few indices? How is this range determined? I'm guessing it's +/- 20 deg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The slope is computed for NumAlf-1 points (i.e., between all consecutive AoA specified in the polar). The smoothed values of this curve can have some weird behavior at the ends, but alphaUpper
and alphaLower
are far enough from the ends that it shouldn't matter.
.. math:: | ||
C_{n}^{offset} = \frac{C_n\left(\alpha^{Lower}\right) + C_n\left(\alpha^{Upper}\right)}{2} | ||
|
||
``C_nalpha`` is defined as the maximum slope of the smoothed :math:`C_n` curve, :math:`C_{n,smooth}^{Slope}` between :math:`\pm20` degrees angle of attack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the definition of Cnalpha or Clalpha it seems the local slope is used (between i and i+1). I wonder if it would be better to use the slope between i and i0 where i0 if the index of alpha0. That the definition used in the Riso-R-1354 report equation 16.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could change that. I was trying to make it somewhat consistent with the method for computing C_lalpha
(which UAMod4 says has to be the max slope), but it's used in different UA models, so could certainly be done differently.
Thanks for implementing this. It looks good to me. I have some small comments on the calculation of the slope. |
This pull request is ready to merge.
Feature or improvement description
In addition to some minor code cleanup (comments removed, hard-coded version numbers and dates removed), this pull request fixes some issues with computing the default UA parameters in the airfoil files that can occur with "unusual" polars (particularly those polars that aren't technically linear in the supposed linear region). The documentation of those parameters has also been slightly modified, and a new section on how the default values are calculated was added..
Impacted areas of the software
UA's default airfoil parameters, documentation
Test results, if applicable
This should not change any test results because the default UA-AFI parameters aren't used in any current tests.