Skip to content

Update array sizing for battery environment temperature#1694

Merged
mjprilliman merged 2 commits into
patchfrom
battery-thermal-array
Feb 27, 2024
Merged

Update array sizing for battery environment temperature#1694
mjprilliman merged 2 commits into
patchfrom
battery-thermal-array

Conversation

@mjprilliman

Copy link
Copy Markdown
Collaborator

Pull Request Template

Description

-Update battery room temperature array sizing to take advantage of array.size == 1 handling already in ssc
-Add label instructions for users to size array for time series definition option.

Fixes #1691

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@cpaulgilman

Copy link
Copy Markdown
Collaborator

@mjprilliman This fixes the error, but I'm not sure what the behavior is supposed to be. For a hybrid PVWatts-Wind-Battery system, I tested with 60-minute solar data and 15-minute wind data. Based on the UI text on the Battery Thermal UI form, I think the time series battery envirnoment temperature array should be for 15-minute data, but simulations run with no messages regardless of whether battery environment data is 60-minute or 15-minute data. What is the intended behavior?

@mjprilliman

Copy link
Copy Markdown
Collaborator Author

@mjprilliman This fixes the error, but I'm not sure what the behavior is supposed to be. For a hybrid PVWatts-Wind-Battery system, I tested with 60-minute solar data and 15-minute wind data. Based on the UI text on the Battery Thermal UI form, I think the time series battery envirnoment temperature array should be for 15-minute data, but simulations run with no messages regardless of whether battery environment data is 60-minute or 15-minute data. What is the intended behavior?

The intended behavior is to match the smallest time step, in your example the 15-minute wind data. This would only be relevant when the battery thermal time series array option is selected. I can't duplicate having the simulation work with a 60 minute array when testing a similar example on my side.

@cpaulgilman cpaulgilman 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.

Looks good.

I modifed SSC simulation message to help with this: NatLabRockies/ssc#1138

@mjprilliman mjprilliman merged commit 1362e95 into patch Feb 27, 2024
@mjprilliman mjprilliman deleted the battery-thermal-array branch February 27, 2024 17:35
@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Mar 1, 2024
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 battery bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Battery environment temperature array length scaling issue

2 participants