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 examples and documentation for ParFlorisModel #990

Merged

Conversation

paulf81
Copy link
Collaborator

@paulf81 paulf81 commented Oct 1, 2024

Add examples and documentation for ParFlorisModel

This PR is meant to complete the remaining actions listed in #982 , specifically to add to examples and documentation covering the new ParFlorisModel. To that

  • A new example is added (009, pushing back the current 009 to 010) showing the usage of ParFlorisModel
  • A new documentation page, covering both ParFlorisModel and UncertainFlorisModel is added, and a small re-arrangement of the ordering of the documentation is done to have this appear after wind_data_user.

@paulf81 paulf81 added enhancement An improvement of an existing feature documentation examples Changes to FLORIS examples labels Oct 1, 2024
@paulf81 paulf81 requested a review from misi9170 October 1, 2024 18:47
@paulf81 paulf81 self-assigned this Oct 1, 2024
@paulf81 paulf81 merged commit c131491 into NREL:parallel-model-rework Oct 7, 2024
8 checks passed
@paulf81 paulf81 deleted the feature/par_example_and_doc branch October 7, 2024 20:55
misi9170 added a commit that referenced this pull request Oct 7, 2024
* Initial work on a consistent parallel FLORIS model (#977)

* Copy for easier comparison and development.

* temp commit to save progress.

* Starting to build out new ParallelFlorisModel (name not yet fixed).

* Begin building tests.

* Cleanup and formatting.

* Now able to use run() in parallel.

* Switch to hidden _get_turbine_powers.

* Add backcompatibility with existing parallel model; print timings; add powers_only option.

* Example comparing timing.

* Formatting fixes.

* Test for return_turbine_powers_only flag.

* Backcompatibility in configuration.

* Appears there is no saving in calling run() twice---all overhead occurs again.

* Fix type hints; default for n_wind_condition_splits; remove mistakenly committed yaw optimization function.

* Tests for WindData objects; remove related comment.

* Tests control setpoints (and add bugfix). Also limit number of workers for testing.

* Update UncertainFlorisModel to work with new Parallel framework (#983)

* Update uncertain floris model to accept par floris

* Raise an error in old parallel floris model blocking passing in uncertain floris model

* Add an example of parallelized uncertain floris

* Expand parallel processing interface options (#985)

* Update example to profile more fully.

* Handling for pathos parallel processing package; comparison example to multiprocessing.

* Add test for pathos interface.

* Add concurrent handling.

* minor doc updates.

* add pathos requirement

* Clean up of new ParFlorisModel class (#986)

* Update example to profile more fully.

* Handling for pathos parallel processing package; comparison example to multiprocessing.

* Add test for pathos interface.

* Add concurrent handling.

* minor doc updates.

* add pathos requirement

* Change name to ParFlorisModel throughout.

* Add deprecation warning for ParallelFlorisModel.

* Add import; isort.

* Update example to use ParFlorisModel.

* Update tests; formatting.

* Fix uncertain-parallel example; add uncertain-parallel test.

* Update example docstring.

* Remove temporary examples from repository.

* Add examples and documentation for ParFlorisModel (#990)

* Add short docstring

* Minor comment change.

* Add approx model to docs

* A couple of rewordings and update to initial paragraph.

---------

Co-authored-by: paulf81 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement An improvement of an existing feature examples Changes to FLORIS examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants