NREL / ROSCO

A Reference Open Source Controller for Wind Turbines
https://rosco.readthedocs.io/en/latest/
Apache License 2.0
116 stars 93 forks source link

Does ROSCO 2.4.1 not work with .bts type wind files? #226

Closed SYZ622 closed 1 year ago

SYZ622 commented 1 year ago

When I run ROSCO again after changing the wind file to .bts, I get the following error Error reported by S-function 'FAST_SFunc' in 'ROSCO1/FAST Nonlinear Wind Turbine/S-Function': FAST_Solution:FAST_AdvanceStates:SolveOption2c_Inp2AD_SrvD:InflowWind_CalcOutput:CalcOutput:IfW_FFWind_CalcOutput [position=(NaN, NaN, NaN) in wind-file coordinates]: Error: FF wind array was exhausted at 0.575 seconds (trying to access data at NaN seconds).

dzalkind commented 1 year ago

ROSCO does not read .bts files. OpenFAST does. I suspect there is an issue with your model or controller that causes those NaNs. Without more information, it's difficult to help you.

SYZ622 commented 1 year ago

The Test_Cases that come with ROSCO use steady wind, but after I changed the incoming wind input file in Openfast to a wind file generated by Turbsim, I got the above error. Also, I would like to ask how to determine the version of ROSCO and the corresponding version of Openfast?

dzalkind commented 1 year ago

They can be found in the print statements when OpenFAST and ROSCO are run. Or if you installed via conda, you can conda list | grep openfast or | grep rosco.

I suspect there may be an issue with your bts file if it runs okay in a steady wind.