forked from OpenFAST/openfast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from andrew-platt/f/noise
Merged in the updated dev branch from OpenFAST
- Loading branch information
Showing
254 changed files
with
114,924 additions
and
57,710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
|
||
**Complete this sentence** | ||
THIS PULL REQUEST __ [IS/IS NOT] __ READY TO MERGE | ||
<!-- Is this pull request ready to be merged? --> | ||
<!-- i.e. tests pass or are expected to fail; all development is finished; appropriate documentation is included. --> | ||
<!-- If not but opening the pull request will facilitate development, make it a "draft" pull request --> | ||
|
||
**Feature or improvement description** | ||
<A clear and concise description of the new code.> | ||
<!-- A clear and concise description of the new code. --> | ||
|
||
**Related issue, if one exists** | ||
<Link to a related GitHub Issue.> | ||
<!-- Link to a related GitHub Issue. --> | ||
|
||
**Impacted areas of the software** | ||
<List any modules or other areas which should be impacted by this pull request. This helps to determine the verification tests.> | ||
<!-- List any modules or other areas which should be impacted by this pull request. This helps to determine the verification tests. --> | ||
|
||
**Additional supporting information** | ||
<Add any other context about the problem here.> | ||
<!-- Add any other context about the problem here. --> | ||
|
||
**Test results, if applicable** | ||
<Add the results from unit tests and regression tests here along with justification for any failing test cases.> | ||
<!-- Add the results from unit tests and regression tests here along with justification for any failing test cases. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,69 @@ | ||
#!/bin/bash | ||
|
||
cd /openfast | ||
verbosecommand() { echo ">>> $1" && eval $1 && echo "<<<"; } | ||
|
||
git fetch origin ${GITHUB_REF}:CI | ||
git checkout CI | ||
git submodule update | ||
# Configure Bash to exit if any command returns an error | ||
set -e | ||
|
||
verbosecommand "cd /openfast" | ||
|
||
repo="OpenFAST" | ||
echo "GITHUB_EVENT_NAME: ${GITHUB_EVENT_NAME}" | ||
if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]; then | ||
repo=${GITHUB_ACTOR} | ||
fi | ||
# Create a branch "CI" at the current commit from the GH Actor's fork. | ||
verbosecommand "git fetch https://github.com/${repo}/openfast ${GITHUB_REF}:CI" | ||
verbosecommand "git checkout CI" | ||
verbosecommand "git submodule update" | ||
|
||
# Display the current git info | ||
echo git-status from openfast: | ||
git status | ||
echo "*** git-status from openfast:" | ||
verbosecommand "git status" | ||
|
||
echo git-log from openfast: | ||
git log -1 | ||
echo "*** git-log from openfast:" | ||
verbosecommand "git log -1" | ||
|
||
cd /openfast/reg_tests/r-test | ||
echo git-status from r-test: | ||
git status | ||
verbosecommand "cd /openfast/reg_tests/r-test" | ||
echo "*** git-status from r-test:" | ||
verbosecommand "git status" | ||
|
||
echo git-log from r-test: | ||
git log -1 | ||
echo "*** git-log from r-test:" | ||
verbosecommand "git log -1" | ||
|
||
cd /openfast | ||
verbosecommand "cd /openfast" | ||
|
||
# Display the differences between this commit and `dev` | ||
echo git-diff from ${GITHUB_REF} to dev: | ||
git diff dev | ||
echo "*** git-diff from ${GITHUB_REF} to dev:" | ||
verbosecommand "git diff dev --numstat" | ||
|
||
# Move into the "build" directory, remove the old reg tests, and compile | ||
cd /openfast/build | ||
rm -rf reg_tests | ||
cmake .. | ||
make -j4 install | ||
verbosecommand "cd /openfast/build" | ||
verbosecommand "rm -rf reg_tests" | ||
verbosecommand "cmake .." | ||
verbosecommand "make -j4 install" | ||
|
||
# Run the tests | ||
|
||
# NWTC Library tests | ||
ctest -VV -R nwtc_library_utest | ||
verbosecommand "ctest -VV -R nwtc_library_utest" | ||
|
||
# BeamDyn-specific tests | ||
ctest -VV -j7 -R bd_ | ||
ctest -VV -R beamdyn_utest | ||
verbosecommand "ctest -VV -j7 -R bd_" | ||
verbosecommand "ctest -VV -R beamdyn_utest" | ||
|
||
# OLAF free vortex wake tests | ||
ctest -VV -R fvw_utest | ||
|
||
# OpenFAST linearization tests | ||
# Dont run these in parallel, copying the case files can fail in a race condition | ||
ctest -VV -L linear | ||
# Exclude the Ideal_Beam test cases | ||
# - They fail consistently in the Docker container when run on GitHub, | ||
# but pass everywhere else including running the same Docker image locally | ||
verbosecommand "ctest -VV -L linear -E Ideal" | ||
|
||
# Subset of OpenFAST regression tests; do not run | ||
## - 9, 16 because they're very sensitive | ||
## - 19, 20 because theyre too long | ||
## - 17, 22, 23 becuase we dont know why they fail :( | ||
ctest -VV -j8 -I 1,1,1,2,3,4,5,6,7,8,10,11,12,13,14,15,18,21,24,25 | ||
## - 17, 22, 23 because we dont know why they fail :( | ||
verbosecommand "ctest -VV -j8 -I 1,1,1,2,3,4,5,6,7,8,10,11,12,13,14,15,18,21,24,25,26,27,28" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ vs-build/ | |
.fortls | ||
# backup files | ||
*.asv | ||
~$*.xlsx | ||
|
||
# LaTeX compiling files | ||
*.aux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "reg_tests/r-test"] | ||
path = reg_tests/r-test | ||
url = https://github.com/openfast/r-test.git | ||
url = https://github.com/OpenFAST/r-test.git | ||
[submodule "unit_tests/pfunit"] | ||
path = unit_tests/pfunit | ||
url = https://github.com/Goddard-Fortran-Ecosystem/pFUnit.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,6 @@ | |
# Required | ||
version: 2 | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
formats: | ||
- htmlzip | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.math { | ||
text-align: left; | ||
} | ||
.eqno { | ||
float: right; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
breathe==4.4.0 | ||
docutils==0.13.1 | ||
Pygments==2.2.0 | ||
pyparsing==2.1.9 | ||
Sphinx==1.5.2 | ||
sphinxcontrib-bibtex==0.3.4 | ||
sphinxcontrib-doxylink==1.3 | ||
sphinx_rtd_theme==0.3.1 | ||
breathe>=4.4 | ||
docutils>=0.13 | ||
Pygments>=2.2 | ||
pyparsing>=2.1 | ||
Sphinx>=1.8.5 | ||
sphinxcontrib-bibtex>=0.3.3 | ||
sphinxcontrib-doxylink>=1.3 | ||
sphinx_rtd_theme>=0.3 | ||
requests[security] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. _Acknowledgments: | ||
|
||
Acknowledgments | ||
=============== | ||
|
||
This work was authored by the National Renewable Energy Laboratory, | ||
operated by Alliance for Sustainable Energy, LLC, for the U.S. | ||
Department of Energy (DOE) under Contract No. DE-AC36-08GO28308. Funding | ||
provided by the U.S. Department of Energy Office of Energy Efficiency | ||
and Renewable Energy Wind Energy Technologies Office. The views | ||
expressed in the article do not necessarily represent the views of the | ||
DOE or the U.S. Government. The U.S. Government retains and the | ||
publisher, by accepting the article for publication, acknowledges that | ||
the U.S. Government retains a nonexclusive, paid-up, irrevocable, | ||
worldwide license to publish or reproduce the published form of this | ||
work, or allow others to do so, for U.S. Government purposes. | ||
|
||
The authors are also grateful to the Big Adaptive Rotor program for | ||
supporting the development of this software. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. _Acronyms: | ||
|
||
List of Symbols | ||
=============== | ||
|
||
+-----------------------------+---------------------------------------+ | ||
| BEM | blade-element momentum | | ||
+-----------------------------+---------------------------------------+ | ||
| CFD | computational fluid dynamics | | ||
+-----------------------------+---------------------------------------+ | ||
| DOE | U.S. Department of Energy | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`F_v` | core radius factor | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`t` | time | | ||
+-----------------------------+---------------------------------------+ | ||
| FVW | free vortex wake | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`N` | number of rotor revolutions before | | ||
| | wake cutoff condition | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\vec{r}` | vector between point of interest and | | ||
| | vortex segment | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\vec{r}(\psi,\zeta)` | position vector of Lagrangian markers | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`r_c` | core radius | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`r_{c0}` | initial core radius | | ||
+-----------------------------+---------------------------------------+ | ||
| OLAF | cOnvecting LAgrangian Filaments | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\alpha` | numerical constant :math:`=1.25643` | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\Gamma` | circulation strength | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\delta` | measure of viscous diffusion | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\epsilon` | measure of strain | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\Delta \psi` | step size for blade rotation | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\Omega` | rotational speed of wind turbine | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\zeta` | vortex wake age | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\zeta_0` | vortex wake age offset | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\nu` | kinematic viscosity | | ||
+-----------------------------+---------------------------------------+ | ||
| :math:`\psi` | azimuth blade position | | ||
+-----------------------------+---------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _OLAF-Primary-Input-File: | ||
|
||
Appendix A: OLAF Primary Input File | ||
=================================== | ||
|
||
|
||
**Check the regression test cases for updates to this input file.** | ||
|
||
.. container:: | ||
:name: Tab:OLAFinputfile | ||
|
||
.. literalinclude:: ExampleFiles/ExampleFile--OLAF.txt | ||
:linenos: |
Oops, something went wrong.