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

Add Grid Renewable Energy Fraction #426

Open
wants to merge 107 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
0d4a787
Add API call for renewable energy fraction
pypapus Jul 30, 2024
71acc5e
Fixed cambium API call
pypapus Jul 31, 2024
eca3f12
Clean energy fraction added to scenarios
pypapus Aug 1, 2024
80d1d3e
Include profile of grid clean energy contribution in kW
pypapus Aug 1, 2024
c095d48
Updated help text and added checks for user-provided values
pypapus Aug 2, 2024
b67ff48
Corrected off-grid flag in scenario.jl
pypapus Aug 2, 2024
9a8f09f
Edited to remove cef calculation using BAU electric load
pypapus Aug 12, 2024
379eeab
Added new "cef_constraints" to calculate clean energy fraction of the…
pypapus Aug 12, 2024
26f5cec
Added cef (kWh) from the grid in accounting for renewable energy perc…
pypapus Aug 12, 2024
4cce89e
Added new function to calculate the clean_energy_fraction (kWh) grid …
pypapus Aug 12, 2024
6500b40
Added new input to include grid cef (kWh) in renewable energy percent…
pypapus Aug 12, 2024
98d22b5
Updated function adds grid clean energy kWh serving the load to results
pypapus Aug 12, 2024
c3c4d90
Merge branch 'develop' into gridRE-dev
adfarth Aug 12, 2024
e3b0300
removed "hours_per_time_step" to use model time step.
pypapus Aug 15, 2024
248481b
Added "annual_clean_grid_to_load_kwh" in results
pypapus Aug 15, 2024
1d77ec8
Merge branch 'gridRE-dev' of https://github.com/NREL/REopt.jl into gr…
pypapus Aug 15, 2024
fbf7691
Combined cambium_emissions_profile() and cambium_clean_energy_fractio…
pypapus Aug 16, 2024
29518dc
Update electric_utility.jl
adfarth Sep 10, 2024
132f982
Merge branch 'develop' into gridRE-dev
adfarth Nov 4, 2024
3a4bafd
spelling
adfarth Nov 5, 2024
8a34550
Merge branch 'develop' into gridRE-dev
adfarth Nov 12, 2024
dec6733
change cambium_metric_col to cambium_co2_metric
adfarth Nov 12, 2024
3916ba8
Change **cambium_emissions_region** to **cambium_region** and clean u…
adfarth Nov 12, 2024
37de923
Update electric_utility.jl
adfarth Nov 13, 2024
ff29a78
emissions_profile to profile_data
adfarth Nov 13, 2024
cee8176
reorganize constraints
adfarth Nov 13, 2024
8571808
minor edits
adfarth Nov 13, 2024
60cdeae
simplify constraints
adfarth Nov 14, 2024
7596768
Update renewable_energy_constraints.jl
adfarth Nov 14, 2024
434f928
Update site.jl
adfarth Nov 14, 2024
3b7a93a
update outputs
adfarth Nov 14, 2024
f2bb448
add outputs
adfarth Nov 14, 2024
a058fed
fix to align_profile_with_load_year
adfarth Nov 14, 2024
c2353fb
fixes to calcs
adfarth Nov 15, 2024
42be276
Update financial.jl
adfarth Nov 15, 2024
b9b1509
Update runtests.jl
adfarth Nov 15, 2024
82aaba4
add a test
adfarth Nov 15, 2024
394ffc8
Update CHANGELOG.md
adfarth Nov 15, 2024
bf72ef7
avoid annual grid RE if mpc
adfarth Nov 15, 2024
b57f878
Update runtests.jl
adfarth Nov 19, 2024
f333311
address failing tests
adfarth Nov 19, 2024
f2b2871
Update runtests.jl
adfarth Nov 20, 2024
c357ddf
change variable name
adfarth Nov 21, 2024
a26e268
conditionally show warning
adfarth Nov 26, 2024
b8a93c2
add soc_init_fraction
adfarth Nov 26, 2024
f09fe6e
small updates
adfarth Nov 26, 2024
9a4dd25
add a PV inputs check
adfarth Nov 26, 2024
9491bb9
fix test
adfarth Nov 26, 2024
5f6def7
fix to prod factor check
adfarth Dec 2, 2024
deeb15f
add description to outage_durations
adfarth Dec 6, 2024
b9aadb1
initial commit
adfarth Dec 6, 2024
c29810a
update help text
adfarth Dec 6, 2024
239d8f2
update runtests
adfarth Dec 11, 2024
4b27408
update cambium inputs and tests
adfarth Dec 12, 2024
20f3cff
Update chp_payback.json
adfarth Dec 12, 2024
b228777
Update EMISSIONS_DECREASE_DEFAULTS
adfarth Dec 12, 2024
a0c0b77
change output names to stay below 63 chars
adfarth Dec 12, 2024
df4e6f0
Merge branch 'develop' into gridRE-dev
adfarth Dec 12, 2024
9785939
Update CHANGELOG.md
hdunham Dec 13, 2024
92d067b
update changelog/comment
hdunham Dec 13, 2024
599e2e4
update notes about considerations when battery can export to grid in …
hdunham Dec 13, 2024
d1e9ff7
use REopt.KWH_PER_MMBTU in tests
hdunham Dec 13, 2024
52b3c0f
minor comment updates
hdunham Dec 13, 2024
f022754
clarify test "Renewable Energy from Grid"
hdunham Dec 13, 2024
c4d7871
typo
hdunham Dec 13, 2024
8ec5069
group renewable_energy_fraction_series with similar inputs in Electri…
hdunham Dec 13, 2024
08b0ecb
add to error msg
hdunham Dec 13, 2024
9c8b6a5
util function error_if_series_vals_not_0_to_1
hdunham Dec 13, 2024
bd1676e
Update runtests.jl
adfarth Dec 16, 2024
818bedd
add to dictkeys_tosymbols
adfarth Dec 16, 2024
74a3c4b
fix Degredation docstring
hdunham Dec 16, 2024
156d035
Merge branch 'gridRE-dev' of https://github.com/NREL/REopt.jl into gr…
hdunham Dec 16, 2024
5fc1160
fix make sub hr time step export rates work
hdunham Dec 17, 2024
e90f270
Update CHANGELOG.md
hdunham Dec 17, 2024
360427b
update manifest
hdunham Dec 17, 2024
55ef6fc
Merge branch 'develop' into gridRE-dev
adfarth Dec 18, 2024
c372337
Revert "Merge branch 'develop' into gridRE-dev"
adfarth Dec 18, 2024
be5695c
Merge branch 'develop' into avert-update
adfarth Dec 18, 2024
bdb9a45
Revert "update manifest"
adfarth Dec 18, 2024
699abdd
use == to test string
hdunham Dec 18, 2024
7bde370
Merge branch 'develop' into gridRE-dev
hdunham Dec 20, 2024
8d6fcc6
resolve env with 1.8.3
hdunham Dec 20, 2024
5610a11
update manifest to julia 1.11
hdunham Dec 23, 2024
a6bd8b5
simplify compat
hdunham Dec 23, 2024
f7a2d28
update authors
hdunham Dec 23, 2024
37d32e1
typo
hdunham Dec 23, 2024
cc70963
Merge branch 'develop' into gridRE-dev
adfarth Jan 6, 2025
c51e442
Merge branch 'develop' into avert-update
adfarth Jan 6, 2025
b94a25e
Update CHANGELOG.md
adfarth Jan 6, 2025
210ec72
rm inaccurate note in docstring
hdunham Jan 8, 2025
77abfc0
fix typo
hdunham Jan 13, 2025
6a922dc
clarify comment
hdunham Jan 13, 2025
4836ea3
update comment
hdunham Jan 13, 2025
5745957
Merge branch 'develop' into avert-update
adfarth Jan 13, 2025
e812def
Merge branch 'avert-update' of https://github.com/NREL/REopt.jl into …
adfarth Jan 13, 2025
c9c1aaa
Merge branch 'develop' into gridRE-dev
adfarth Jan 13, 2025
3dcbc13
Merge branch 'avert-update' into gridRE-dev
adfarth Jan 23, 2025
7b161a7
function name update
adfarth Jan 23, 2025
3c0004b
Update CHANGELOG.md
adfarth Jan 23, 2025
a399b08
Merge branch 'develop' into gridRE-dev
adfarth Jan 23, 2025
4b60d68
Update runtests.jl
adfarth Jan 23, 2025
06e4366
remove TODO
adfarth Jan 23, 2025
0653de3
fix merge issues, simplify results code
adfarth Jan 24, 2025
0f3173f
Update Project.toml
adfarth Jan 30, 2025
2ba6c06
Merge branch 'develop' into gridRE-dev
adfarth Jan 30, 2025
3458e38
update julia version in workflows
adfarth Jan 30, 2025
a30e347
Update Manifest.toml
adfarth Jan 31, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.8']
julia-version: ['1.11']
julia-arch: [x64]
os: [windows-latest]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.8'
version: '1.11'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,32 @@ Classify the change according to the following categories:
### Deprecated
### Removed

