AD: merge more of TwrInfl
and TwrInflArray
routines
#1042
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature or improvement description
This PR merges more parts of the
TwrInfl
andTwrInflArray
, which are basically two copies of the tower influence calculations, one for the BEMT module and the other for FVW.This merge introduces a few changes to how the code checks that the tower influence should be applied:
Note: this PR also fixes an issue where there were some uninitialized variables in the FVW tower influence calculations if the tower clearance was > 20 TowerDiam or < 0.01 TowerDiam.
Impacted areas of the software
AeroDyn (AD15)
Test results, if applicable
Tests with any of the properties listed above may be affected. In general, we wouldn't expect those conditions to apply for normal BEMT simulations. However, the OpenFAST reg-test does have AOC models with tower-diameters of 0.06 m, so the new checks effectively turn off all tower influence calculations in those cases.