problem in uniform wind file

Provide feedback, request enhancements, and get help with wind-turbine computer-aided engineering tools.

Moderators: Bonnie.Jonkman, Jason.Jonkman

Iman.Yousefi
Posts: 14
Joined: Wed Apr 22, 2015 1:19 am
Organization: University of Tokyo
Location: Japan - Tokyo

problem in uniform wind file

Postby Iman.Yousefi » Mon May 09, 2016 11:57 pm

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

Bonnie.Jonkman
Posts: 556
Joined: Thu Nov 10, 2005 10:51 am
Organization: Envision Energy USA
Location: Colorado
Location: Boulder, CO
Contact:

Re: problem in uniform wind file

Postby Bonnie.Jonkman » Wed May 11, 2016 10:31 am

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.
Bonnie Jonkman

Envision Energy USA, 2016-
National Renewable Energy Laboratory, 2003-2016

Zhe.Zhang
Posts: 2
Joined: Wed Apr 03, 2019 1:40 am
Organization: Harbin Engineering University
Location: China

Re: problem in uniform wind file

Postby Zhe.Zhang » Sat Aug 03, 2019 9:18 pm

hello!
I want to change the direction of the UniformWind type wind with matlab, what should I do?
Thank you very much in advance.

Jason.Jonkman
Posts: 4191
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: problem in uniform wind file

Postby Jason.Jonkman » Mon Aug 05, 2019 6:38 am

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,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov

Zhe.Zhang
Posts: 2
Joined: Wed Apr 03, 2019 1:40 am
Organization: Harbin Engineering University
Location: China

Re: problem in uniform wind file

Postby Zhe.Zhang » Wed Aug 07, 2019 8:25 pm

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 2 times

Jason.Jonkman
Posts: 4191
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: problem in uniform wind file

Postby Jason.Jonkman » Thu Aug 08, 2019 6:50 am

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,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov


Return to “Computer-Aided Engineering Software Tools”

Who is online

Users browsing this forum: No registered users and 1 guest