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 notebook to create curve equations and export for NRWAL #175

Merged
merged 13 commits into from
Sep 11, 2024

Conversation

rafmudaf
Copy link
Contributor

@rafmudaf rafmudaf commented Aug 21, 2024

Curve Generator & NRWAL Export

This pull request adds a Jupyter Notebook that allows the user to create a cost parameterization with ORBIT.ParametricManager, fit a curve to the data, and export the curve function to the NRWAL format. The notebook includes instructions and general documentation, a library of curve fit functions, a data structure to encapsulate the low-level functionality, and a set of example blocks. For more information, see the first block in the notebook.

The notebook was created with the goal of identifying the spatially dependent variables in cost equations for offshore wind farm CapEx components. The design-phase components of the CapEx breakdown are included:

  • Array system
  • Export system
  • Offshore substation
  • Mooring system
  • Substructure

The included blocks follow the following general workflow:

  1. Create the CostFunction object with the ORBIT configuration for the parameterization
  2. Run ORBIT via ORBIT.ParametricManager
  3. Fit a curve (or multiple) to determine the best fit without overfitting
  4. Plot the data and curves
  5. Export the curve equations to a NRWAL-compatible file

Considerations

The ORBIT model parameter names are mostly different from the NRWAL parameter names. The NRWAL parameters are listed in the docs, and a table of the ORBIT to NRWAL mapping is below.

  • The missing NRWAL variables need to still be determined.
ORBIT NRWAL
site.depth depth
site.mean_windspeed None
site.distance_to_landfall dist_s_to_l
mooring_system_design.draft_depth None
array_system_design.touchdown_distance None
array_system_design.floating_cable_depth None

@rafmudaf
Copy link
Contributor Author

@RHammond2 @nRiccobo I included some information in the PR description, but the majority of the information is in the intro block of the Jupyter Notebook. Please let me know if you have any questions or feedback.

@RHammond2 RHammond2 added enhancement Enhancement to an existing feature integration Features and requests related to integrations labels Aug 21, 2024
Copy link
Collaborator

@nRiccobo nRiccobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there is no real code modifications, I'm going to go ahead and merge in ahead of our next release. This example will be useful for users who need information from ORBIT in NRWL. Thanks for adding this example!!

@nRiccobo nRiccobo merged commit 8afa7d8 into WISDEM:dev Sep 11, 2024
7 checks passed
@nRiccobo nRiccobo added this to the v1.1 Release milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature integration Features and requests related to integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants