Skip to content

Standalone battery models in SAM#766

Merged
mjprilliman merged 34 commits into
developfrom
standalone_battery
Nov 17, 2021
Merged

Standalone battery models in SAM#766
mjprilliman merged 34 commits into
developfrom
standalone_battery

Conversation

@mjprilliman

Copy link
Copy Markdown
Collaborator

-Battery model without power generation component
-Specific cost inputs UI forms, dispatch option rules
-Need to set defaults for standalone battery cases (BTM and FOM)

StephenPaul27 and others added 21 commits October 27, 2021 09:29
Committing so that these changes are accessible
standalone battery; updated callbacks and defaults
definitions for calculated batt_bank_size
@brtietz

brtietz commented Nov 15, 2021

Copy link
Copy Markdown
Collaborator

Great work! Some notes/changes:

In our meeting on Friday, we had discussed setting up a dialogue box if the user attempts to set up a custom weather file. I get this error currently:

Could not evaluate callback function:batt_select_weather_file_forecast_peak_shaving->on_change
[27]: eval error in statement list
[27]: error inside function call
[28]: eval error in statement list

Two bugs on the summary/metrics page for standalone-commercial: discounted_payback rather than "discounted payback period" and the second box is empty:

image

Also bugs in the metrics for FOM:

image

Do we want to be able to simulate grid outages with a stand-alone battery? The outages would have to be shorter than a pv-battery or generic-battery system, but it still could be a useful feature, especially when comparing to the other two systems. (apologies if we already made this decision and I forgot about it)

I think defaults for this can be done in a subsequent PR (with the rest of the defaults for this release). One note though: for commercial peak shaving, a 100 kW, 400 kWh system gives a positive NPV.

@cpaulgilman

Copy link
Copy Markdown
Collaborator

I'm also seeing those missing output variables, including battery replacement cost in the cash flow:

image

Maybe change the short name in startup.lk from "Standalone-Battery" to "Battery" to give a little more space here:

image

@cpaulgilman

Copy link
Copy Markdown
Collaborator

Also need message box to prevent choosing DC-connected battery:

image

@mjprilliman

Copy link
Copy Markdown
Collaborator Author

Also need message box to prevent choosing DC-connected battery:

image

@cpaulgilman @brtietz The missing outputs variables issue seems to happen when NaN is returned from the compute module. For example in FOM cases an IRR Do we have a current fix for this or do we just need to work on defaults that return a IRR or payback period that works?

@cpaulgilman

Copy link
Copy Markdown
Collaborator

The missing outputs variables issue seems to happen when NaN is returned from the compute module. For example in FOM cases an IRR Do we have a current fix for this or do we just need to work on defaults that return a IRR or payback period that works?

The behavior in SAM 2020.11.29 r2 is to show the variable label in the Metrics table even when the value is NaN, which is what we want:

image

connected battery issues for standalone battery
@mjprilliman

Copy link
Copy Markdown
Collaborator Author

@cpaulgilman @brtietz I will have to dig into that issue in a little bit. The outputs are filling correctly in the Data Tables (with NaN) but not in metrics.lk

@mjprilliman

Copy link
Copy Markdown
Collaborator Author

image

This issue is not exclusive to Standalone Battery. I believe the label is not showing when the metric() function is used in metrics.lk as opposed to metric_table() and metric_row(). These values are used in Host Developer configs which properly shows NaN values:

image

@cpaulgilman @sjanzou any ideas?

@mjprilliman mjprilliman merged commit ed77152 into develop Nov 17, 2021
@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Dec 2, 2021
@mjprilliman mjprilliman deleted the standalone_battery branch December 9, 2021 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added to release notes PR and/or issue has been added to release notes for a public release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants