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

Bug report: None Turbulence model returns the wrong values #893

Closed
Bartdoekemeijer opened this issue Apr 25, 2024 · 3 comments
Closed

Bug report: None Turbulence model returns the wrong values #893

Bartdoekemeijer opened this issue Apr 25, 2024 · 3 comments

Comments

@Bartdoekemeijer
Copy link
Collaborator

The 'None' turbulence model is incorrect in its current implementation.

How to reproduce

The turbulence model is a wake-added turbulence model, which is added on top of the ambient turbulence intensity. Currently, the 'None' turbulence model returns the ambient turbulence values, while it should return zeros.

Relevant output

The turbulence model should return zeros.

Floris version

FLORIS v3.6 but it's also in v4:
https://github.com/NREL/floris/blob/6181d78d9c9bd52a3a23f97f6d37ef3ebd84e11e/floris/core/wake_turbulence/none.py#L32C20-L32C44

System Information

N/A

@Bartdoekemeijer
Copy link
Collaborator Author

Sorry for the short bug report. Jasper Kreeft found this while cross-validating wake modeling tools and wanted to flag this.

@misi9170
Copy link
Collaborator

Thanks @Bartdoekemeijer ! I can see the issue that you are talking about. When running the GCH model (solved using sequential_solver()) an atmospheric TI of 0.06, with the NoneWakeTurbulence model selected, the wake_added_turbulence_intensity, calculated here is 0.06, rather than the expected 0.

This is a direct result of this line, which appears to be incorrect. Since the TI returned by this model (as well as any other turbulence intensity model) will be added to the ambient TI, this line should simply be changed to return np.zeros_like(x).

I will check to see if there is anywhere where the turbulence intensity model is being used to represent the "full" turbulence intensity (combined ambient and wake), to ensure that changing this to 0 does not conflict with the usage in other solvers.

@misi9170
Copy link
Collaborator

misi9170 commented May 7, 2024

Addressed in #894

@misi9170 misi9170 closed this as completed May 7, 2024
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