Turbine Library #604
rafmudaf
started this conversation in
v3 Design Discussion
Replies: 2 comments 10 replies
-
Great idea! If I could pad one idea onto this, we should illustrate how to use a custom user-defined library. I had thought I would do this within the floating pull, but then found I couldn't figure out how to specify a relative path, and giving an absolute path in an example seemed tricky |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
FLORIS includes an internal turbine library in addition to the option to specify a user-defined library since #568. The user-defined library interface is well established and described in the pull request. The internal turbine library, however, is opaque for users who have installed floris without cloning the repository from GitHub (i.e.
pip install floris
). Presenting this information to users would be helpful in understanding how to configure turbines, evaluate their properties, and create new models. Currently, there are two methods to view a list of turbines available:Proposed solution
I propose two paths for bringing this information closer to the user.
First, the turbine library should be accessible within the code something like this:
This would provide an in-code interface to interact with these turbine models directly. It can be achieved by considering
floris/turbine_library
as a package alongsidefloris/simulation
andfloris/tools
and including the necessary infrastructure.The flow for loading turbines in the simulation code, whether from an internal or external turbine library, could leverage
floris.turbine_library
rather than reimplementing the sequence for finding the turbine input files and creating the new objects.Additionally, example 18 should be converted to a Jupyter Notebook format and incorporated into the online documentation either in the "User Reference" or "Theory and Background" sections. This sort of documentation would be a great tool for documenting methods to analyze the turbine input as well as document the included turbine properties themselves.
Beta Was this translation helpful? Give feedback.
All reactions