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 50 commits into
base: develop
Choose a base branch
from
Open

Add Grid Renewable Energy Fraction #426

wants to merge 50 commits into from

Conversation

adfarth
Copy link
Collaborator

@adfarth adfarth commented Jul 26, 2024

Note: The calculation of the renewable energy %s does not yet properly account for the additional load from heating and cooling techs that use electricity. This was an issue prior to this PR and is being addressed in #456.

Added

  • Added 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
    • 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
  • Added 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_elec_and_thermal_load

Changed

  • Changed name of the following inputs:
    • ElectricUtility input cambium_metric_col changed to cambium_co2_metric
  • Changed 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_elec_and_thermal_load
  • Changed name of function (also available as endpoint through REopt API) from cambium_emissions_profile to cambium_profile

@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?

src/results/financial.jl Outdated Show resolved Hide resolved
@adfarth adfarth requested a review from hdunham November 26, 2024 16:01
@adfarth adfarth added the enhancement New feature or request label Nov 26, 2024
@adfarth adfarth removed the enhancement New feature or request label Nov 26, 2024
@adfarth adfarth marked this pull request as ready for review November 26, 2024 18:24
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