Skip to content

Document AD outputs #1020

Merged
andrew-platt merged 31 commits intoOpenFAST:devfrom
bjonkman:b/AD_outputs
Mar 1, 2022
Merged

Document AD outputs #1020
andrew-platt merged 31 commits intoOpenFAST:devfrom
bjonkman:b/AD_outputs

Conversation

@bjonkman
Copy link
Contributor

@bjonkman bjonkman commented Mar 1, 2022

Feature or improvement description
Previously, AeroDyn had some undocumented outputs: B{1:4}Aero{F|M}{x|y|z} , B{1:4}AeroPwr, B{1:3}Aero{F|M}{x|y|z}g, RtAero{F|M}{x|y|z}g. This pull request adds those outputs to the OutListParameters.xlsx file and updates the Matlab-generated parameters in AeroDyn_IO.f90.

In addition, there are some minor changes to comments and example input files in the documentation.

Impacted areas of the software
AD, documentation

Test results, if applicable
This should not change any test results.

- remove unused variables
- convert `print*` to `CALL WrScr()`
- remove AA version number
- efficiency updates for powers of numbers: when exponent is an integer, don't make it a real number (e.g., use `x**2` instead of `x**2.`
- removed version numbers from example input files
- fixed some typos in TwrShadow and TwrPotent comments
- fixed outdated AD example files in AA documentation
This is to attempt to debug an intermittent problem with gfortran and the ProcessComFile function and related routines
Passing this as an array has led to some issues with some gnu compilers in the past: `BL_files(:) = AFI(:)%bl_file`. I've updated the code to pass AFI instead of BL_files as subroutine arguments.
- use parameter `X_BLMethod_Tables` instead of `2` where appropriate
- change `call check` to `call check()` for clarity
When the string is empty, we add "\lib" to the path instead of ".\lib", which then causes the scripts to fail to find the library files.
fixed some comments, removed unused variables
FVW doesn't need all of the calculations from that subroutine
Trying not to repeat so many of the same calculations in different subroutines
hub_theta_x_root for FAST.Farm and BPitch outputs are set as in other projection method; note that this projection method isn't actually used in production mode anyway.
@andrew-platt
Copy link
Collaborator

I'm going to double check the failing AD15 driver cases to make sure we don't have an issue with the channel name changes. If we do, it should be a minor update to those r-test cases.

@bjonkman
Copy link
Contributor Author

bjonkman commented Mar 1, 2022

I think the problem is that intermittent issue (likely some memory issue related to the AD input file reading), since some of those files do pass on my fork: https://github.com/bjonkman/openfast/actions/runs/1918669057; also the gfortran11 debug test does pass here, too.

@andrew-platt
Copy link
Collaborator

Good to know. I was hoping it was our friendly intermittent failures and not an output channel name change.

Copy link
Collaborator

@andrew-platt andrew-platt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for putting this together!

The test case that is failing are the AD driver cases that occasionally fails -- it passed in Bonnie's branch so it is not due to output channel renaming.

@andrew-platt andrew-platt merged commit 64a25b5 into OpenFAST:dev Mar 1, 2022
@bjonkman bjonkman deleted the b/AD_outputs branch March 2, 2022 16:06
@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.

2 participants

Comments