Skip to content

Batt btm to grid and manual clip#653

Merged
brtietz merged 14 commits into
developfrom
batt_btm_to_grid_and_manual_clip
Nov 12, 2021
Merged

Batt btm to grid and manual clip#653
brtietz merged 14 commits into
developfrom
batt_btm_to_grid_and_manual_clip

Conversation

@brtietz

@brtietz brtietz commented Nov 11, 2021

Copy link
Copy Markdown
Collaborator

Pairs with SAM PR NatLabRockies/SAM#754

Update charging and discharging constraints to allow:

  • Clip charging for BTM dispatch (manual and price signals) and FOM manual dispatch
  • Discharge to grid for BTM dispatch (only affects manual and custom right now)

PVWatts-Battery defaults grid discharging to true.

Peak shaving, grid power targets, and price signals dispatch will need updates to take advantage of grid discharge capabilities. This can be done in a future PR for a patch.

Solves SAM issues NatLabRockies/SAM#338 and NatLabRockies/SAM#407

@brtietz

brtietz commented Nov 11, 2021

Copy link
Copy Markdown
Collaborator Author

Failure matches version of develop used to create this branch. Develop was fixed here: https://github.com/NREL/SAM/runs/4182767103. I can merge in develop and re-run if desired, but refraining for now to save Travis credits.

@mjprilliman mjprilliman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I didn't notice any issues but I'm not as familiar with this code

ssc_number_t peakKwCharge = *std::min_element(batt_power_data.begin(), batt_power_data.end());

EXPECT_NEAR(peakKwDischarge, 1.98, 0.1);
EXPECT_NEAR(peakKwDischarge, 2.16, 0.1);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm sure I missed it but is this change due to the DischargetoGrid defaulting to true?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes - since the discharge is no longer limited to load, the peak discharge can increase.

@brtietz brtietz merged commit 78c3271 into develop Nov 12, 2021
@brtietz brtietz deleted the batt_btm_to_grid_and_manual_clip branch December 7, 2021 16:50
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