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

InflowWind Updates #578

Merged
merged 21 commits into from
Dec 9, 2020
Merged

InflowWind Updates #578

merged 21 commits into from
Dec 9, 2020

Conversation

bjonkman
Copy link
Contributor

@bjonkman bjonkman commented Oct 26, 2020

This pull request IS ready to merge.

Before merging,

  • check that new InflowWind features that NREL added have not been overwritten
  • update r-test input files and results

Feature or improvement description

InflowWind driver:

  • functionality:
    • added option to convert wind files to different file formats
    • files listed in the driver input file will be relative to the file they are specified in
  • input file changes:
    • added section for file conversion options
    • moved dt after timeStart (before summary stuff)
    • removed inflowWind setup section header

InflowWind:

  • functionality:
    • added base FF wind module so TurbSim, Bladed, and HAWC2 formats can use common code (all three formats use the same base code for interpolation, mean wind speed, etc)
    • added code to include vertical flow angle (to rotate FF wind boxes vertically, too), but this angle must be 0 for linearization
    • added option for native Bladed file formats (scale by standard deviation, add mean wind-speed profile)
    • returns 0 wind speed at and below the ground height (z=0) instead of producing an error
    • added Wind*VelXY, Wind*VelMag, and WindAngXY output channels
  • input files changes:
    • added a new line to read VFlowAng (upflow angle) in the InflowWind input file
    • uniform wind files now allow a 9th column to specify the the upflow angle. If this column is missing, it assumes the upflow angle is 0 degrees.

Other:

  • added Windows Visual Studio files to build InflowWind driver
  • added some example input files and the start of some InflowWind documentation files (documented the new features.... it will need to be reorganized a bit when the previous InflowWind documentation is added)

Related issue, if one exists
None

Impacted areas of the software
InflowWind, Windows Visual Studio build, documentation, cmake

Test results, if applicable

  • compare results here:
    One case fails. All of the channels that depend on turbine dynamics have a sharp increase in the error plots at 25.75 seconds, which then dies out. The differences are still small here, though: max L2 norm is 2.0808e-04, and you really have to zoom in to see differences in the time series. The inflow channels at the hub has 0 error. Here is the channel with the max error:
    image

InflowWind driver:
----
- functionality:
  - added option to convert file formats
- input file changes:
  - added section for file conversion options
  - moved dt after timeStart (before summary stuff)
  - removed inflowWind setup section header
  - skip reading GridCtrCoord, GridD{x|y|z}, and GridN{x|y|z} lines if they aren't going to be used (and don't print them in summary file)

InflowWind:
---
- added code to include vertical flow angle (to rotate FF wind boxes vertically, too)
- added base FF wind module so TurbSim, Bladed, and HAWC2 formats can use common code (all three formats use the same base code for interpolation, mean wind speed, etc)
- added LHR rule for Bladed-generated winds
- option for native Bladed file formats
- return 0 wind speed at and below the ground height (z=0) instead of producing an error
- This allows different wind boxes to be rotated about (0,0,RefHt).
- fixed issue with how native-Bladed wind boxes were rotated before
- removed unused variables
- fixed spelling errors
- do not allow vertical flow angle for linearization (requires re-working of the math, which I haven't had time to do)
- added check for weird problem with linux compilers seeming to return results from MODULO function in unexpected range.
- files listed in the IfW driver will be relative to the file they are specified in
- fixed some error handling
- allow the uniform wind files to contain an additional column specifying the upflow angle
- added `Wind*VelXY`, `Wind*VelMag`, and `WindAngXY` output channels
@andrew-platt
Copy link
Collaborator

After merging the PR to this branch, the 5MW_TLP_DLL_WTurb_WavesIrr_WavesMulti case will need rebaselining. It is the only case that fails.

@bjonkman bjonkman marked this pull request as ready for review December 1, 2020 17:20
@rafmudaf rafmudaf added the Approved: Update baselines Pull request is ready for updated regression test baselines label Dec 8, 2020
@rafmudaf rafmudaf merged commit a95ef87 into OpenFAST:dev Dec 9, 2020
andrew-platt added a commit to andrew-platt/openfast that referenced this pull request Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved: Update baselines Pull request is ready for updated regression test baselines Module: InflowWind Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants