Page 1 of 1

problem in uniform wind file

Posted: Mon May 09, 2016 11:57 pm
by Iman.Yousefi
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

Re: problem in uniform wind file

Posted: Wed May 11, 2016 10:31 am
by Bonnie.Jonkman
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.

Re: problem in uniform wind file

Posted: Sat Aug 03, 2019 9:18 pm
by Zhe.Zhang
hello!
I want to change the direction of the UniformWind type wind with matlab, what should I do?
Thank you very much in advance.

Re: problem in uniform wind file

Posted: Mon Aug 05, 2019 6:38 am
by Jason.Jonkman
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,

Re: problem in uniform wind file

Posted: Wed Aug 07, 2019 8:25 pm
by Zhe.Zhang
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.
Doc1.docx
(183.74 KiB) Downloaded 6 times

Re: problem in uniform wind file

Posted: Thu Aug 08, 2019 6:50 am
by Jason.Jonkman
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: https://nwtc.nrel.gov/OpenFAST.

Best regards,

Re: problem in uniform wind file

Posted: Thu Aug 29, 2019 4:25 am
by Zhe.Zhang
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?

Re: problem in uniform wind file

Posted: Thu Aug 29, 2019 7:58 am
by Jason.Jonkman
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: https://wind.nrel.gov/nwtc/docs/InflowWind_Manual.pdf.

I hope that helps.

Best regards,

Re: problem in uniform wind file

Posted: Thu Aug 29, 2019 7:18 pm
by Zhe.Zhang
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.
1.docx
(101.16 KiB) Downloaded 1 time

Re: problem in uniform wind file

Posted: Thu Aug 29, 2019 8:00 pm
by Jason.Jonkman
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,