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

Feeding an array of wind speeds vs. Iterating over the radial position #28

Open
MiguelMarante opened this issue May 21, 2023 · 4 comments
Assignees

Comments

@MiguelMarante
Copy link

Hello ,

I have been using CCBlade in my master thesis and I have ran into a problem:

Using the example provided on github, I have set the shear exponent to 0, so that I can choose the wind speeds at each radial and azimuthal positions myself.

For azimuth = 0º, I defined the wind profile for each radial position according to the power law with shear exp = 0.2:

image

Then I compute the distributed loads by iterating the "distributedAeroLoads" method throughout each radial position:

image

And the results I get are the same that the program gives if the shear exponent 0.2 was defined as an input to the CCBlade class.

image

However, if I input "wind_shear" as an array, which is way faster, the results are not the same and don't seem to be correct. Here is a plot of the results for azimuth = 0º:

image

My work involves that I loop over this method and it would be very beneficial for me if I could input the wind speed at each radial position as an array, but the results are not correct. I have gone over the source code, but I am new to programming and cannot figure out what might be wrong. Am I missing something?

Best regards,
Miguel

@ptrbortolotti ptrbortolotti self-assigned this May 22, 2023
@ptrbortolotti
Copy link
Contributor

Hello Miguel,
I will need to dig into the code to understand exactly what you are trying to do and why it is not working. Please give me a few days and I'll get back to you.
Best regards,
Pietro

@MiguelMarante
Copy link
Author

Ok, thank you!

@ptrbortolotti
Copy link
Contributor

Hello Miguel,
it took me a while to understand what you are trying to do and why it is not working. Thank you for the patience.
After some digging, I believe that the issue is that when you pass an array of wind speeds to distributedAeroLoads, the array is neglected and only the first value is used here https://github.com/WISDEM/WISDEM/blob/9a7e811bfb7f31483682d135372f523f8110ea98/wisdem/ccblade/src/bem.f90#L257
The reason that distributedAeroLoads accepts arrays as inputs is that it can run parametric studies across combinations of wind speeds, rotor speeds, pitch angles, and blade azimuthal positions.
You are trying to do something else, and you will need to work on the Fortran code at the link above.
I hope this helps.
Regards,
Pietro

@MiguelMarante
Copy link
Author

Hello Dr. Pietro,

Thank you for taking the time to work on this problem. I will try to dig deeper into the fortran code and see if there is anything I can do there.

Best regards,
Miguel

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

No branches or pull requests

2 participants