## gridRE-dev
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the plan to merge #456 into this and then merge together or to merge one first?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking we would merge this one first if possible, because we might not get to that one until mid January. That PR would address an issue that already exists with all of the % RE calculations, whereas this one adds new RE outputs (that do also have the whole total load issue). Do you think that's an okay approach?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but another thought is that if there is a known issue that we aren't fixing right away I wonder if it makes sense to temporarily remove the affected total load related outputs and/or note it somewhere for users. Mid Jan is pretty soon though especially with the holidays so maybe not worth the time to do that.

### Added
- Add the following inputs to account for the clean or renewable energy fraction of grid-purchased electricity:
- **ElectricUtility** **cambium_cef_metric** to utilize clean energy data from NREL's Cambium database
- **ElectricUtility** **renewable_energy_fraction_series** to supply a custom grid clean or renewable energy scalar or series
- **Site** **include_grid_renewable_fraction_in_RE_constraints** - to allow user to choose whether to include grid RE in min max constraints
- Add the following outputs:
- **ElectricUtility** **annual_renewable_electricity_supplied_kwh**
- **Site** **onsite_and_grid_renewable_electricity_fraction_of_elec_load**
- **Site** **onsite_and_grid_renewable_energy_fraction_of_total_load**
- Add input option **optimize_soc_init_fraction** (defaults to false) to **ElectricStorage**, which makes the optimization choose the inital SOC (equal to final SOC) instead of using soc_init_fraction. The initial SOC is also constrained to equal the final SOC, which eliminates the "free energy" issue. We currently do not fix SOC when soc_init_fraction is used because this has caused infeasibility.
### Changed
- Change name of the following inputs:
- **ElectricUtility** input **cambium_metric_col** changed to **cambium_co2_metric**
- Change name of the following outputs:
- **ElectricUtility** **cambium_emissions_region** changed to **cambium_region**
- **Site** **annual_renewable_electricity_kwh** changed to **annual_onsite_renewable_electricity_kwh**
- **Site** **renewable_electricity_fraction** changed to **onsite_renewable_electricity_fraction_of_elec_load**
- **Site** **total_renewable_energy_fraction** changed to **onsite_renewable_energy_fraction_of_total_load**
- Change name of function (also available as endpoint through REopt API) from **cambium_emissions_profile** to **cambium_profile**
- Update AVERT emissions data to v4.3, which uses Regional Data Files for year 2023 for CONUS. For Alaska and Hawaii (regions AKGD, HIMS, HIOA), updated eGRID data to eGRID2022 datafile, adjusted to CO2e values. Emissions profiles are saved in `data/emissions/AVERT_Data`.
- Update Cambium API call for CO2e emissions within CONUS to Cambium 2023 dataset. This includes updates to the default values and valid options for the following **ElectricUtility** inputs: **cambium_scenario**, **cambium_location_type**, and **cambium_start_year**
- Update EMISSIONS_DECREASE_DEFAULTS from 0.02163 to 0.0459 based on Cambium 2023 data
- Update Julia version
### Fixed
- Make **ElectricTariff** **export_rate_beyond_net_metering_limit** and **wholesale_rate** with sub-hour time step work

## v0.50.0
### Added
Expand Down
Loading
Loading