-
Notifications
You must be signed in to change notification settings - Fork 19
Clean up gitignore and consolidate examples documentation #201
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7736931
fix git ignore file
paulf81 93376c9
Add examples docs pages
paulf81 c4e83df
Consolidate readmes into docs
paulf81 3c1518c
add pointer to online documentation
paulf81 287e3b8
Small updates to example readmes
genevievestarke abfa1e0
clarify doc
paulf81 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,78 +1,114 @@ | ||
| # Gitignore file | ||
| # ============================================================================= | ||
| # Python | ||
| # ============================================================================= | ||
| *.pyc | ||
| *.log | ||
| *.egg-info | ||
| data.db | ||
| __pycache__/ | ||
| *.egg-info/ | ||
| *.python-version | ||
| *.DS_Store | ||
| *.conda | ||
| *.sqlite | ||
| slices | ||
|
|
||
| # macOS files | ||
| # ============================================================================= | ||
| # macOS | ||
| # ============================================================================= | ||
| .DS_Store | ||
| __MACOSX/ | ||
|
|
||
| # ide settings and files | ||
| .idea | ||
| .vscode | ||
| # ============================================================================= | ||
| # IDE/Editor Settings | ||
| # ============================================================================= | ||
| .idea/ | ||
| .vscode/ | ||
| .cursor/rules/ | ||
|
|
||
| # Some c++ stuff | ||
| a.out | ||
| *.plist | ||
| test_client.dSYM | ||
| # ============================================================================= | ||
| # Jupyter Notebooks | ||
| # ============================================================================= | ||
| *checkpoint.ipynb | ||
| hercules/sampling00000.nc | ||
| hercules/front_end.db | ||
| hercules/control_center.db | ||
| hercules/test_client_cpp/test_client | ||
| hercules/df_flow.p | ||
| hercules/flow_data.p | ||
|
|
||
| t_*.txt | ||
| hercules/sample_copy.nc | ||
| hercules/t_0* | ||
| hercules/local_amr_wind_demo/sample_copy.nc | ||
| *.nbconvert.ipynb | ||
| .ipynb_checkpoints/ | ||
|
|
||
| #Ignore csv files | ||
| # ============================================================================= | ||
| # Data Files (large/generated) | ||
| # ============================================================================= | ||
| # CSV files (except test inputs) | ||
| *.csv | ||
| !tests/test_inputs/*.csv | ||
| !example_case_folders/00_wind_farm_only/inputs/floris_standin_data.csv | ||
| !example_case_folders/00_wind_farm_only/inputs/wind_power_reference_data.csv | ||
|
|
||
| # h5 files | ||
| # Binary data formats | ||
| *.h5 | ||
| *.hdf5 | ||
| *.feather | ||
| *.ftr | ||
| *.parquet | ||
|
|
||
| # Larger wind input file | ||
| wind_resource_rex | ||
| # Pickle files (generated input data) | ||
| *.p | ||
| *.pkl | ||
|
|
||
| # Wind input pickle files | ||
| wind_input.p | ||
| # Large wind resource data | ||
| wind_resource_rex/ | ||
|
|
||
| # Solar input pickle files | ||
| solar_input.p | ||
| # ============================================================================= | ||
| # Hercules Simulation Outputs | ||
| # ============================================================================= | ||
| # Output directories contain generated results | ||
| outputs/ | ||
|
|
||
| # Intermediate notebook files | ||
| *.nbconvert.ipynb | ||
| *.ipynb_checkpoints | ||
| # Log files (generated during simulation) | ||
| *.log | ||
|
|
||
| # Some output files to ignore | ||
| # H_dict echo files (simulation state dumps) | ||
| *.echo | ||
|
|
||
| # ============================================================================= | ||
| # Documentation Build Artifacts | ||
| # ============================================================================= | ||
| docs/_build/ | ||
|
|
||
| # ============================================================================= | ||
| # Testing/CI Artifacts | ||
| # ============================================================================= | ||
| .pytest_cache/ | ||
| .ruff_cache/ | ||
|
|
||
| # ============================================================================= | ||
| # LEGACY HERCULES - May remove in future cleanup | ||
| # ============================================================================= | ||
| # Old example folder path (renamed to examples/) | ||
| !example_case_folders/00_wind_farm_only/inputs/floris_standin_data.csv | ||
| !example_case_folders/00_wind_farm_only/inputs/wind_power_reference_data.csv | ||
|
|
||
| # C++ build artifacts (from old AMR-Wind integration) | ||
| a.out | ||
| *.plist | ||
| test_client.dSYM | ||
| hercules/test_client_cpp/test_client | ||
|
|
||
| # NetCDF files (from old AMR-Wind demos) | ||
| hercules/sampling00000.nc | ||
| hercules/sample_copy.nc | ||
| hercules/local_amr_wind_demo/sample_copy.nc | ||
|
|
||
| # Database files (from old front-end/control center) | ||
| data.db | ||
| *.sqlite | ||
| *.conda | ||
| hercules/front_end.db | ||
| hercules/control_center.db | ||
|
|
||
| # Old data/flow pickle files | ||
| hercules/df_flow.p | ||
| hercules/flow_data.p | ||
|
|
||
| # AMR-Wind time step outputs | ||
| t_*.txt | ||
| hercules/t_0* | ||
| t_00* | ||
| slices | ||
|
|
||
| # Old log file patterns (now covered by *.log) | ||
| logdummy | ||
| loghelics | ||
| loghercules* | ||
| logstandin* | ||
| logfloris* | ||
| *echo | ||
| *out-example.json | ||
|
|
||
| .vscode/* | ||
|
|
||
| # Doc builds | ||
| docs/_build | ||
| docs/examples | ||
|
|
||
| .cursor/rules/ | ||
| *.feather | ||
| *.ftr | ||
| *.parquet |
This file contains hidden or 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 hidden or 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 hidden or 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
8 changes: 4 additions & 4 deletions
8
.../02a_wind_farm_realistic_inflow/README.md → ...xamples/02a_wind_farm_realistic_inflow.md
This file contains hidden or 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
38 changes: 38 additions & 0 deletions
38
docs/examples/02b_wind_farm_realistic_inflow_precom_floris.md
This file contains hidden or 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,38 @@ | ||
| # Example 02b: Wind Farm Realistic Inflow (Precomputed FLORIS) | ||
|
|
||
| ## Description | ||
|
|
||
| This example is identical to `02a_wind_farm_realistic_inflow` with the exception that the `precomputed` wake method is used to speed up the simulation. The configuration sets `wake_method: precomputed` in the `wind_farm` component. This example automatically generates the necessary input files in the centralized `examples/inputs/` folder when first run. | ||
|
|
||
| Note the caveats to using this method from the docs: | ||
|
|
||
|
|
||
| > In contrast to `wake_method: dynamic`, this method pre-computes the FLORIS wake | ||
| deficits for all possible wind speeds and power setpoints. This is done by running for | ||
| all wind speeds and wind directions (but not over all power setpoints). This is valid | ||
| for cases where the wind farm is operating in the following ways: | ||
| - all turbines operating normally (maximum power) | ||
| - all turbines off | ||
| - following a wind-farm wide derating level | ||
|
|
||
| It is in practice conservative with respect to the wake deficits, but it is more efficient | ||
| than running FLORIS for each condition at each time step. In cases where turbines are: | ||
| - partially derated below the curtailment level | ||
| - some, but not all, turbines are off | ||
| this is not an appropriate model and the more general `wake_method: dynamic` should be used. | ||
|
|
||
| ## Running | ||
|
|
||
| To run the example, execute the following command in the terminal: | ||
|
|
||
| ```bash | ||
| python hercules_runscript.py | ||
| ``` | ||
|
|
||
| ## Outputs | ||
|
|
||
| To plot the outputs, run the following command in the terminal: | ||
|
|
||
| ```bash | ||
| python plot_outputs.py | ||
| ``` | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the focus of this PR, but could you clarify this line a little bit? I'm not sure how this is different than the case below it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the lower line to clarify it meant that in the event that some turbines are off while others are on