-
Notifications
You must be signed in to change notification settings - Fork 27
Added FLORIS wind plant model #372
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
43 commits
Select commit
Hold shift + click to select a range
a5b1ef6
added draft of floris wind model
elenya-grant 0e99c4e
added is_day variable to openmeteo downloads
elenya-grant e135373
Merge branch 'develop' of github.com:NREL/H2Integrate into floris
elenya-grant 7cc0eeb
added cache to floris model
elenya-grant ae6d5bb
added cache to floris model
elenya-grant db50a0f
made cache file utility method
elenya-grant d1c766c
updated floris to use cache filename making utility
elenya-grant 6ed49c0
Merge branch 'develop' of github.com:NREL/H2Integrate into floris
elenya-grant 3284f2c
added docstring to new utility method and updates to floris wrapper
elenya-grant 37a8eff
added floris files to the library
elenya-grant c3eb417
added draft files for floris example
elenya-grant 73e53c0
added floris to supported models
elenya-grant cbacf7e
added test for floris
elenya-grant ebddbe5
added in wind resource tools
elenya-grant fc53ff1
added resource parse methods into floris wrapper
elenya-grant c8ed08b
updates to floris and resource tools
elenya-grant 04b9f1b
added docstrings and added cache_dir as input to make_cache_hash_file…
elenya-grant 985873e
bugfixes in floris model, updated floris example, added tests for flo…
elenya-grant 913e659
minor update to example tech config
elenya-grant 3245738
Merge remote-tracking branch 'h2i_upstream/develop' into floris
elenya-grant a6786a1
added comments and updated changelog
elenya-grant b90b25a
added floris to technology overview
elenya-grant 825d5b6
Merge remote-tracking branch 'upstream/develop' into HEAD
kbrunik 958c221
Merge branch 'develop' into floris
johnjasa 19ea58e
Merge branch 'floris' of github.com:elenya-grant/GreenHEART into floris
elenya-grant 0190a8b
minor updates from review feedback
elenya-grant 0c9cb77
added error message if layout is provided in floris config
elenya-grant d77662a
merged upstream
elenya-grant c19a688
updated cache dir to only be created if caching is enabled
elenya-grant c393357
updated floris to use cache baseclass and added tests
elenya-grant d1aae36
added test for preprocessing turbine tools with floris
elenya-grant 099e7ba
updated turb preprocessing doc page
elenya-grant 3bcfb98
fixed failing test
elenya-grant b2ac480
merged in develop
elenya-grant 5681f70
added in air density adjustment and renamed operation model
elenya-grant d3fc28b
added test for air density adjustment in floris
elenya-grant 176e345
removed note about including air density adjustment
elenya-grant 47e0fd0
updated wind resource units for is_day and added some tests for wind …
elenya-grant 84d1302
bugfix and added test for weighted average wind speed
elenya-grant 50e2e4f
draft stage of estimating wind speed using shear
elenya-grant 17d6ac6
removed wind shear estimations
elenya-grant ea5c3f4
updated test values for floris example test due to fig in weighted av…
elenya-grant f4f519d
renamed floris example and updated relevant tests
elenya-grant 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
376 changes: 364 additions & 12 deletions
376
docs/misc_resources/turbine_models_library_preprocessing.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| name: "driver_config" | ||
| description: "This analysis runs a wind plant using FLORIS" | ||
|
|
||
| general: | ||
| folder_output: floris_wind_outputs |
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,54 @@ | ||
| name: "plant_config" | ||
| description: "" | ||
|
|
||
| site: | ||
| latitude: 44.04218 | ||
| longitude: -95.19757 | ||
|
|
||
| resources: | ||
| wind_resource: | ||
| resource_model: "openmeteo_wind_api" | ||
| resource_parameters: | ||
| resource_year: 2023 | ||
|
|
||
| resource_to_tech_connections: [ | ||
| # connect the wind resource to the wind technology | ||
| ['wind_resource', 'wind', 'wind_resource_data'], | ||
| ] | ||
|
|
||
| plant: | ||
| plant_life: 30 | ||
| simulation: | ||
| n_timesteps: 8760 | ||
| dt: 3600 | ||
| finance_parameters: | ||
| finance_groups: | ||
| finance_model: "ProFastComp" | ||
| model_inputs: | ||
| params: | ||
| analysis_start_year: 2032 | ||
| installation_time: 36 # months | ||
| inflation_rate: 0.0 # 0 for nominal analysis | ||
| discount_rate: 0.09 | ||
| debt_equity_ratio: 2.62 | ||
| property_tax_and_insurance: 0.03 # percent of CAPEX | ||
| total_income_tax_rate: 0.257 | ||
| capital_gains_tax_rate: 0.15 # H2FAST default | ||
| sales_tax_rate: 0.07375 | ||
| debt_interest_rate: 0.07 | ||
| debt_type: "Revolving debt" # can be "Revolving debt" or "One time loan". | ||
| loan_period_if_used: 0 # H2FAST default, not used for revolving debt | ||
| cash_onhand_months: 1 # H2FAST default | ||
| admin_expense: 0.00 # percent of sales H2FAST default | ||
| capital_items: | ||
| depr_type: "MACRS" # can be "MACRS" or "Straight line" | ||
| depr_period: 7 #years | ||
| refurb: [0.] | ||
| finance_subgroups: | ||
| electricity: | ||
| commodity: "electricity" | ||
| commodity_stream: "wind" #use the total electricity output from the combiner for the finance calc | ||
| technologies: ["wind"] | ||
| cost_adjustment_parameters: | ||
| cost_year_adjustment_inflation: 0.025 # used to adjust modeled costs to target_dollar_year | ||
| target_dollar_year: 2022 |
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,27 @@ | ||
| import os | ||
| from pathlib import Path | ||
|
|
||
| from h2integrate.core.utilities import load_yaml | ||
| from h2integrate.core.h2integrate_model import H2IntegrateModel | ||
|
|
||
|
|
||
| os.chdir(Path(__file__).parent) | ||
|
|
||
| driver_config = load_yaml(Path(__file__).parent / "driver_config.yaml") | ||
| tech_config = load_yaml(Path(__file__).parent / "tech_config.yaml") | ||
| plant_config = load_yaml(Path(__file__).parent / "plant_config.yaml") | ||
|
|
||
| h2i_config = { | ||
| "name": "H2Integrate_config", | ||
| "system_summary": "", | ||
| "driver_config": driver_config, | ||
| "technology_config": tech_config, | ||
| "plant_config": plant_config, | ||
| } | ||
| # Create a H2I model | ||
| h2i = H2IntegrateModel(h2i_config) | ||
|
|
||
| # Run the model | ||
| h2i.run() | ||
|
|
||
| h2i.post_process() | ||
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,33 @@ | ||
| name: "technology_config" | ||
| description: "This plant runs a wind farm using FLORIS" | ||
|
|
||
| technologies: | ||
| wind: | ||
| performance_model: | ||
| model: "floris_wind_plant_performance" | ||
| cost_model: | ||
| model: "atb_wind_cost" | ||
| model_inputs: | ||
| performance_parameters: | ||
| num_turbines: 100 #number of turbines in the farm | ||
| hub_height: 65.0 # turbine hub-height | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is defined twice. Do we need it here if it's in the floris config? |
||
| operational_losses: 12.83 #percentage of non-wake losses | ||
| floris_wake_config: !include "floris_v4_default_template.yaml" #floris wake model file | ||
| floris_turbine_config: !include "floris_turbine_Vestas_660kW.yaml" #turbine model file formatted for floris | ||
| resource_data_averaging_method: "weighted_average" #"weighted_average", "average" or "nearest" | ||
| operation_model: "cosine-loss" #turbine operation model | ||
| default_turbulence_intensity: 0.06 | ||
| enable_caching: True #whether to use cached results | ||
| cache_dir: "cache" #directory to save or load cached data | ||
| layout: | ||
| layout_mode: "basicgrid" | ||
| layout_options: | ||
| row_D_spacing: 5.0 | ||
| turbine_D_spacing: 5.0 | ||
| rotation_angle_deg: 0.0 | ||
| row_phase_offset: 0.0 | ||
| layout_shape: "square" | ||
| cost_parameters: | ||
| capex_per_kW: 1472.0 | ||
| opex_per_kW_per_year: 32 | ||
| cost_year: 2022 | ||
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.
I like having this different way of showing how to put together a config, very nice.