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
problem in uniform wind file
Moderators: Bonnie.Jonkman, Jason.Jonkman
-
- Posts: 14
- Joined: Wed Apr 22, 2015 1:19 am
- Organization: University of Tokyo
- Location: Japan - Tokyo
-
- Posts: 574
- Joined: Thu Nov 10, 2005 10:51 am
- Organization: Envision Energy USA
- Location: Colorado
- Location: Boulder, CO
- Contact:
Re: problem in uniform wind file
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.
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
Envision Energy USA, 2016-
National Renewable Energy Laboratory, 2003-2016
-
- Posts: 26
- Joined: Wed Apr 03, 2019 1:40 am
- Organization: Harbin Engineering University
- Location: China
Re: problem in uniform wind 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.
I want to change the direction of the UniformWind type wind with matlab, what should I do?
Thank you very much in advance.
-
- Posts: 5428
- Joined: Thu Nov 03, 2005 4:38 pm
- Location: Boulder, CO
- Contact:
Re: problem in uniform wind file
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,
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
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
-
- Posts: 26
- Joined: Wed Apr 03, 2019 1:40 am
- Organization: Harbin Engineering University
- Location: China
Re: problem in uniform wind file
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.
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.
-
- Posts: 5428
- Joined: Thu Nov 03, 2005 4:38 pm
- Location: Boulder, CO
- Contact:
Re: problem in uniform wind file
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,
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
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
-
- Posts: 26
- Joined: Wed Apr 03, 2019 1:40 am
- Organization: Harbin Engineering University
- Location: China
Re: problem in uniform wind file
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?
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?
-
- Posts: 5428
- Joined: Thu Nov 03, 2005 4:38 pm
- Location: Boulder, CO
- Contact:
Re: problem in uniform wind file
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,
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,
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
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
-
- Posts: 26
- Joined: Wed Apr 03, 2019 1:40 am
- Organization: Harbin Engineering University
- Location: China
Re: problem in uniform wind file
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.
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.
-
- Posts: 5428
- Joined: Thu Nov 03, 2005 4:38 pm
- Location: Boulder, CO
- Contact:
Re: problem in uniform wind file
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,
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,
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
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