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

Fix SSC 785 hourly variables #1097

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

brtietz
Copy link
Collaborator

@brtietz brtietz commented Nov 28, 2023

Fixes #785

Add grid_outage as an optional input to utility_rate 5. When there is a grid outage, set grid use to zero. While cmod_grid handled this effectively for the load, these additional changes are required to preserve the data in gen while not accumulating net metering credits during an outage.

To test:

  1. Open a PV+Battery behind the meter case
  2. Set up a full year grid outage (file with 8760 ones for testing) with any critical load percentage:
    _8760_ones.csv
  3. Run the case
  4. Hourly to/from grid variables should be zero, net metering credits should not be earned.

Testing other compensation methods would be good rigor.

Copy link
Collaborator

@cpaulgilman cpaulgilman left a comment

Choose a reason for hiding this comment

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

Looks good. I checked all excess generation compensation methods.

Copy link
Collaborator

@sjanzou sjanzou left a comment

Choose a reason for hiding this comment

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

Looks good and test pass

@sjanzou sjanzou merged commit ebd9967 into develop Nov 29, 2023
@sjanzou sjanzou deleted the ssc_785_utility_rate_grid_outage branch November 29, 2023 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Electricity to/from grid (year 1) does not match lifetime
3 participants