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 fix: Enable mulit-dimensional turbines for turbine interactions #754

Merged
merged 19 commits into from
Dec 6, 2023

Conversation

RHammond2
Copy link
Collaborator

@RHammond2 RHammond2 commented Dec 5, 2023

Enable Multi-Dimensional Turbines in the Turbine Preview Moduel

This PR updates the TurbineInterface and TurbineLibrary convenience features to enable multi-dimensional turbines in the power and thrust curve calculations and plots.

Related issue

This is related to the following issues and pull requests:

Additionally, the GH Actions for documentation build is failing on the turbine_interaction.ipynb notebook.

Impacted areas of the software

  • floris/turbine_library/turbine_preview.py:
    • Cp has been removed to prepare its future deprecation.
    • TurbineMultidimensional, power_multi_dim, and Ct_multidim are now used appropriately for multi-dimensional turbines.
  • floris/simulation/turbine.py:power: Updated the typing and docstring to match the expected data type and reduce confusion for future users.
  • floris/simulation/turbine_multi_dim.py:
    • Corrected a bad assumption on the base turbine library path.
    • Added condition_keys to track what the dimensions actually are as a convenient way to not reload the data, just to obtain the first x column names in the power data file.
  • floris/turbine_library/iea_15MW_multi_dim_cp_ct.yaml: corrected the file name to work with updated library assumptions from Fix path dependency in convert_to_path test #749.
  • docs/turbine_interaction.ipynb: Updated to have Cp removed.

Additional supporting information

N/A

Test results, if applicable

All tests pass.

@RHammond2 RHammond2 added bug Something isn't working enhancement An improvement of an existing feature documentation labels Dec 5, 2023
@rafmudaf rafmudaf requested review from bayc and removed request for paulf81 December 5, 2023 20:49
@rafmudaf rafmudaf added this to the v3.6 milestone Dec 5, 2023
@rafmudaf
Copy link
Collaborator

rafmudaf commented Dec 5, 2023

Thanks @RHammond2!

@rafmudaf
Copy link
Collaborator

rafmudaf commented Dec 5, 2023

@bayc Your eyes are probably more critical on this one

@rafmudaf
Copy link
Collaborator

rafmudaf commented Dec 6, 2023

I'm going to merge this since a few other pull requests depend on it, but @bayc feel free to comment here if you have any feedback.

@rafmudaf rafmudaf merged commit 6f2256d into NREL:develop Dec 6, 2023
8 checks passed
@RHammond2 RHammond2 deleted the bug_fix/multi_turbine_interactions branch December 7, 2023 23:08
@misi9170 misi9170 mentioned this pull request Apr 5, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation enhancement An improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants