FAST.Farm
Hello everyone, I'm trying to run a simulation in FAST.Farm using the NREL5MW wind turbine, but the following error occured:
Farm_Initialize:InflowWind_CalcOutput:CalcOutput:IfW_FFWind_CalcOutput [position=(4980, 4980, 345) in wind-file coordinates]: Error: FF wind array was exhausted at 2 seconds (trying to access data at -406.96 seconds).
Aborting FAST.Farm.
How can I fix it? Thanks a lot!
Dear @Tommi1198,
Have you generated your turbulent wind data file using TurbSim following the modeling guidance documentation: https://openfast.readthedocs.io/en/main/source/user/fast.farm/ModelGuidance.html#inflow-wind-generation? Is the turbulent wind data periodic as recommended? I would not expect that you'd receive an error regarding
FF wind array was exhausted
if the wind data is periodic.
Best regards,
Dear @jjonkman , this is my input file for the wind:
------- InflowWind INPUT FILE ------------------------------------------------------------------------- 12 m/s turbulent winds on 31x31 FF grid and tower for FAST CertTests #18, #19, #21, #22, #23, and #24
False Echo - Echo input data to <RootName>.ech (flag) 3 WindType - switch for wind file type (1=steady; 2=uniform; 3=binary TurbSim FF; 4=binary Bladed-style FF; 5=HAWC format; 6=User defined; 7=native Bladed FF) 0 PropagationDir - Direction of wind propagation (meteorological rotation from aligned with X (positive rotates towards -Y) -- degrees) (not used for native Bladed format WindType=7) 0 VFlowAng - Upflow angle (degrees) (not used for native Bladed format WindType=7) 1 NWindVel - Number of points to output the wind velocity (0 to 9) 0 WindVxiList - List of coordinates in the inertial X direction (m) 0 WindVyiList - List of coordinates in the inertial Y direction (m) 90 WindVziList - List of coordinates in the inertial Z direction (m) ================== Parameters for Steady Wind Conditions [used only for WindType = 1] ========================= 15 HWindSpeed - Horizontal wind speed (m/s) 90 RefHt - Reference height for horizontal wind speed (m) 0.2 PLExp - Power law exponent (-) ================== Parameters for Uniform wind file [used only for WindType = 2] ============================ "unused" Filename_Uni - Filename of time series data for uniform wind field. (-) 90 RefHt_Uni - Reference height for horizontal wind speed (m) 125.88 RefLength - Reference length for linear horizontal and vertical sheer (-) ================== Parameters for Binary TurbSim Full-Field files [used only for WindType = 3] ============== "C:\Users\167544\Desktop\NREL5MW\r-test-main\glue-codes\openfast\5MW_Baseline\Wind\90m_12mps_twr.bts" FileName_BTS - Name of the Full field wind file to use (.bts) ================== Parameters for Binary Bladed-style Full-Field files [used only for WindType = 4 or WindType = 7] ========= "unused" FileNameRoot - WindType=4: Rootname of the full-field wind file to use (.wnd, .sum); WindType=7: name of the intermediate file with wind scaling values False TowerFile - Have tower file (.twr) (flag) ignored when WindType = 7 ================== Parameters for HAWC-format binary files [Only used with WindType = 5] ===================== "wasp\Output\basic_5u.bin" FileName_u - name of the file containing the u-component fluctuating wind (.bin) "wasp\Output\basic_5v.bin" FileName_v - name of the file containing the v-component fluctuating wind (.bin) "wasp\Output\basic_5w.bin" FileName_w - name of the file containing the w-component fluctuating wind (.bin) 64 nx - number of grids in the x direction (in the 3 files above) (-) 32 ny - number of grids in the y direction (in the 3 files above) (-) 32 nz - number of grids in the z direction (in the 3 files above) (-) 16 dx - distance (in meters) between points in the x direction (m) 3 dy - distance (in meters) between points in the y direction (m) 3 dz - distance (in meters) between points in the z direction (m) 90 RefHt_Hawc - reference height; the height (in meters) of the vertical center of the grid (m) ------------- Scaling parameters for turbulence --------------------------------------------------------- 2 ScaleMethod - Turbulence scaling method [0 = none, 1 = direct scaling, 2 = calculate scaling factor based on a desired standard deviation] 1 SFx - Turbulence scaling factor for the x direction (-) [ScaleMethod=1] 1 SFy - Turbulence scaling factor for the y direction (-) [ScaleMethod=1] 1 SFz - Turbulence scaling factor for the z direction (-) [ScaleMethod=1] 1.2 SigmaFx - Turbulence standard deviation to calculate scaling from in x direction (m/s) [ScaleMethod=2] 0.8 SigmaFy - Turbulence standard deviation to calculate scaling from in y direction (m/s) [ScaleMethod=2] 0.2 SigmaFz - Turbulence standard deviation to calculate scaling from in z direction (m/s) [ScaleMethod=2] ------------- Mean wind profile parameters (added to HAWC-format files) --------------------------------- 12 URef - Mean u-component wind speed at the reference height (m/s) 2 WindProfile - Wind profile type (0=constant;1=logarithmic,2=power law) 0.2 PLExp_Hawc - Power law exponent (-) (used for PL wind profile type only) 0.03 Z0 - Surface roughness length (m) (used for LG wind profile type only) 0 XOffset - Initial offset in +x direction (shift of wind box) ====================== OUTPUT ================================================== False SumPrint - Print summary data to <RootName>.IfW.sum (flag) OutList - The next line(s) contains a list of output parameters. See OutListParameters.xlsx for a listing of available output channels, (-) "Wind1VelX" X-direction wind velocity at point WindList(1) "Wind1VelY" Y-direction wind velocity at point WindList(1) "Wind1VelZ" Z-direction wind velocity at point WindList(1) END of input file (the word "END" must appear in the first 3 columns of this last OutList line)
Dear @Tommi1198,
I don't see any issue with this InflowWind input file. The issue is likely with the TurbSim wind data file you are using, 90m_12mps_twr.bts.
How did you generate this file from TurbSim and is it periodic, i.e., is TurbSim input UsableTime set to "ALL"?
Best regards,
Dear @jjonkman, I took this file from the library in GitHub; in addition, I donìt know how to open this file so that I can check if TurbSim input UsableTime set to "ALL". What can I do? Thank you
Dear @Tommi1198,
Presumably you obtained the file 90m_12mps_twr.bts from here: https://github.com/OpenFAST/r-test/tree/main/glue-codes/openfast/5MW_Baseline/Wind; is that correct? The TurbSim input file used to generate this wind data file is available in the same directory, 90m_12mps_twr.inp. In this file, UsableTime is set to 60 s, not "ALL". And there are other input parameters in this TurbSim input file that also do not follow the modeling guidance for TurbSim specified in the FAST.Farm documentation.
The TurbSim input file, 90m_08_mps.inp, found in the following example more closely follows the modeling guidance for TurbSim specified in the FAST.Farm documentation: https://github.com/OpenFAST/r-test/tree/main/glue-codes/fast-farm/TSinflow. I would start with this example.
Best regards,
Dear @jjonkman, I changed the wind file using 90m_08_mps.bts as bts file for TurbSim, but another error came out:
Farm_Initialize:InflowWind_CalcOutput:CalcOutput:IfW_FFWind_CalcOutput [position=(4980, 4980, 345) in wind-file coordinates]: FF wind array boundaries violated: Grid too small in Y direction. Y=4980; Y boundaries = [-500, 500]
Aborting FAST.Farm.
How can I change the Y boundaries?
This is my input file for the wind:
------- InflowWind INPUT FILE ------------------------------------------------------------------------- 12 m/s turbulent winds on 31x31 FF grid and tower for FAST CertTests #18, #19, #21, #22, #23, and #24
False Echo - Echo input data to <RootName>.ech (flag) 3 WindType - switch for wind file type (1=steady; 2=uniform; 3=binary TurbSim FF; 4=binary Bladed-style FF; 5=HAWC format; 6=User defined; 7=native Bladed FF) 0 PropagationDir - Direction of wind propagation (meteorological rotation from aligned with X (positive rotates towards -Y) -- degrees) (not used for native Bladed format WindType=7) 0 VFlowAng - Upflow angle (degrees) (not used for native Bladed format WindType=7) 1 NWindVel - Number of points to output the wind velocity (0 to 9) 0 WindVxiList - List of coordinates in the inertial X direction (m) 0 WindVyiList - List of coordinates in the inertial Y direction (m) 90 WindVziList - List of coordinates in the inertial Z direction (m) ================== Parameters for Steady Wind Conditions [used only for WindType = 1] ========================= 15 HWindSpeed - Horizontal wind speed (m/s) 90 RefHt - Reference height for horizontal wind speed (m) 0.2 PLExp - Power law exponent (-) ================== Parameters for Uniform wind file [used only for WindType = 2] ============================ "unused" Filename_Uni - Filename of time series data for uniform wind field. (-) 90 RefHt_Uni - Reference height for horizontal wind speed (m) 125.88 RefLength - Reference length for linear horizontal and vertical sheer (-) ================== Parameters for Binary TurbSim Full-Field files [used only for WindType = 3] ============== "90m_08mps.bts" FileName_BTS - Name of the Full field wind file to use (.bts) ================== Parameters for Binary Bladed-style Full-Field files [used only for WindType = 4 or WindType = 7] ========= "unused" FileNameRoot - WindType=4: Rootname of the full-field wind file to use (.wnd, .sum); WindType=7: name of the intermediate file with wind scaling values False TowerFile - Have tower file (.twr) (flag) ignored when WindType = 7 ================== Parameters for HAWC-format binary files [Only used with WindType = 5] ===================== "wasp\Output\basic_5u.bin" FileName_u - name of the file containing the u-component fluctuating wind (.bin) "wasp\Output\basic_5v.bin" FileName_v - name of the file containing the v-component fluctuating wind (.bin) "wasp\Output\basic_5w.bin" FileName_w - name of the file containing the w-component fluctuating wind (.bin) 64 nx - number of grids in the x direction (in the 3 files above) (-) 32 ny - number of grids in the y direction (in the 3 files above) (-) 32 nz - number of grids in the z direction (in the 3 files above) (-) 16 dx - distance (in meters) between points in the x direction (m) 3 dy - distance (in meters) between points in the y direction (m) 3 dz - distance (in meters) between points in the z direction (m) 90 RefHt_Hawc - reference height; the height (in meters) of the vertical center of the grid (m) ------------- Scaling parameters for turbulence --------------------------------------------------------- 2 ScaleMethod - Turbulence scaling method [0 = none, 1 = direct scaling, 2 = calculate scaling factor based on a desired standard deviation] 1 SFx - Turbulence scaling factor for the x direction (-) [ScaleMethod=1] 1 SFy - Turbulence scaling factor for the y direction (-) [ScaleMethod=1] 1 SFz - Turbulence scaling factor for the z direction (-) [ScaleMethod=1] 1.2 SigmaFx - Turbulence standard deviation to calculate scaling from in x direction (m/s) [ScaleMethod=2] 0.8 SigmaFy - Turbulence standard deviation to calculate scaling from in y direction (m/s) [ScaleMethod=2] 0.2 SigmaFz - Turbulence standard deviation to calculate scaling from in z direction (m/s) [ScaleMethod=2] ------------- Mean wind profile parameters (added to HAWC-format files) --------------------------------- 12 URef - Mean u-component wind speed at the reference height (m/s) 2 WindProfile - Wind profile type (0=constant;1=logarithmic,2=power law) 0.2 PLExp_Hawc - Power law exponent (-) (used for PL wind profile type only) 0.03 Z0 - Surface roughness length (m) (used for LG wind profile type only) 0 XOffset - Initial offset in +x direction (shift of wind box) ====================== OUTPUT ================================================== False SumPrint - Print summary data to <RootName>.IfW.sum (flag) OutList - The next line(s) contains a list of output parameters. See OutListParameters.xlsx for a listing of available output channels, (-) "Wind1VelX" X-direction wind velocity at point WindList(1) "Wind1VelY" Y-direction wind velocity at point WindList(1) "Wind1VelZ" Z-direction wind velocity at point WindList(1) END of input file (the word "END" must appear in the first 3 columns of this last OutList line)
@Tommi1198
Your turbine is too far out of the bounds of the wind field. About 5 km away from the center based on [position=(4980, 4980, 345). Is that the correct position for the turbine?
Dear @andrew-platt, my turbine is in this position:
WT_X WT_Y WT_Z
(m) (m) (m)
100.0 180.0 0.0
This is a bit puzzling. What is asking for wind 5 km away at position=(4980, 4980, 345)?
I don't really know...
Dear @Tommi1198,
My guess is your low- or high-resolution domains defined in your FAST.Farm input file have points that are outside the domain of your TurbSim wind data file.
Best regards,
Dear @jjonkman, how can I see if I have some points outside the TurbSim domain? Because I tried to extend the resolution of the turbine but nothing changed
Dear @Tommi1198,
You specify the X-Y-Z extent of the low- and high-resolution domains used by FAST.Farm in the FAST.Farm input file. And you specify the Y-Z extent of the TurbSim domain(s) used by the InflowWind module of FAST.Farm in the TurbSim input file (due to its periodicity, the X-extent of the TurbSim domain is infinite when UsableTime = "ALL"). The low- and high-resolution domains of FAST.Farm must lie within the TurbSim domain (and preferably align with the TurbSim domain to avoid extra interpolation) as discussed in the Modeling Guidance section of the online FAST.Farm documentation: https://openfast.readthedocs.io/en/main/source/user/fast.farm/ModelGuidance.html.
Best regards,
Dear @jjonkman, I have no idea how to open the .bts file to change the domain of the TurbSim input file...I tried to open it with a program found on the internet, but it didn't work
Dear @Tommi1198,
You shouldn't edit the binary wind data file manually. The TurbSim domain (and other wind conditions) is specified in the TurbSim input file. The TurbSim output file can then be generated by rerunning TurbSim.
Best regards,
Dear @jjonkman, the following error continued to show:
Farm_Initialize:InflowWind_CalcOutput:CalcOutput:IfW_FFWind_CalcOutput [position=(4975, 9950, 340) in wind-file coordinates]: FF wind array boundaries violated: Grid too small in Y direction. Y=9950; Y boundaries = [-500, 500]
Aborting FAST.Farm.
So, I enlarged the grid in Y direction and the following error came out:
forrtl: severe (157): Program Exception - access violationiod of 200 seconds). Image PC Routine Line Source FAST.Farm_x64.exe 00007FF7A16BBF97 Unknown Unknown Unknown FAST.Farm_x64.exe 00007FF7A16B9F2B Unknown Unknown Unknown FAST.Farm_x64.exe 00007FF7A169E7ED Unknown Unknown Unknown FAST.Farm_x64.exe 00007FF7A0A2C0C5 Unknown Unknown Unknown FAST.Farm_x64.exe 00007FF7A070C725 Unknown Unknown Unknown FAST.Farm_x64.exe 00007FF7A08E3521 Unknown Unknown Unknown FAST.Farm_x64.exe 00007FF7A08CCEAE Unknown Unknown Unknown FAST.Farm_x64.exe 00007FF7A07013EE Unknown Unknown Unknown FAST.Farm_x64.exe 00007FF7A2F23B62 Unknown Unknown Unknown FAST.Farm_x64.exe 00007FF7A341F934 Unknown Unknown Unknown KERNEL32.DLL 00007FF9D2E754E0 Unknown Unknown Unknown ntdll.dll 00007FF9D3A6485B Unknown Unknown Unknown
What can I do? Thanks a lot!
Dear @Tommi1198,
Can you clarify what you mean when you say that you "enlarged the grid in Y direction"?
Best regards,
Dear @jjonkman, I mean that, when I had the first error, I read on the guide that the problem was regarding the low-resolution domain, so I enlarged it; then, the second error described above came out
Dear @Tommi1198,
Can you share your FAST.Farm input file, InflowWind input file, and TurbSim input file?
Best regards,
Input file.zip Dear @jjonkman, here what you asked for, thanks a lot!
Dear @Tommi1198,
I'm still not sure what is resulting in the access violation error, but perhaps that is the same issue discussed previously: https://github.com/OpenFAST/openfast/issues/1044?
Regardless, I still see that you are not setting up your FAST.Farm discretizations correctly. Just a few comments:
- The low-resolution domain is skewed way to one side in Y and the
dY_Lowspacing is large. - The
drspacing of the wake planes (radial finite-difference grid) is way to large.
Can you explain why you are setting up your model this way?
By now, you've asked a series of FAST.Farm questions, but you have not followed our recommendations, i.e., to set up your model following the documented modeling guidance and provided Python scripts. I'm not sure how to help if you don't follow our recommendations.
Best regards,
@jjonkman @Tommi1198 @andrew-platt @sayerhs @itd
respected sir,sir i am a student and doing my academic project on OWT but i can't understand,how to use this software, how to download it ? is matlab necessary to run this software? i seek your atteention for help. as a new member ,kindly help me so that i can contribute in this in future.
@jyotrimaya1993,
I recommend starting with the documentation here: https://openfast.readthedocs.io/en/main/index.html
@jyotrimaya1993,
I recommend starting with the documentation here: https://openfast.readthedocs.io/en/main/index.html
sir, this installation process is old,and after following also i am unable to install the software
Dear @jyotrimaya1993,
What is your operating system, which approach from the documentation are you trying to use to install OpenFAST, and which step in the process is not working for you?
Best regards,
sir, windows os in step 1 -i download visual studio community 2019 step 2 -i download fortran compiler with math library step 3- i download the zip file from openFAST git hub step 4 -i download all the assets except that 2 last source code zip file step 5-unzip all the downloaded file step 6-while running in powershell through the .exe code following that fst file... it is not running.... it only show that path only
Dear @jyotrimaya1993,
In Windows, the precompiled binary executables have been provided. So, unless you intend to modify the source code, requiring a recompile, you can likely skip steps 1-3.
To run the precompiled OpenFAST executable from a Windows command prompt, see, e.g., https://github.com/OpenFAST/openfast/issues/463.
Best regards,
what should i do now?
this thingh i got error
OpenFAST
Copyright (C) 2022 National Renewable Energy Laboratory Copyright (C) 2022 Envision Energy USA LTD
This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY. See the "LICENSE" file distributed with this software for details.
OpenFAST-v3.1.0 Compile Info:
- Compiler: Intel(R) Fortran Compiler 1900
- Architecture: 64 bit
- Precision: single
- OpenMP: No
- Date: Mar 08 2022
- Time: 10:53:02 Execution Info:
- Date: 05/05/2022
- Time: 01:01:46+0530
OpenFAST input file heading: FAST Certification Test #22: NREL 5.0 MW Baseline Wind Turbine with ITI Barge Configuration, for use in offshore analysis
Running ElastoDyn. Nodal outputs section of ElastoDyn input file not found or improperly formatted. Running AeroDyn14. WARNING: AeroDyn 14 is deprecated and will be removed in a future release. Running InflowWind.
Reading a 31x31 grid (145 m wide, 17.5 m to 162.5 m above ground) with a characteristic wind speed of 12 m/s. This full-field file was generated by TurbSim (v1.06.00, 21-Sep-2012) on 07-Jan-2014 at 12:50:45.
Processed 1442 time steps of 20-Hz full-field data (72.05 seconds). Running HydroDyn. Generating incident wave kinematics and current time history. Reading in WAMIT output with root name ".../5MW_Baseline/HydroData/Barge". Computing radiation impulse response functions and wave diffraction forces.
Using SS_Radiation Module, with 30 of 30 radiation states
MAP++ environment properties (set externally)... Gravity constant [m/s^2] : 9.81 Sea density [kg/m^3] : 1025.00 Water depth [m] : 150.00 Vessel reference position [m] : 0.00 , 0.00 , 0.00
Running ServoDyn. Running ServoDyn Interface for Bladed Controllers (using Intel Visual Fortran for Windows, ).
FAST_InitializeAll:SrvD_Init:BladedInterface_Init:The dynamic library .../5MW_Baseline/ServoData/DISCON_ITIBarge.dll could not be loaded. Check that the file exists in the specified location and that it is compiled for 64-bit applications.
OpenFAST encountered an error during module initialization. Simulation error level: FATAL ERROR
Aborting OpenFAST.
Dear @jyotrimaya1993,
See a similar question asked and answered here: https://github.com/OpenFAST/openfast/discussions/1114.
Best regards
@rafmudaf kindly guide me to solve my issue(Aerodyn is an issue or it will under development)
OpenFAST-v3.1.0 Compile Info:
- Compiler: Intel(R) Fortran Compiler 1900
- Architecture: 64 bit
- Precision: single
- OpenMP: No
- Date: Mar 08 2022
- Time: 10:53:02 Execution Info:
- Date: 05/05/2022
- Time: 10:38:01+0530
OpenFAST input file heading: FAST Certification Test #22: NREL 5.0 MW Baseline Wind Turbine with ITI Barge Configuration, for use in offshore analysis
Running ElastoDyn. Nodal outputs section of ElastoDyn input file not found or improperly formatted. Running AeroDyn14. WARNING: AeroDyn 14 is deprecated and will be removed in a future release. Running InflowWind.
Reading a 31x31 grid (145 m wide, 17.5 m to 162.5 m above ground) with a characteristic wind speed of 12 m/s. This full-field file was generated by TurbSim (v1.06.00, 21-Sep-2012) on 07-Jan-2014 at 12:50:45.
Processed 1442 time steps of 20-Hz full-field data (72.05 seconds). Running HydroDyn. Generating incident wave kinematics and current time history. Reading in WAMIT output with root name ".../5MW_Baseline/HydroData/Barge". Computing radiation impulse response functions and wave diffraction forces.
Using SS_Radiation Module, with 30 of 30 radiation states
MAP++ environment properties (set externally)... Gravity constant [m/s^2] : 9.81 Sea density [kg/m^3] : 1025.00 Water depth [m] : 150.00 Vessel reference position [m] : 0.00 , 0.00 , 0.00
Running ServoDyn. Running ServoDyn Interface for Bladed Controllers (using Intel Visual Fortran for Windows, ). Using legacy Bladed DLL interface.
Total Real Time: 8.498 seconds Total CPU Time: 8.4219 seconds Simulation CPU Time: 7.8438 seconds Simulated Time: 60 seconds Time Ratio (Sim/CPU): 7.6494
OpenFAST terminated normally.
PS C:\openfast\r-test-061441958a2eef7f494d69ee097f8ec050d5a129\r-test-061441958a2eef7f494d69ee097f8ec050d5a129\glue-codes\openfast\5MW_ITIBarge_DLL_WTurb_WavesIrr>