Skip to content

Updated Grid RE and Emissions#628

Merged
adfarth merged 28 commits intodevelopfrom
gridrenew
Feb 26, 2025
Merged

Updated Grid RE and Emissions#628
adfarth merged 28 commits intodevelopfrom
gridrenew

Conversation

@adfarth
Copy link
Collaborator

@adfarth adfarth commented Jan 30, 2025

Inputs and outputs from:

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_elec_and_thermal_load
    • ElectricLoad annual_electric_load_with_thermal_conversions_kwh which calculates end-use electrical load after including electric consumption by heaters and chillers
  • 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, to distinguish between the CO2 and clean energy fraction metrics
  • 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 v3 endpoint "cambium_emissions_profile" to "cambium_profile"

@adfarth adfarth requested a review from hdunham January 30, 2025 17:44
default=2025,
validators=[
MinValueValidator(2023),
MinValueValidator(2025),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we really not allow users to give a past year for this? What if we want to model a system that already exists to validate or something?

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 might be missing something, but users can give a year for this, it just has to be between 2025-2050 because those are the years for which Cambium has data. If they want to run a past year, they would need to supply their own custom emissions rates.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess I was thinking that if cambium has time steps every 5 years from 2025 to 2050 and the nominal year also covers the 4 years preceding, that users would be allowed to provide a start year from 2021 to 2050. Maybe that's wrong though.

@hdunham hdunham self-requested a review February 7, 2025 21:22
@adfarth adfarth merged commit 61da203 into develop Feb 26, 2025
2 checks passed
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