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

Draft
wants to merge 39 commits into
base: develop
Choose a base branch
from
Draft

Add Grid Renewable Energy Fraction #426

wants to merge 39 commits into from

Conversation

adfarth
Copy link
Collaborator

@adfarth adfarth commented Jul 26, 2024

TODOs:

  • Add a testset in runtests.jl that tests several scenarios against expected total RE fractions, and tests edge cases (ideas: with and without existing PV, with no credit for RE exports vs. with, with vs. without battery)
  • Allow users to apply an annual % increase to the clean_energy_fraction_series ?
  • Conditionally show this warning (only if an RE constraint is added @warn "No emissions reduction constraints added, as BAU emissions have not been calculated."

Nice to haves:

  • Combine cambium_emissions_profile() and cambium_clean_energy_fraction_profile() into one function that can be used for both emissions and clean energy fraction (just to reduce the amount of code)

@adfarth adfarth self-assigned this Jul 26, 2024
.gitignore Outdated Show resolved Hide resolved
src/core/electric_utility.jl Outdated Show resolved Hide resolved
src/core/electric_utility.jl Outdated Show resolved Hide resolved
src/core/electric_utility.jl Outdated Show resolved Hide resolved
src/core/electric_utility.jl Outdated Show resolved Hide resolved
src/core/electric_utility.jl Outdated Show resolved Hide resolved
src/core/reopt.jl Outdated Show resolved Hide resolved
src/core/scenario.jl Outdated Show resolved Hide resolved
src/core/scenario.jl Outdated Show resolved Hide resolved
src/core/bau_inputs.jl Outdated Show resolved Hide resolved
m[:AnnualEleckWh] = @expression(m,p.hours_per_time_step * (
# input electric load
sum(p.s.electric_load.loads_kw[ts] for ts in p.time_steps_with_grid)
+ sum(p.s.electric_load.critical_loads_kw[ts] for ts in p.time_steps_without_grid)
# tech electric loads
# tech electric loads #TODO: Uncomment?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@zolanaj is this something we could uncomment, or is it still a WIP?

@@ -356,7 +356,7 @@ function get_depreciation_schedule(p::REoptInputs, tech::Union{AbstractTech,Abst

federal_itc_fraction = 0.0
try
federal_itc_fraction = tech.federal_itc_fraction
federal_itc_fraction = tech.federal_itc_fraction # TODO: also check for total_itc_fraction as storage does not use federal_itc_fraction?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Bill-Becker this doesn't need to be part of this PR, but it looks like you updated this function to include storage. However, the storage itc input has a different name, so the warning below will always appear for storage and it looks like itc will be set to 0 in determining the storage depreciation schedule?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants