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

Update in Computing Default Unsteady Airfoil Coefficients #920

Merged
merged 6 commits into from
Mar 1, 2022

Conversation

bjonkman
Copy link
Contributor

@bjonkman bjonkman commented Nov 14, 2021

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.

@bjonkman bjonkman changed the title B/ua afi Update in Computing Default Unsteady Airfoil Coefficients Nov 30, 2021
@bjonkman
Copy link
Contributor Author

@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}
Copy link
Contributor

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?

Copy link
Contributor Author

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.
Copy link
Contributor

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.

Copy link
Contributor Author

@bjonkman bjonkman Nov 30, 2021

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.

@ebranlard
Copy link
Contributor

Thanks for implementing this. It looks good to me. I have some small comments on the calculation of the slope.

@andrew-platt andrew-platt merged commit 4f54395 into OpenFAST:dev Mar 1, 2022
@bjonkman bjonkman deleted the b/UA_AFI branch March 1, 2022 20:14
@rafmudaf rafmudaf mentioned this pull request Mar 2, 2022
11 tasks
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.

3 participants