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

Reconcile total site load #456

Open
wants to merge 13 commits into
base: gridRE-dev
Choose a base branch
from
Open

Conversation

zolanaj
Copy link
Collaborator

@zolanaj zolanaj commented Nov 26, 2024

uncomments code that tracks electrical load attributable to thermal technologies when calculating the expression m[:AnnualEleckWh]

TODO note at end of add_re_tot_calcs(): ensure no double counting once AnnualEleckWh accounts for electric heating and cooling loads

@zolanaj
Copy link
Collaborator Author

zolanaj commented Nov 26, 2024

@adfarth just tracking a couple other notes here:

  • This causes a few test to fail, which we can update after confirming the other tests are passing and none are erroring out (other than a possible PVWatts timeout)
  • This does not match the current results value ElectricLoad.annual_calculated_kwh which only includes site load
  • The renewable energy fraction for combined thermal and electrical shouldn't use this expression plus the thermal load or it will double count. Maybe that one uses the site loads?

No fixes for these yet but I'll track and see if I can follow up with good fixes. One concern is the electrical load could be a weird

@zolanaj zolanaj changed the title Do not merge yet: Reconcile total site load Reconcile total site load Jan 30, 2025
@zolanaj zolanaj requested a review from adfarth January 30, 2025 03:36
@zolanaj
Copy link
Collaborator Author

zolanaj commented Jan 30, 2025

@adfarth Ready for you to check! The steam turbine is left out of all of this for now but the other heating and cooling loads have been caught up. I added a result in Site to track converted thermal to electrical load (it's only used in testing but seems like a reasonable thing to track for electrification studies in general).

@adfarth
Copy link
Collaborator

adfarth commented Feb 6, 2025

@zolanaj would you mind adding a CHANGELOG entry for this? And perhaps updating the PR description with the same entry?

# tech electric loads from thermal techs
+ sum(m[:dvCoolingProduction][t, ts] / p.cooling_cop[t][ts] for t in setdiff(p.techs.cooling,p.techs.ghp), ts in p.time_steps)
+ sum(m[:dvHeatingProduction][t, q, ts] / p.heating_cop[t][ts] for q in p.heating_loads, t in p.techs.electric_heater, ts in p.time_steps)
+ sum(p.ghp_electric_consumption_kw[g,ts] * m[:binGHP][g] for g in p.ghp_options, ts in p.time_steps)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@zolanaj two questions on this:

  1. Did you intentionally choose p.time_steps instead of p.time_steps_with_grid? Honestly, so few people are using the single outage modeling that it probably doesn't matter much anymore, but just wanting to know if we should include a note about this choice
  2. in the load balance constraints, we include
    - p.s.cooling_load.loads_kw_thermal[ts] / p.cooling_cop["ExistingChiller"][ts]
    You described this as "That subtraction of cooling load is due to our electric load being inclusive of the cooling load which is met by the electric chiller. The cooling production three lines up from what's highlighted allows for either the electric chiller meeting the load (i.e., no change in electricity consumption) or a full or partial replacement by ASHP, or an absorption chiller."
    Should that be included here too?

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