Skip to content

SAM 658 restore pv priority manual dispatch#900

Merged
brtietz merged 24 commits into
developfrom
ssc_658_restore_pv_priority_manual_dispatch
Oct 25, 2022
Merged

SAM 658 restore pv priority manual dispatch#900
brtietz merged 24 commits into
developfrom
ssc_658_restore_pv_priority_manual_dispatch

Conversation

@brtietz

@brtietz brtietz commented Oct 23, 2022

Copy link
Copy Markdown
Collaborator

Solves NatLabRockies/SAM#658 for manual dispatch.

Note - includes code from #899 to avoid merge conflicts. Might be best to do code review here after that one is merged.

Pairs with SAM pull request NatLabRockies/SAM#1205

To test:

  1. Check out this branch and associated SAM branch and build
  2. Open a behind the meter PV-battery case
  3. Choose manual dispatch, uncheck "charge system only when system power exceeds load", change to "charge battery" priority
  4. Run system
  5. See that the battery is charging before PV goes to load

Also works with generic system and fuel cell-commercial.

Brian Mirletz and others added 23 commits October 7, 2022 16:02
Removes charging constraints for min efficiency to handle grid outage cases. Removes ac losses (such as wiring) from batt to grid to make sure batt to grid matches AC  power. Add DC DC efficency to batt power AC for full representation of convention where this number represents hypothetical grid charging when charging from PV. Update test code to better handle efficiencies
…forcing 5% efficiency. Use max efficiency for conversions in these cases
…tt. Solves issue with battery energy charged from system summary metrics being less than 100%
…iciency

Update the powerflow convention. Using actual efficiency here would result in even higher round trip efficiencies. Also fix a possible infinity in the tests
Doing this on the DC side allows grid to batt to match inverter ac output
@brtietz brtietz self-assigned this Oct 23, 2022
@brtietz brtietz added this to the SAM Fall 2022 Release milestone Oct 23, 2022
@brtietz brtietz changed the title Ssc 658 restore pv priority manual dispatch SAM 658 restore pv priority manual dispatch Oct 23, 2022
@brtietz brtietz merged commit 4cb6865 into develop Oct 25, 2022
@brtietz brtietz deleted the ssc_658_restore_pv_priority_manual_dispatch branch November 18, 2022 16:35
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.

3 participants