Skip to content

Conversation

@bjonkman
Copy link
Contributor

Feature or improvement description
This pull request cleans up some of the AeroAcoustics code. It also includes

  • a fix of how TICalcMeth=2 calculates the TI for the inflow noise calculations,
  • a new check that the BldPrcnt parameter in the input file is entered between 0 and 100%,
  • a fix in case there are fewer than 2 blade nodes (would have caused a segmentation fault otherwise).

These updates should make the code run a bit faster, though I haven't profiled it to check.

I have also included source code for a new AeroAcoustics driver, but I've not added it to any build scripts.

Related issue, if one exists
This includes the element-size fix at the tip node that is introduced in #3133. So, that should be merged first (and if not, we should add a division-by-two to this code).

Impacted areas of the software
AeroAcoustics module of AeroDyn

Test results, if applicable
This should give the same results as #3133 for the aeroacoustics regression test here.

When TICalcMeth=2 and TIMod /= 0, this code will give different results because the calculated value of TI will be different in the InflowNoise routine.

- make arrays allocated to size 2  be fixed-size arrays instead of allocatable
- fix comments
- cleanup multiple IF statements that could be a single IF/ELSEIF/ELSE statement
- removed a few unused parameters and states
- AFInfo parameters now passed separately in Init routine and not used afterwards
- removed continuous and constraint states to match call to AA_UpdateStates, which had already removed those variables
- added check that AD_Bl_Prctge is between 0-100%
- allow `startnode` to be 1 if there aren't 2 blade nodes (required some changes in calculating `elementspan` for first node
- pre-calculate element span (stored as a parameter instead of calculated inside DO loop each step
- pre-calculate indices for TICalcMethod = 2 discrete state filter
- fix bug in TICalcMethod state initialization (AllRegCounter)
- fix bug in TICalcMethod TIVx calculation (was computing standard deviation instead of turbulence intensity)
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.

2 participants