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

Add method to return turbine TIs #452

Merged
merged 1 commit into from
Jun 29, 2022
Merged

Conversation

bayc
Copy link
Collaborator

@bayc bayc commented Jun 23, 2022

Feature or improvement description
This PR adds a method to return the calculated turbulence intensities in the flow field on the turbine rotors.

Related issue, if one exists
Closes #442

Impacted areas of the software
floris_interface.py

Additional supporting information
This will return TIs at the flow field points on the turbine rotors. This will be the averaged TI across the points on the turbine rotor.

Test results, if applicable
The following code prints out the returned TI values at each of the 3 turbines for the 2 wind conditions specified.

Code:

from floris.tools import FlorisInterface

fi = FlorisInterface("inputs/gch.yaml")
fi.reinitialize(wind_directions=[270., 0.], wind_speeds=[8.0])
fi.calculate_wake()

print(fi.get_turbine_TIs())
Output:

[[[[[0.06020304]]

   [[0.09741578]]

   [[0.11112154]]]]



 [[[[0.06020304]]

   [[0.06021817]]

   [[0.06022236]]]]]

@bayc bayc added enhancement An improvement of an existing feature v3 Label to denote focus on v3 labels Jun 23, 2022
@bayc bayc added this to the v3.2.0 milestone Jun 23, 2022
@bayc bayc requested review from paulf81 and rafmudaf June 23, 2022 15:07
@bayc bayc self-assigned this Jun 23, 2022
@bayc bayc changed the base branch from main to develop June 23, 2022 15:07
@bayc bayc merged commit ce5245e into NREL:develop Jun 29, 2022
@bayc bayc deleted the feature/get_turbine_TIs branch June 29, 2022 20:11
@rafmudaf rafmudaf mentioned this pull request Sep 12, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature v3 Label to denote focus on v3
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Feature request: interface to retrieve the turbulence intensity at individual turbines in the flow
2 participants