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

FLORIS v4 #870

Merged
merged 84 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
e604f40
Update velocity average function
rafmudaf Dec 1, 2023
caffa01
Support 4 dimensional data arrays in Turbine and Farm classes (#60)
paulf81 Dec 8, 2023
c82e5f8
Swap wind direction and speed constants in tests
rafmudaf Dec 8, 2023
b766e15
Swap wind direction and speed in Grids
rafmudaf Dec 8, 2023
cece44a
Swap FlowField wind speeds and directions
rafmudaf Dec 8, 2023
a2211c3
Support 4D arrays in sequential solver
rafmudaf Dec 8, 2023
2379672
Update Jensen regression tests for 4D arrays
rafmudaf Dec 8, 2023
7fa0192
Add 4D array inputs to conftest
rafmudaf Dec 11, 2023
0ad51e0
Update GCH components and reg tests
rafmudaf Dec 11, 2023
3a1bf65
Convert EmG model to 4d structure (#62)
misi9170 Dec 11, 2023
d2e5763
Merge branch 'develop' into 4d
rafmudaf Dec 13, 2023
01251dd
Fix a couple of broken tests
rafmudaf Dec 13, 2023
fe7fa64
Fix broken regression tests
rafmudaf Dec 13, 2023
f35326e
Update FlorisInterface and subset of examples (#61)
paulf81 Dec 13, 2023
e570543
Update visualization methods and examples
rafmudaf Dec 14, 2023
9f4f5d1
Fix isort and ruff formatting
rafmudaf Dec 14, 2023
3471efe
Bug fix for error checking wind rose frequency
rafmudaf Dec 14, 2023
b04a523
Update TurbOPark model (#63)
bayc Dec 14, 2023
f74b5d3
Update None-model and FlorisInterface reg tests
rafmudaf Dec 14, 2023
c9346a8
Update Cumulative-Curl model, solver, and tests
rafmudaf Dec 14, 2023
e8632bb
Fix AEP example inputs
rafmudaf Dec 14, 2023
12830f9
Describe 4D arrays in Background and Concepts docs (#64)
rafmudaf Dec 15, 2023
8074b3f
Fix example API's
rafmudaf Dec 15, 2023
4d6a2c2
Disable CI for examples with tools dependency
rafmudaf Dec 15, 2023
728498e
Update multidimensional turbine model (#65)
rafmudaf Dec 18, 2023
caf5532
Merge pull request #764 from rafmudaf/4d
rafmudaf Dec 18, 2023
98e2fae
Replace Cp with power in turbine definition and throughout FLORIS (#765)
misi9170 Dec 29, 2023
ec2d4d9
Merge branch 'develop' into v4
rafmudaf Jan 5, 2024
e877d70
Update API in turbine previewer and docs notebook
rafmudaf Jan 5, 2024
8e6fb6b
Add an interface option for turbine operation model definitions (#770)
misi9170 Jan 10, 2024
e08f266
Update reference wind turbines in the default turbine library (#771)
misi9170 Jan 16, 2024
420fb0f
Adds classes to structure wind energy data for FLORIS model (#775)
paulf81 Jan 25, 2024
1eb76b1
Remove small variations in above rated power (#784)
paulf81 Jan 29, 2024
61e1f13
Convert turbulence intensity from single value to n_findex length arr…
paulf81 Feb 3, 2024
2edfb8e
[BUGFIX] Bad import in convert_turbine_v3_to_v4.py (#795)
misi9170 Feb 7, 2024
cd55d8b
Add de-rating op model (#783)
paulf81 Feb 7, 2024
f149309
Validate and test wind direction and wind speed (#793)
paulf81 Feb 7, 2024
bd3a6f8
Add support to shut off turbines (#799)
paulf81 Feb 20, 2024
12e3166
Update yaw and layout optimization tools for 4D (#790)
bayc Feb 20, 2024
69a2f42
[BUGFIX] Error when yaw angles are used with TurbOPark (#808)
misi9170 Feb 20, 2024
37f336e
Change from Apache to BSD 3-clause license (#810)
paulf81 Feb 21, 2024
d4c6a1f
[BUGFIX] Disable wake steering secondary effects for TurbOPark (#813)
misi9170 Feb 21, 2024
93cb7b8
Clarify turbine definition terms (#815)
misi9170 Feb 22, 2024
8171bff
Support multidimensional turbine definitions in all wake models (#812)
misi9170 Feb 22, 2024
308f176
Update multidimensional turbine model to use absolute power (#818)
bayc Feb 22, 2024
62fdbe1
Merge branch 'develop' into v4
misi9170 Feb 22, 2024
af04d66
Remove unused code from floris.tools, add optimization reg tests (#819)
bayc Feb 23, 2024
d3631fa
Add WindTIRose class with TI as a wind rose dimension (#824)
ejsimley Feb 22, 2024
dc1b570
Move FlorisInterface .reinitialize() / .calculate_wake() to .set() / …
rafmudaf Feb 27, 2024
57ec83c
Raise informative errors if v3 input files passed in (#829)
misi9170 Mar 4, 2024
8ac93bf
Collect all layout visualization tools in FLORIS (#805)
paulf81 Mar 6, 2024
a60060c
[Bugfix] Cast yaw angles to np.ndarray on set (#828)
paulf81 Mar 6, 2024
ef87def
Update uncertainty interface to 4d, new API (#821)
paulf81 Mar 7, 2024
3517d2c
Drive layout optimizations using WindData objects (#822)
paulf81 Mar 7, 2024
f17fd58
Require TI must be length n_findex in core code (#831)
paulf81 Mar 8, 2024
96384d0
Add TI as input for calculate plane functions (#837)
rafmudaf Mar 11, 2024
e31a4e9
Rename floris.simulation, floris.tools to floris.core, floris (#830)
rafmudaf Mar 12, 2024
b43c9c5
Add utilities for floris models (#840)
paulf81 Mar 20, 2024
ecfe9f8
Allow to fix yaw to nominal wind direction (#850)
paulf81 Mar 21, 2024
ddadefa
Add CSV reader for WindRose (#848)
paulf81 Mar 22, 2024
724f452
Save WindData onto FlorisModel and simplify post-`run()` calls (#849)
misi9170 Mar 22, 2024
416d0b3
Merge branch 'develop' into v4
rafmudaf Mar 26, 2024
614cffe
power_thrust_model -> operation_model. (#859)
misi9170 Apr 2, 2024
397d93c
Allow different turbine models as well as different power_thrust_mode…
misi9170 Apr 4, 2024
27fe153
Enabling layout optimization for value (#862)
ejsimley Apr 4, 2024
99161f2
[BUGFIX] set_operation_model ordering with layout (#867)
misi9170 Apr 5, 2024
53c1de2
Refactor examples (#843)
paulf81 Apr 5, 2024
f1e5324
Make set_operation method public (#869)
misi9170 Apr 5, 2024
3c24a9c
fixing datatype of value in wind_data; removing unnecessary AVP warni…
ejsimley Apr 5, 2024
9da4cbb
Add helix model operation mode (#842)
rafmudaf Apr 5, 2024
0eb5f0a
Update _config.yml/g--analytic tag
paulf81 Apr 5, 2024
a6029c5
Fix header for helix example
paulf81 Apr 5, 2024
c06ab6c
Add try/except to wind rose loader (#874)
paulf81 Apr 5, 2024
c0d457f
Clean up TODOs prior to v4 release (#876)
misi9170 Apr 7, 2024
0073dba
Build out v4 documentation (#860)
misi9170 Apr 7, 2024
10c57ad
Update README and links for converting from v3 to v4.
misi9170 Apr 8, 2024
c6fa817
Merge main back in.
misi9170 Apr 8, 2024
921c98b
Fix unresolved merge marks in README.
misi9170 Apr 8, 2024
27b67ab
Add merge/reduce FLORIS objects (#866)
paulf81 Apr 8, 2024
0e41d9b
Remove setpoints and wind condition specifics from calculate_XX_plane…
misi9170 Apr 8, 2024
b4d9d1e
Update Empirical Gaussian default deflection_rate (#875)
misi9170 Apr 8, 2024
b10d091
Improvements to WindRose resampling (#857)
misi9170 Apr 9, 2024
e72f7da
Add approximate FLORIS model (#877)
paulf81 Apr 9, 2024
bf8a338
Remove top comment line
paulf81 Apr 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions .github/workflows/check-working-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,28 @@ jobs:
error_found=0 # 0 is false
error_results="Error in example:"

# Run each Python script example
for i in *.py; do
# Now run the examples in root and subdirectories
echo "Running examples"
for d in . $(find . -type d -name "*examples*"); do
cd $d
echo "========================= Example directory- $d"
for i in *.py; do
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Running example- $i"

# Skip these examples since they have additional dependencies
if [[ $i == *15* ]]; then
continue
fi
if [[ $i == *19* ]]; then
continue
fi
# If "convert_examples" is in i, skip this script
if [[ $i == *"convert_examples"* ]]; then
continue
fi

if ! python $i; then
error_results="${error_results}"$'\n'" - ${i}"
error_found=1
if ! python $i; then
error_results="${error_results}"$'\n'" - ${i}"
error_found=1
fi
done
if [ "$d" != "." ]; then
cd ..
fi

done

if [[ $error_found ]]; then
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/deploy-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@ jobs:
run: |
pip install -e ".[docs]"

# Make a copy of the examples folder within the docs folder
- name: Copy examples to docs
working-directory: ${{runner.workspace}}/floris/
run: |
rsync -av examples/ docs/examples
ls docs/examples

# Run the script examples/_convert_examples_to_notebooks.py
- name: Convert examples to notebooks
working-directory: ${{runner.workspace}}/floris/docs/examples/
run: |
# Print the working directory
pwd

# Show the contents
ls

python _convert_examples_to_notebooks.py

# Build the book
- name: Build the book
working-directory: ${{runner.workspace}}/floris/docs/
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ pip-wheel-metadata
.idea
.vscode

# Documentation notebooks
!docs/*.ipynb

# The examples folder within docs
docs/examples

# Documentation output
_site/
.jekyll-cache/
Expand Down
215 changes: 20 additions & 195 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,201 +1,26 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
BSD 3-Clause License

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
Copyright (c) 2024, Alliance for Sustainable Energy LLC, All rights reserved.

1. Definitions.
Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
* Redistributions of source code must retain the above copyright notice, this list of conditions
and the following disclaimer.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
* Redistributions in binary form must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or other materials provided
with the distribution.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
* Neither the name of the copyright holder nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior written permission.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
Loading
Loading