Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turbsim Generate experimental wind conditions #2007

Closed
lingajiang opened this issue Jan 25, 2024 · 5 comments
Closed

turbsim Generate experimental wind conditions #2007

lingajiang opened this issue Jan 25, 2024 · 5 comments

Comments

@lingajiang
Copy link

lingajiang commented Jan 25, 2024

Is your feature request related to a problem? Please describe.
Dear engineers:
I have built my own model in the aerodyn module, and then I want to build my own wind field with the turbsim module.
Describe the solution you'd like
I have built my own model in the aerodyn module, and then I want to build my own wind field with the turbsim module. I have the sequential wind speed data measured by my own wind tunnel (the data is composed of the sequential wind speed of 1024*1024 measurement points). When I learn the turbsim module, I want to use the TurbSim_User.timeSeriesInput file. However, I found that this file can only input one point in each Z direction and then form the wind speed data of the entire inlet surface through interpolation. I have my own data of the entire inlet surface, and I want to import all of them to form my own experimental wind conditions. In this case, what should I do? What do you suggest?
In addition, if you import in order, the order of the points is the understanding of the index?
微信截图_20240125102814

Describe alternatives you've considered

Additional context

@jjonkman
Copy link
Collaborator

Dear @lingajiang,

I agree that the TIMESR feature of TurbSim can only be used to derive full-field turbulent wind fields by time-matching the wind velocity time series measured at one point. The ability to time-match from multiple point measurements is a reasonable enhancement of TurbSim to propose.

That said, DTU has released their PyConTurb code, which is similar to the TIMESR feature of TurbSim, but does support time-matching from multiple point measurements. We have used PyConTurb at NREL when we want to do that.

In your case, however, it sounds like you have data at a very fine spatial resolution of point measurements (considering that we typically recommend using a spatial discretization equal to the maximum chordlength of a blade), so, I'm not sure why you would need to add finer resolution of turbulence at all. (Perhaps you need finer discretization in time?) Instead, I would suggest that you simply convert your data into TurbSim format for use within OpenFAST. While I have not used this script myself, there is a Python script in the OpenFAST Toolbox that can read and write TurbSim binary formatted output files: https://github.com/OpenFAST/openfast_toolbox/blob/main/openfast_toolbox/io/turbsim_file.py. This file format is described in Annex D of the TurbSim User's Guide: https://openfast.readthedocs.io/en/main/_downloads/cb14d3e2d3533d76e405d730fea19846/TurbSim_v2.00.pdf.

Best regards,

@bjonkman
Copy link
Contributor

Just to clarify, the TimeSR feature of TurbSim can already match more than one time history:
image
See an example input file here: https://github.com/OpenFAST/openfast/blob/main/docs/source/user/turbsim/examples/TurbSim_User.timeSeriesInput

But, as Jason said, if you already have measurements at all the (regularly spaced) points and don't need interpolation, you could just transform your measurements to the .wnd or .bts format that InflowWind can read, or you could read your own data format by modifying the InflowWind UserWind module.

@lingajiang
Copy link
Author

Dear Jonkman
Please forgive me for not having enough ability to write code before, so combined with your suggestion: I wrote my data into a new.bts file through turbsim_file.py for FAST operation. I used visual studion2019 to compile and then run the fast program, do I still need to compile in python according to your suggestion? In addition, I found that you have written the file readfile_bts.m before, if you use readfile_bts.m to add the data to form a new.bts file, is it OK?

Thank you for your reply

@jjonkman
Copy link
Collaborator

Dear @lingajiang,

You don't need to compile Python. It sounds like you already successfully wrote a TurbSim binary file that can be used by OpenFAST.

From the MATLAB Toolbox, I did not personally develop readfile_BTS.m, but this script will read a TurbSim binary file into the MATLAB workspace. I'm not aware that an equivalent MATLAB-based script to write a TurbSim binary file has been developed, but I'm sure that would be possible using readfile_BTS.m as a starting point.

Best regards,

@lingajiang
Copy link
Author

Dear Jonkman
Thank you for your reply
best wish for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants