Hello!
I’m simulating a wind turbine machine using Simulink. It’s working and there is no problem. I want to change the wind condition, so I tried “steady” and “binary TurbSim” options inside InFlow to test the model, and there is again no problem. However when I want to test the model with “uniform” wind, I faced an error.
The wind file which I used is:
! Wind file for sheared 18 m/s wind with 30 degree direction.
! Time Wind Wind Vert. Horiz. Vert. LinV Gust
! Speed Dir Speed Shear Shear Shear Speed
0 6.0000 0 0 0 0 0 0
0.0010 6.0000 0 0 0 0 0 0
50.0000 6.0000 0 0 0 0 0 0
50.0010 8.0000 0 0 0 0 0 0
100.0000 8.0000 0 0 0 0 0 0
100.0010 16.0000 0 0 0 0 0 0
150.0000 16.0000 0 0 0 0 0 0
150.0010 14.0000 0 0 0 0 0 0
200.0000 14.0000 0 0 0 0 0 0
The reason of using this file is to change the wind speeds while simulating.
The parameters inside InFlow are also:
2 for WindType
80.03 for RefHt
89.4 for RefLength (89.4 is the rotor diameter)
Matlab error is also this:
Error using Run_Choshi (line 45)
Error due to multiple causes.
Caused by:
Error using Run_Choshi (line 45)
Error reported by S-function ‘FAST_SFunc’ in ‘Choshi_discrete/FAST Nonlinear
Wind Turbine/S-Function’:
FAST_InitializeAll: IfW_Init:IfW_UniformWind_Init: Error reading data from
Uniform wind file on line 4.
Error using Run_Choshi (line 45)
The expression: u(strmatch(‘GenSpeed’,OutList))
in ‘Choshi_discrete/Generator Speed’
has a syntax error
Error using Run_Choshi (line 45)
The expression: u(strmatch(‘GenTq’,OutList))
in ‘Choshi_discrete/Generator Torque’
has a syntax error
Error using Run_Choshi (line 45)
The expression: u(strmatch(‘PtchPMzc1’,OutList))
in ‘Choshi_discrete/Pitch Angle’
has a syntax error
Please kindly let me know what should I do to fix the problem.
Thank you very much in advance.
Iman
Hi Iman,
The first error indicates that InflowWind is trying to read the data from line 4 of your file, but it can’t parse the line correctly.
Given the input file you shared, I can’t tell if there are unusual characters that would be causing a problem, but that would be something to check. InflowWind wants 8 real numbers within the first 1024 characters on that line, separated by either white space or commas. If there are non-printable characters on the line, it may stop reading the file.
hello!
I want to change the direction of the UniformWind type wind with matlab, what should I do?
Thank you very much in advance.
Dear Zhe Zhang,
The wind direction is specified as one of the columns in the uniform wind file, so, you can set it there. You can create the file with MATLAB if you write a simple script to do so.
Moreover, the wind direction of any wind file type in InflowWind is set in the InflowWind input file (input parameter PropagationDir).
Best regards,
Dear Jason.Jonkman
I have set the parameter in the inflowwind input file,but I still have an error, I don’t know why.Please do help me to sort this out.
[attachment=0]Doc1.docx[/attachment]
Dear Zhe Zhang,
I don’t see any problem with your InflowWind or uniform wind input files.
There were issues in AeroDyn v15.03 within FAST v8.16 that led to the error “no valid value of phi” in some cases. However, these issues have been fixed in AeroDyn v15.04 and newer, including in the release of OpenFAST v1.0 and v2. I suggest you upgrade to the master branch of OpenFAST v2.1: nwtc.nrel.gov/OpenFAST.
Best regards,
Dear Jason.Jonkman
You provide two ways to change the wind direction.Change input parameters PropagationDir or set it in the uniform wind file,Are the results of the two methods consistent?
Dear Zhe.Zhang,
PropagationDir rotates the entire wind field and applies to any wind file type, not just to uniform wind files, so, that is a big difference.
The wind direction in the uniform wind file changes “Delta” in the equation on page 9 of the InflowWind User’s Guide: wind.nrel.gov/nwtc/docs/InflowWind_Manual.pdf.
I hope that helps.
Best regards,
Dear Jason.Jonkman
I change the wind direction in two ways. Please help me to confirm whether the effect of the two methods is the same.
Thank you very much in advance.[attachment=0]1.docx[/attachment]
Dear Zhe.Zhang,
Your two methods are the same except that you’ve defined shear in the WindType=1 method, but not in the WindType=2 method.
Best regards,
Dear Jason.Jonkman,
I want to generate a uniform wind data of 11.4m/s, but I follow the manual, and the data I get doesn’t seem to be uniform wind data, because wind speed varies with altitude,can you give me some advice, the attachment is as follows
Best regards,
Dear @Hairui.Jiang,
Can you clarify what you want to do? Are you trying to generate a uniform wind data file that is time varying with TurbSim?
The file you’ve shared includes a power law for vertical shear (VerShr
= 0.2); if you want to eliminate this shear, set VerShr
= 0.0.
Best regards,
Dear Jason.Jonkman,
Thank you for your reply. I want to use Turbsim to generate the unified wind file. I did as you said, but the wind speed and direction of the unified wind file still changed, is it because of turbulence?
Best regards,
Dear @Hairui.Jiang,
Yes, when TurbSim generates a uniform wind data file, it takes the wind velocity at the reference point (including U, V, and W components, or wind speed, direction, and vertical speed), the vertical power law shear, and assumes it is uniform across the disk (other than the shear, which adds a profile dependent on height).
Best regards,