-
Notifications
You must be signed in to change notification settings - Fork 156
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
FLORIS v4 #870
Commits on Dec 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e604f40 - Browse repository at this point
Copy the full SHA e604f40View commit details
Commits on Dec 8, 2023
-
Support 4 dimensional data arrays in Turbine and Farm classes (#60)
* Make changes such that test_ct passes in 4d * Set axial_induction() and test to 4d * fix test_rotor_velocity_yaw_correction to 4d * test_rotor_velocity_tilt_correction to 4d * test_compute_tilt_angles_for_floating_turbines 4d * Add simple cubature test which passes in 5d * Add test of cubit cubuture which passes in 4d * Convert cubature functions to 4d * Change sample to findex, n_findex * add N_FINDEX to conftest * convert farm and unit_tests to 4D * Delete non-input from docstring * Add test for 5d reverse rotation and ruff format * convert utilties and tests to 4d * Reset formatting * rem N_WIND_D/S in favor of N_FINDEX in conftest.py * Clean up some commented code * Clean up commented code * fix turbine_type_map in unit test * fix turbine_type_map size * revert wind speed and direction tests * fix doubled code block * Clean up comments * Clean up typos * A few more typos --------- Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for caffa01 - Browse repository at this point
Copy the full SHA caffa01View commit details -
Configuration menu - View commit details
-
Copy full SHA for c82e5f8 - Browse repository at this point
Copy the full SHA c82e5f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b766e15 - Browse repository at this point
Copy the full SHA b766e15View commit details -
Configuration menu - View commit details
-
Copy full SHA for cece44a - Browse repository at this point
Copy the full SHA cece44aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2211c3 - Browse repository at this point
Copy the full SHA a2211c3View commit details
Commits on Dec 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2379672 - Browse repository at this point
Copy the full SHA 2379672View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fa0192 - Browse repository at this point
Copy the full SHA 7fa0192View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ad51e0 - Browse repository at this point
Copy the full SHA 0ad51e0View commit details -
Convert EmG model to 4d structure (#62)
* update reg_tandem to mimic Jensen. * Partway through solve; commiting to realign with 4d. * Tandem reg test passing. * Updated reg tests; all pass. * Adding reg test for yaw_added_mixing; final values not yet in. * Removing 5th dim * Update print_test_values for 4d; add optional max findex to print. * yaw_added_recovery test updated to include default 0 gain and nonzero gain.
Configuration menu - View commit details
-
Copy full SHA for 3a1bf65 - Browse repository at this point
Copy the full SHA 3a1bf65View commit details
Commits on Dec 13, 2023
-
Merge branch 'develop' into 4d
# Conflicts: # floris/simulation/flow_field.py # tests/turbine_unit_test.py
Configuration menu - View commit details
-
Copy full SHA for d2e5763 - Browse repository at this point
Copy the full SHA d2e5763View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01251dd - Browse repository at this point
Copy the full SHA 01251ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe7fa64 - Browse repository at this point
Copy the full SHA fe7fa64View commit details -
Update FlorisInterface and subset of examples (#61)
* initial commit * first pass edit of 01 example * ruff formatting * bugfix * bugfix * Convert to 4d * correct docstrings * fix docstring * convert tests to 4d * back to gch * Update conditions to evaluate block to 4d * fix floris_interface test and add power tests * Add shape test * Update example 04 * Convert 05 * Update 06 to 4d * Update 09 to 4D * Update 18 to 4d * Update 21 to 4d * Update 22 to 4d * convert 24 to 4d * remove wind speed from call to PointsGrid * change PointsGrid to 4d * change call to set_tilt to pass n_findex * Update comment * start fixing * Remove todo * Remove todo * Clean up some comments * More comment clean up --------- Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f35326e - Browse repository at this point
Copy the full SHA f35326eView commit details
Commits on Dec 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e570543 - Browse repository at this point
Copy the full SHA e570543View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f4f5d1 - Browse repository at this point
Copy the full SHA 9f4f5d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3471efe - Browse repository at this point
Copy the full SHA 3471efeView commit details -
* update turbopark solver for 4D * update turbopark model for 4D * update turbopark regression test for 4D * Update regression test API --------- Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b04a523 - Browse repository at this point
Copy the full SHA b04a523View commit details -
Configuration menu - View commit details
-
Copy full SHA for f74b5d3 - Browse repository at this point
Copy the full SHA f74b5d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9346a8 - Browse repository at this point
Copy the full SHA c9346a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8632bb - Browse repository at this point
Copy the full SHA e8632bbView commit details
Commits on Dec 15, 2023
-
Describe 4D arrays in Background and Concepts docs (#64)
* Fix API in an example * Fix index in rotor visualization method * Fix inconsistent wind condition arrays * Describe 4D arrays in Getting Started docs * Clarify description of setting atmospheric conditions
Configuration menu - View commit details
-
Copy full SHA for 12830f9 - Browse repository at this point
Copy the full SHA 12830f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8074b3f - Browse repository at this point
Copy the full SHA 8074b3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d6a2c2 - Browse repository at this point
Copy the full SHA 4d6a2c2View commit details
Commits on Dec 18, 2023
-
Update multidimensional turbine model (#65)
* Update wind condition broadcast for turbine tests The inputs changed in conftest but this wasn’t updated * Update multidimensional turbine module for 4D arrays * Update multidimensional example API’s * Unit test bug fix * Remove a few missed extra dimensions
Configuration menu - View commit details
-
Copy full SHA for 728498e - Browse repository at this point
Copy the full SHA 728498eView commit details -
Merge pull request #764 from rafmudaf/4d
Convert core data structures and tools to use 4D arrays
Configuration menu - View commit details
-
Copy full SHA for caf5532 - Browse repository at this point
Copy the full SHA caf5532View commit details
Commits on Dec 29, 2023
-
Replace Cp with power in turbine definition and throughout FLORIS (#765)
* add power to 5MW model, matches https://github.com/NREL/floris/blob/main/floris/turbine_library/nrel_5MW.yaml with extension for before cut in and after cut out. Rename thrust field. * Removing Cp interp and replacing with direct power interp; updating thrust_coefficient key name. * Convert to W for power_interp; remove ref air density from power calc (tests need updating yet). * Minor updates for plot axes---contains temporary limitation to NREL 5MW turbine only, will remove prior to merge into v4 branch. * Updating 15mw based on https://github.com/IEAWindTask37/IEA-15-240-RWT/blob/master/Documentation/IEA-15-240-RWT_tabular.xlsx * 10mw updated. * Updating turbine curve conversion utility and example. * Utility for converting from v3 turbine models to v4. * Ruff and isort. * Changing names to check out v3 versions. * Renaming again... * Converting old models over. * So that tests run, using v4 5MW. * Updates to test_build_turbine_dict. * Updating conftest, test_power() to reflect absolute power in turbine yaml. * air density removed from power() calls in reg tests. * Reinstating accidentally overwritten file. * Convert from `ref_density_cp_ct` to `ref_air_density`. * `ref_tilt` replaces `ref_tilt_cp_ct` * Ruff, isort; remove AIR_DENSITY from turbine_unit_test.test_power(). * Clearing empty lines. * Check for smoothness; not yet passing `smooth enough` test. * Tests passing for smoothness. * Converter prints warning if nonsmooth; added handling for no R4. * Update build_turbine_dict test for clarity and simplicity. Ruff, isort. * Bugfixes in example after semantic changes to build_turbine_dict. * clean up example, remove deprecated inputs check in favor of generic key errors.
Configuration menu - View commit details
-
Copy full SHA for 98e2fae - Browse repository at this point
Copy the full SHA 98e2faeView commit details
Commits on Jan 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ec2d4d9 - Browse repository at this point
Copy the full SHA ec2d4d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e877d70 - Browse repository at this point
Copy the full SHA e877d70View commit details
Commits on Jan 10, 2024
-
Add an interface option for turbine operation model definitions (#770)
* add power to 5MW model, matches https://github.com/NREL/floris/blob/main/floris/turbine_library/nrel_5MW.yaml with extension for before cut in and after cut out. Rename thrust field. * Removing Cp interp and replacing with direct power interp; updating thrust_coefficient key name. * Convert to W for power_interp; remove ref air density from power calc (tests need updating yet). * Minor updates for plot axes---contains temporary limitation to NREL 5MW turbine only, will remove prior to merge into v4 branch. * Updating 15mw based on https://github.com/IEAWindTask37/IEA-15-240-RWT/blob/master/Documentation/IEA-15-240-RWT_tabular.xlsx * 10mw updated. * Updating turbine curve conversion utility and example. * Utility for converting from v3 turbine models to v4. * Ruff and isort. * Changing names to check out v3 versions. * Renaming again... * Converting old models over. * So that tests run, using v4 5MW. * Updates to test_build_turbine_dict. * Updating conftest, test_power() to reflect absolute power in turbine yaml. * air density removed from power() calls in reg tests. * Reinstating accidentally overwritten file. * Convert from `ref_density_cp_ct` to `ref_air_density`. * `ref_tilt` replaces `ref_tilt_cp_ct` * Ruff, isort; remove AIR_DENSITY from turbine_unit_test.test_power(). * Clearing empty lines. * Check for smoothness; not yet passing `smooth enough` test. * Tests passing for smoothness. * Converter prints warning if nonsmooth; added handling for no R4. * Update build_turbine_dict test for clarity and simplicity. Ruff, isort. * Bugfixes in example after semantic changes to build_turbine_dict. * Moving turbine into its own simulation directory; updating names of interp functions. * SimpleTurbine power module. * Turbine submodule pieces. * Added thrust coefficient to SimpleTurbine. * Adding extra arguments to Ct(), power(), and axial_induction(). * Updating turbine_unit_test for new layout. * Add handling for different model types. * cosine loss model option, but currently matches simple. * Moving velocities to own file (may need renaming). * Temp; runs, still todo items for power(). * Now passing all the way through the power calculation. * Updating thrust model to match power. * Update imports in tests. * Passing arguments as kwargs. * cosine loss model; move various turbine parameters inside power_thrust_table; call power() and thrust_coefficient() with kwargs. * Update tests calling power; turbine model structure. * emg reg tests failing.' * Jensen reg passes. * TB reg tests pass. * CC, gauss reg tests good. * Fix bug in how tilt_angles are passed through. * Turbine building utilities updated. * removing unnecessary attributes from Farm class.' * Updated axial_induction() keywords for consistency. * Note to return to axial_induction() model. * rename rotor_effective_velocity.py * Move rotor velocity tests to individual module. * tests for air density correction. * add base class for turbine models; add tests. * init test passes. * test_power, test_Ct now passing. * axial_induction passes. * Remove ref_tilt argument from Ct() * isort, ruff. * Remove multidim utilities and their imports. * working through example 30 to go through full multidim example. * example 30 now runs. Can likely remove commented out code, but will leave for the time being and clean up later. * 31 now runs. * isort. * End of file. * Moving multidim functionality onto turbine.py * Remove turbine_multi_dim.py * Missed a reference... * ruff, isort. * removing unneeded TODOs. * moving turbine utilities. * Move multidim selector to utilities, model map to top of turbine.py * Rename power_interp power_function throughout. * comments for turbine.py * Adding descriptions for the turbine submodels. * fix end of file. * Disclaimers and copyrights. * removing sorting of uneeded properties from full_flow solvers. * Inherit from correct base class. * Turbine library updates for examples 17 and 18. * Example 24. * ex. 33. * ruff. * Return nrel_5MW.yaml to converted (rather than updated) version. * Remove unused code * Remove extra lines at end of file * Move rotor velocity module up to floris.simulation * Consolidate turbine models into one module * Move turbine preprocessing to floris.turbine_library * Fix line length linting and isort errors * Update API for turbine previewer * Prevent test file from being exported * Bug fix in example * Remove duplicate code * Rename Farm setup function to reflect the data * Move axial_induction functionality to submodels; propagate changes. * add axial induction model tests. * Rename Ct functions throughout. * Update fi method call. * Line length. * Missed the constructors. * Rename to . * Remove unused library in dependencies This was previously used for the multidimension turbine, but it has since been consolidated and flatten_dict isn't used * Remove unused import * Fix incorrect type hints --------- Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8e6fb6b - Browse repository at this point
Copy the full SHA 8e6fb6bView commit details
Commits on Jan 16, 2024
-
Update reference wind turbines in the default turbine library (#771)
* add power to 5MW model, matches https://github.com/NREL/floris/blob/main/floris/turbine_library/nrel_5MW.yaml with extension for before cut in and after cut out. Rename thrust field. * Removing Cp interp and replacing with direct power interp; updating thrust_coefficient key name. * Convert to W for power_interp; remove ref air density from power calc (tests need updating yet). * Minor updates for plot axes---contains temporary limitation to NREL 5MW turbine only, will remove prior to merge into v4 branch. * Updating 15mw based on https://github.com/IEAWindTask37/IEA-15-240-RWT/blob/master/Documentation/IEA-15-240-RWT_tabular.xlsx * 10mw updated. * Updating turbine curve conversion utility and example. * Utility for converting from v3 turbine models to v4. * Ruff and isort. * Changing names to check out v3 versions. * Renaming again... * Converting old models over. * So that tests run, using v4 5MW. * Updates to test_build_turbine_dict. * Updating conftest, test_power() to reflect absolute power in turbine yaml. * air density removed from power() calls in reg tests. * Reinstating accidentally overwritten file. * Convert from `ref_density_cp_ct` to `ref_air_density`. * `ref_tilt` replaces `ref_tilt_cp_ct` * Ruff, isort; remove AIR_DENSITY from turbine_unit_test.test_power(). * Clearing empty lines. * Check for smoothness; not yet passing `smooth enough` test. * Tests passing for smoothness. * Converter prints warning if nonsmooth; added handling for no R4. * Update build_turbine_dict test for clarity and simplicity. Ruff, isort. * Bugfixes in example after semantic changes to build_turbine_dict. * Moving turbine into its own simulation directory; updating names of interp functions. * SimpleTurbine power module. * Turbine submodule pieces. * Added thrust coefficient to SimpleTurbine. * Adding extra arguments to Ct(), power(), and axial_induction(). * Updating turbine_unit_test for new layout. * Add handling for different model types. * cosine loss model option, but currently matches simple. * Moving velocities to own file (may need renaming). * Temp; runs, still todo items for power(). * Now passing all the way through the power calculation. * Updating thrust model to match power. * Update imports in tests. * Passing arguments as kwargs. * cosine loss model; move various turbine parameters inside power_thrust_table; call power() and thrust_coefficient() with kwargs. * Update tests calling power; turbine model structure. * emg reg tests failing.' * Jensen reg passes. * TB reg tests pass. * CC, gauss reg tests good. * Fix bug in how tilt_angles are passed through. * Turbine building utilities updated. * removing unnecessary attributes from Farm class.' * Updated axial_induction() keywords for consistency. * Note to return to axial_induction() model. * rename rotor_effective_velocity.py * Move rotor velocity tests to individual module. * tests for air density correction. * add base class for turbine models; add tests. * init test passes. * test_power, test_Ct now passing. * axial_induction passes. * Remove ref_tilt argument from Ct() * isort, ruff. * Remove multidim utilities and their imports. * working through example 30 to go through full multidim example. * example 30 now runs. Can likely remove commented out code, but will leave for the time being and clean up later. * 31 now runs. * isort. * End of file. * Moving multidim functionality onto turbine.py * Remove turbine_multi_dim.py * Missed a reference... * ruff, isort. * removing unneeded TODOs. * moving turbine utilities. * Move multidim selector to utilities, model map to top of turbine.py * Rename power_interp power_function throughout. * comments for turbine.py * Adding descriptions for the turbine submodels. * fix end of file. * Disclaimers and copyrights. * removing sorting of uneeded properties from full_flow solvers. * Inherit from correct base class. * Turbine library updates for examples 17 and 18. * Example 24. * ex. 33. * ruff. * Return nrel_5MW.yaml to converted (rather than updated) version. * Bugfix: include generator efficiency in power calculation. * updated defs based on FAST data. * Include correct efficiency, coning-corrected rotor diameter. * Moving into subdirs. * remove test for x_20; add symlinks for nrel_5mw legacy and converted. * Update conftests; many reg tests failing. * Updating power outputs in turbine unit tests. * wake model reg tests updated. * fi, none reg tests updated. * Remove temporary filter in 18; update rotor diameter in 32. * Rename to converted_from_v3 for clarity. * Remove unused code * Remove extra lines at end of file * Move rotor velocity module up to floris.simulation * Consolidate turbine models into one module * Move turbine preprocessing to floris.turbine_library * Fix line length linting and isort errors * Update API for turbine previewer * Prevent test file from being exported * Bug fix in example * Remove duplicate code * Rename Farm setup function to reflect the data * Move axial_induction functionality to submodels; propagate changes. * add axial induction model tests. * Rename Ct functions throughout. * Update fi method call. * Line length. * Missed the constructors. * Rename to . * Remove unused library in dependencies This was previously used for the multidimension turbine, but it has since been consolidated and flatten_dict isn't used * Remove unused import * Fix incorrect type hints * redeleting files that got mixed up on v4 merge. * Incorporating electrical efficiency. * Store legacy and converted v3 NREL 5MWs for testing. * Remove archived legacy v3 models; converted models; and copies of updated models. * Update floating turbine examples to new definition data. * Update tests to avoid need for extra data files; currently fails due to data disconnect; update defaults in build_cosine_loss_turbine_dict to match updated NREL 5MW. * Remove unneeded turbine models for testing; update v3 test data to match v4 NREL 5MW model and pass tests. * Update turbine previewer with new turbine paths * provide url to public data. --------- Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e08f266 - Browse repository at this point
Copy the full SHA e08f266View commit details
Commits on Jan 25, 2024
-
Adds classes to structure wind energy data for FLORIS model (#775)
* move files around to get started * move files around to get started * ignore unused in __init__ files * Consolidate wind rose and time series into one module * Update init * Update tests * Add unpack functions * Add grid and unpack tests * Small refactor * Add resample function * Test resample * Add plot wind rose function * Add new wind rose usage example * Delete old code * add super class to import * Add a super class and inheritance * Add wind_data to reinitialize (also ruffing) * Show example of reinit off wind_data objects * Update how compute 0 freq works * Test computing all cases * add n_findex calculation and test * Add unpack_freq function * Get aep using wind data * Move unpack_for functions to super class * simplify get_farm_AEP_with_wind_data * Add docstrings * bugfix * Finalize example * Rename module file and base class * Add description to example explaining plan for updates. * providing unpack() on base class; renaming example. * Inheritance clarified; some cleanup. * Remove copy()s (can point to same memory). * Small fixes throughout. * Python back compatibility type-hinting issue. * Maintain consistent formatting This preserves the style defined in v3 style guide (#292) * Spell check * Remove outdated comments * Expand docs for wind data unit tests * Add dimensions to doc string * Add context to to_wind_rose test comments * Add error to reinitialize * Explain what happens in default cases for WindRose * Rename price to value * Add check on ti and value * Fix bin minimum * remove wind data import * Import WindDataBase correctly * Spell check and formatting --------- Co-authored-by: misi9170 <[email protected]> Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 420fb0f - Browse repository at this point
Copy the full SHA 420fb0fView commit details
Commits on Jan 29, 2024
-
Remove small variations in above rated power (#784)
* Remove small variations in above rated power * Make matching change in conftest * Updating floating turbine examples to match 5MW in turbine_library. * Update descriptions for clarity. --------- Co-authored-by: misi9170 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1eb76b1 - Browse repository at this point
Copy the full SHA 1eb76b1View commit details
Commits on Feb 3, 2024
-
Convert turbulence intensity from single value to n_findex length arr…
…ay (#782) * Convert turbulence_intensity to tubulence_intensities throughout the code and refactor all code to expect turbulence_intensities to be an array and not a float * Add additional tests of turbulence intensity to confirm correct behavior of new features * Complete WindRose and TimeSeries handling of turbulence intensities * Add helper functions to WindRose and TimeSeries which allow turbulence intensities to be generated, rather than provided, as a function of wind directions and wind speeds * Add additional examples of usage --------- Co-authored-by: misi9170 <[email protected]> Co-authored-by: Rafael M Mudafort <[email protected]> Co-authored-by: Eric Simley <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 61e1f13 - Browse repository at this point
Copy the full SHA 61e1f13View commit details
Commits on Feb 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2edfb8e - Browse repository at this point
Copy the full SHA 2edfb8eView commit details -
* Establishing op model framework. * First tests written; currently failing. * Default behavior working. * Rough model and tests. * Slight improvement of docstring (still needs work). * ruff. * Add SimpleDeratingTurbine to TURBINE_MODEL_MAP * start derating example * Add derated inputs * Add power_setpoints to calculate wake * Remove pure formatting changes * Remove pure formatting changes * correct ti to array * Add power_setpoints attribute and functions * Call set_power_setpoints function * Initialize power_setpoints to a very large number * Passes tests, new example still not running. * power_setpoints, air_density propagated through turbine function calls. * Reg tests updated to new arguments. * Update calls to thrust_coefficient() and axial_induction(). * Test example a bit more built out. * Mixed model; single location for max power setpoint. * Ruff, isort. * Test mixed model. * Mixed model in example." * Allow mixed None and float values to be passed for power_setpoints. * Remove temp code * Propagating single default value. * Minor cleanup. * Example improvements. --------- Co-authored-by: misi9170 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cd55d8b - Browse repository at this point
Copy the full SHA cd55d8bView commit details -
Validate and test wind direction and wind speed (#793)
* Adding to the wind_direction validator a test that it is 1D * Add a wind_speed validator to test that it is 1D and the same length as wind_direction * Adds test to confirm that making these errors in reinitialize raises value errors. * Fixing regression test that didn't conform to this standard
Configuration menu - View commit details
-
Copy full SHA for f149309 - Browse repository at this point
Copy the full SHA f149309View commit details
Commits on Feb 20, 2024
-
Add support to shut off turbines (#799)
* Add disable turbine to floris_interface * Add to calculate no wake * Add example case * Add testing * Add an additional test * fix comment * uncomment line * Add test for yaw_angles passed. --------- Co-authored-by: misi9170 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bd3a6f8 - Browse repository at this point
Copy the full SHA bd3a6f8View commit details -
Update yaw and layout optimization tools for 4D (#790)
* update yaw opt base to 4D, introducing ws_array where necessary * update yaw opt SR to 4D, introducing ws_array where necessary * update yaw opt scipy to 4D * update yaw opt geometric to 4D * update yaw opt tools to 4D * update layout opt to 4D * update yaw optimization examples * update layout optimization examples * update git workflow to re-include optimization examples * adding example 12 back to the workflow exclusion list until parallel interface is updated * simplifying enumerate output * update parallel computing interface to 4d * update parallel yaw optimization example for 4d * remove layout symmetry code for optimization * add ti_array to optimization where needed * remove unneeded code in example * Formatting fix * updated findex labeling and added missing turbulence_intensities to reinit functions --------- Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 12e3166 - Browse repository at this point
Copy the full SHA 12e3166View commit details -
[BUGFIX] Error when yaw angles are used with TurbOPark (#808)
Co-authored-by: misha <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 69a2f42 - Browse repository at this point
Copy the full SHA 69a2f42View commit details
Commits on Feb 21, 2024
-
Change from Apache to BSD 3-clause license (#810)
* Update license file to bsd * Update setup file to bsd * Update README.md * Remove header block everywhere * Fix end of file * Use a consistent format for beginning files #810 (comment) * Wrap lines in license statements --------- Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 37f336e - Browse repository at this point
Copy the full SHA 37f336eView commit details -
[BUGFIX] Disable wake steering secondary effects for TurbOPark (#813)
* Raise NotImplementedErrors instead of running unvalidated secondary effects. * remove variables that are no longer used.
Configuration menu - View commit details
-
Copy full SHA for d4c6a1f - Browse repository at this point
Copy the full SHA d4c6a1fView commit details
Commits on Feb 22, 2024
-
Clarify turbine definition terms (#815)
* pP -> cosine_loss_exponent_yaw throughout. * pT -> cosine_loss_exponent_tilt throughout. * Remove unused generator_efficiency key on turbine definitions. * Comments updated to better explain the role of the cosine_loss_exponent_yaw. * ruff.
Configuration menu - View commit details
-
Copy full SHA for 93cb7b8 - Browse repository at this point
Copy the full SHA 93cb7b8View commit details -
Support multidimensional turbine definitions in all wake models (#812)
* Allow cc solver to accept multidim conditions. * Emgauss runs with mutlidim conditions. * Remove multidim_cp_ct option. * Remove references to multidim_cp_ct wake model. * Add multidim capabilities to full_flow solvers. * Turbopark solver compatibility. * add parameters for other models to multidim input yaml for exposition. * Add regression tests for full flow solvers * CC full flow solver bug fix --------- Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8171bff - Browse repository at this point
Copy the full SHA 8171bffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 308f176 - Browse repository at this point
Copy the full SHA 308f176View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62fdbe1 - Browse repository at this point
Copy the full SHA 62fdbe1View commit details
Commits on Feb 23, 2024
-
Remove unused code from floris.tools, add optimization reg tests (#819)
* remove legacy optimization code * remove v2 legacy reader * remove interface_utilities - show_params, get_params, etc. * remove rews code * remove example exceptions from CI * remove outdated example 08 * add serial refine regression test * add geometric yaw regression test * add scipy yaw opt regression test * add scipy layout opt regression test * add parallel computing interface regression test * updating testing names to correct test types * remove streamlit example * combine yaw reg tests into one test file * Remove references to deleted files * Use common settings for similar tests --------- Co-authored-by: Rafael M Mudafort <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for af04d66 - Browse repository at this point
Copy the full SHA af04d66View commit details
Commits on Feb 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d3631fa - Browse repository at this point
Copy the full SHA d3631faView commit details
Commits on Feb 27, 2024
-
Move FlorisInterface .reinitialize() / .calculate_wake() to .set() / …
….run() (#823) * Main infrastrcuture for set() -> run() paradigm on FlorisInterface. * calculate plane methods updated; 02 example runs. * Ruff. * Updating examples that called reinitialize() and calculate_wake() directly. * Update AEP methods * yaw optimizer updates, and simpler yaw opt examples. * Examples running with get_farm_AEP. * Layout optimizers. * update reinitialize calls in sample_velocity_deficit_profiles. * Initial working implementation; update to follow. * minimize unnecessary set() calls. * tests for FlorisInterfacee updated; added reset_operation() method to FlorisInterface. * Simple docstrings added. * isort. * adding WindTIRose class, which includes wd, ws, and ti as wind rose dimensions * Fix a missed calculate_no_wake() call. * adding tests for WindTIRose * formatting wind data * Test set / run sequences * Update other test api’s * Fix line length * Small edits to comments * fixing wind rose example plots * Remove unused input args * Refactor and clean up * Bug fix in tests * Error if calculate_wake or reinitialize are used * Fix the bug in test_disable_turbines * Fix whitespace * Fix typo and docstrings * Update docstring * Fix formatting * Raise error if run() called on ParallelComputingInterface. --------- Co-authored-by: misi9170 <[email protected]> Co-authored-by: Eric Simley <[email protected]> Co-authored-by: Paul <[email protected]> Co-authored-by: ejsimley <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dc1b570 - Browse repository at this point
Copy the full SHA dc1b570View commit details
Commits on Mar 4, 2024
-
Raise informative errors if v3 input files passed in (#829)
* Check floris input file for v3 fields. * turbine checks for v3. * convert to v4 compatibility to avoid v3 deprecation errors. * Add utility for converting floris input files from v3 to v4. * Ruff and isort. * absolute power copied in from nrel_5MW. * Explain user needs to update their multidim csv file. * Errors/printouts for attempting to convert multidimensional turbines.
Configuration menu - View commit details
-
Copy full SHA for 57ec83c - Browse repository at this point
Copy the full SHA 57ec83cView commit details
Commits on Mar 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8ac93bf - Browse repository at this point
Copy the full SHA 8ac93bfView commit details -
[Bugfix] Cast yaw angles to np.ndarray on set (#828)
* Add tests of setting yaw * Move to the correct file * fix dimensions * numpy conversion on passed yaw_angles. * Tests for power setpoints, disabling turbines, combinations. * Switch to setter methods for yaw angles and power setpoints. --------- Co-authored-by: misi9170 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a60060c - Browse repository at this point
Copy the full SHA a60060cView commit details
Commits on Mar 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ef87def - Browse repository at this point
Copy the full SHA ef87defView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3517d2c - Browse repository at this point
Copy the full SHA 3517d2cView commit details
Commits on Mar 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f17fd58 - Browse repository at this point
Copy the full SHA f17fd58View commit details
Commits on Mar 11, 2024
-
Add TI as input for calculate plane functions (#837)
* Add TI as input for calculate plane functions * Add to “with turbines” function * Add tests
Configuration menu - View commit details
-
Copy full SHA for 96384d0 - Browse repository at this point
Copy the full SHA 96384d0View commit details
Commits on Mar 12, 2024
-
Rename floris.simulation, floris.tools to floris.core, floris (#830)
* Rename floris.simulation to floris.core * Move floris.tools to top level * Propogate name change in floris/ * Rename FlorisInterface to Floris, Floris to Core # Conflicts: # floris/core/core.py * Rename core object on Floris * Update tests * Update a subset of examples * Rename floris.floris module to floris.floris_model * Update after mergre from v4 branch * Clean up * .floris -> .core * Update test nomenclature * Update profiling nomenclature * Update nomenclature * Update example 01 * Update example nomenclature * fi_subset -> fmodel_subset * fix fi_ instances * fix line length * isort * Update profiling * Update F841 locations * Update quality metrics * Old refs to simulation/ * Remove bad links to old tools folder * Examples FlorisInterface to FlorisModel updates * Update syntax and docstrings * Update documentation notebooks * Add TI as input for calculate plane functions * Add to “with turbines” function * Update getting started notebook * Update turbine previewer and notebook * Update API docs file references * Update README * isort * File and class name changes. * Rename instantiated XFlorisModel objects. * Added tests for unc+parallel model; currently failing. * Reconfigure get_turbine_powers on UncertaintyFlorisModel for external use; access from ParallelFlorisModel. * get_farm_AEP method updated and tested; remove cut_in and cut_out ws options. * Ruff. * Remove _load_local_floris_object function. * Conform to requirement to pass turbulence_intensities. --------- Co-authored-by: Paul <[email protected]> Co-authored-by: misi9170 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e31a4e9 - Browse repository at this point
Copy the full SHA e31a4e9View commit details
Commits on Mar 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b43c9c5 - Browse repository at this point
Copy the full SHA b43c9c5View commit details
Commits on Mar 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ecfe9f8 - Browse repository at this point
Copy the full SHA ecfe9f8View commit details
Commits on Mar 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ddadefa - Browse repository at this point
Copy the full SHA ddadefaView commit details -
Save WindData onto FlorisModel and simplify post-
run()
calls (#849)* Add functions to reshape turbine and farm power to wd x ws * Add tests of new wind rose functions * wind_data saved onto FlorisModel; functions partially built. * Update tests; rename _wind_data to wind_data since optimizers may need access. * 07 example updated (waked and no_wake match previous output). * Remove wind_data need from layout optimizers. * Bugfix; copy did not bring over wind_data." * Update examples 13, 15 * Removing unneeded methods. * Group hidden and outer get_turbine_powers methods. * Ruff and isort. * Add getter for wind_data. * Rename converters to be more explicit about output. * Updating tests. * Copy up docstring from hidden version. * Fix a couple more examples. * Fix scaling on uniform frequency. * ruff and isort. * Log warnings when freq not provided and test. * Update uncertain model for new paradigm * Add test of wind rose setting * bufgix * change _expanded suffix to _rose to avoid confusion in UncertainFlorisModel. * to_ methods specify class rather than suggested instantiation. --------- Co-authored-by: Paul <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 724f452 - Browse repository at this point
Copy the full SHA 724f452View commit details
Commits on Mar 26, 2024
-
Merge branch 'develop' into v4
# Conflicts: # docs/api_docs.md # docs/floris_101.ipynb # docs/wake_models.ipynb
Configuration menu - View commit details
-
Copy full SHA for 416d0b3 - Browse repository at this point
Copy the full SHA 416d0b3View commit details
Commits on Apr 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 614cffe - Browse repository at this point
Copy the full SHA 614cffeView commit details
Commits on Apr 4, 2024
-
Allow different turbine models as well as different power_thrust_mode…
…ls for each turbine. (#856)
Configuration menu - View commit details
-
Copy full SHA for 397d93c - Browse repository at this point
Copy the full SHA 397d93cView commit details -
Enabling layout optimization for value (#862)
* adding value functions to wind_data * adding functions to get expected and annual value in floris_model * including value objective in layout optimization * updating floris model integration tests for AVP * reg test for scipy layout opt with value * Fix docstring and a few spelling errors * Update docstring * updating scipy layout opt reg test results * typo fix * updating pyOptSparse layout optimization docstring --------- Co-authored-by: Paul <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 27fe153 - Browse repository at this point
Copy the full SHA 27fe153View commit details
Commits on Apr 5, 2024
-
[BUGFIX] set_operation_model ordering with layout (#867)
* Handling for order of set_operation model and setting layout. * ruff. * One more test added.
Configuration menu - View commit details
-
Copy full SHA for 99161f2 - Browse repository at this point
Copy the full SHA 99161f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53c1de2 - Browse repository at this point
Copy the full SHA 53c1de2View commit details -
Make set_operation method public (#869)
* Make set_operation public. * Add checks for valid setpoint lengths, tests.
Configuration menu - View commit details
-
Copy full SHA for f1e5324 - Browse repository at this point
Copy the full SHA f1e5324View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c24a9c - Browse repository at this point
Copy the full SHA 3c24a9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9da4cbb - Browse repository at this point
Copy the full SHA 9da4cbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0eb5f0a - Browse repository at this point
Copy the full SHA 0eb5f0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a6029c5 - Browse repository at this point
Copy the full SHA a6029c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c06ab6c - Browse repository at this point
Copy the full SHA c06ab6cView commit details
Commits on Apr 7, 2024
-
Clean up TODOs prior to v4 release (#876)
* remove unneeded TODOs * Move rotor_velocity_air_density_correction to rotor_velocity.py' * explicit about cosine term in velocity corrections for yaw and tilt. * self.yaw_opt is being used.
Configuration menu - View commit details
-
Copy full SHA for c0d457f - Browse repository at this point
Copy the full SHA c0d457fView commit details -
Build out v4 documentation (#860)
* Placeholder for Helix turbine operation model with test. * Ruff. * Placeholder for wake effect of Helix. * Added helix wake mixing and created two examples. * Added examples * Latest file updates * Updated v4 to work with helix * Make helix parameters tunable * Enabling helix tuning parameters * Conform with ruff formatting reqs. * Isort, end of file fixes. * helix_amplitudes into tests. * Take out actual tests of Helix to allow testing to pass; still to do to test Helix model." * Update example input files with enable_helix_added_recovery flag. * Added helix turbine tests * Added helix flow regression test * Minor reorganize and cleanup of Helix tests. * Added helix mixing to visualization tools * Added example showcasing helix functionality * Updated helix example * Deleted old helix examples * Added default helix tuning parameters for 5, 10 and 15MW turbine * Update floris_model.py Solve merge conflict between v4 and helix branch * Formatting. * Final tweaks to helix example * Fix merge error. * Remove carry-over from old package structure. * Name change from `helix` to `awc`, addition of `awc_modes`. * bug fix * Sort imports. * Remove extra mixing from awc in downstream turbines' wakes. * test build docs from branch. * test again. * Typo * test. * operation models user reference. * save * Placeholder for WindData documentation. * Ruff. * Updates to helix example, tests, and input files based on feedback * set_operation_model name switch * Started v3 to v4 conversion; described set run. * Start of explanation on conversion. * Minor changes to helix example * input files info. * Wind data, op models. * Trailing white space. * Minor improvements. * Typos * Added documentation on helix turbine model * Added documentation on helix added wake mixing * Finalize text on active wake mixing * Remove trailing whitespace. * Minor updates to Helix docs * save * remove comma after math * Add wind data notebook * Bug fix * Minor changes * Ignore examples within docs * Add jobs to automatically build out examples * Add script to convert examples to notebooks * Resolving final comments * trigger * Try to fix copy * Deleted commented code * Update example to use new set_operation_model method. * Minor improvements. * Fix headings * Helix example moved to examples_control_types * Force doc rebuild * More version updates * Fixed to autobuild * Don't test example converting script * Increase jupyter book timeout * Remove filedir lines * force book * Give more time * Added warnings when models other than EmGauss are used * Improve formatting * bugfix * more value discussion in wind_data docs notebook * Bugfix in check of awc and vel_model. * Handling for case when operation_model not specified; move tilt deflection examples to floating examples folder. * Fix whitespace issue * resave wind_data * Update _config.yml/g-tag * force build * fix turbine previewer * update landing page and installation. * Comments formatted in gch and nrel_5mw for docs printing. * Remove examples index in favor of automatic building. * floris.tools -> floris, floris.simulation -> floris.core * Point trigger back to develop. --------- Co-authored-by: Joeri Frederik <[email protected]> Co-authored-by: Frederik <[email protected]> Co-authored-by: jfrederik-nrel <[email protected]> Co-authored-by: Paul <[email protected]> Co-authored-by: Eric Simley <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0073dba - Browse repository at this point
Copy the full SHA 0073dbaView commit details
Commits on Apr 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 10c57ad - Browse repository at this point
Copy the full SHA 10c57adView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6fa817 - Browse repository at this point
Copy the full SHA c6fa817View commit details -
Configuration menu - View commit details
-
Copy full SHA for 921c98b - Browse repository at this point
Copy the full SHA 921c98bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27b67ab - Browse repository at this point
Copy the full SHA 27b67abView commit details -
Remove setpoints and wind condition specifics from calculate_XX_plane…
… methods (#868) * remove yaw angles argument; switch to deepcopies. * No longer allowed to pass wd, ws, ti---instead, specify a findex (or set a single ws, wd, ti). * Remove erroneous type hints. * update tests. * Ruff formatting. * Update examples. Note that previous calculate_XX_planes altered the rotor_diameters field on fmodel. * Update Helix viz. * calculate_horizontal_plane_with_turbines now consistent with calculate_horizontal_plane. * remove now-redundant check_wind_condition_for_viz * Clean up TODOs and docstrings.
Configuration menu - View commit details
-
Copy full SHA for 0e41d9b - Browse repository at this point
Copy the full SHA 0e41d9bView commit details -
Update Empirical Gaussian default deflection_rate (#875)
* deflection_rate = 22. * Update reg tests. * Update Helix reg test for new default deflection_rate.
Configuration menu - View commit details
-
Copy full SHA for b4d9d1e - Browse repository at this point
Copy the full SHA b4d9d1eView commit details
Commits on Apr 9, 2024
-
Improvements to WindRose resampling (#857)
* Resampling inplace (default true). * Change default for inplace to False; clean up slightly. * Wind rose plot defaults to bins specified. * Simplify plot() and resample() methods. * Missed a couple of places in renaming. * Change "resample" to aggregate and add a resample_by_interpolation * Better warnings * value error * typo * updating some wind_data docstrings * Add aggregation and interpolation functions * bugfix * Fix spelling * Update example 003 * But fix in plot * Fix plotting and nomenclature * Add to 03 example * Start fixing wind data * Re-add value functions to time series * Update wind data notebook * Add interpolated resampling to windTIrose * bugfix --------- Co-authored-by: Paul <[email protected]> Co-authored-by: Eric Simley <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b10d091 - Browse repository at this point
Copy the full SHA b10d091View commit details -
Configuration menu - View commit details
-
Copy full SHA for e72f7da - Browse repository at this point
Copy the full SHA e72f7daView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf8a338 - Browse repository at this point
Copy the full SHA bf8a338View commit details