openfast icon indicating copy to clipboard operation
openfast copied to clipboard

Upflow angle required in FAST.farm with InflowWind and uniform wind file

Open ValentinChb opened this issue 3 years ago • 4 comments

Bug description This is more an inconsistency than a bug, reported here to help others facing this issue: The 9th column for upflow angle which has been added to InflowWind's uniform wind files should be optional, but ommitting it causes FAST.farm used with InflowWind to crash (access violation).

Identifying the problem is non trivial as:

  • No hint/warning on the upflow angle being assumed to 0 is output unless there is another error
  • The sample uniform wind file in reg_tests/openfast/5MW_Baseline/Wind only has 8 columns

To Reproduce Mod_AmbWind=2 or 3 in .fstf file. WindType=3 in InflowWind file. 8 or 9 columns in uniform wind file (multiple files if Mod_AmbWind=3).

OpenFAST Version Distributed binary FAST.Farm_x64_OMP.exe

ValentinChb avatar Oct 27 '21 06:10 ValentinChb

WindType=3 in InflowWind is for binary TurbSim (.bts) files. Is that what you are using?

bjonkman avatar Oct 27 '21 14:10 bjonkman

No sorry that was a mistake. WindType=2.

ValentinChb avatar Oct 27 '21 15:10 ValentinChb

Dear @ValentinChb,

I'm a bit surprised by the error you are reporting considering that FAST.Farm makes use of the same InflowWind module used by OpenFAST, and I have not heard that such a problem exists in standalone OpenFAST. Have you seen this problem in standalone OpenFAST?

Best regards,

jjonkman avatar Oct 27 '21 18:10 jjonkman

No the problem does not occur in OpenFAST. I just tested with the distributed binary openfast_x64.exe, but had tested with my own build (MinGW, master branch) before. For both I get the expected warning message "IfW_Init:IfW_UniformWind_Init: Could not read upflow column in uniform wind files. Assuming upflow is 0", but it runs.

ValentinChb avatar Oct 28 '21 08:10 ValentinChb