NatLabRockies / NatLabRockies/SAM

Flow Battery Sizing doesn't limit power when "both" is selected

Open
#2,219 0 comments 0 reactions 1 assignee View on GitHub

@brtietz is already working on this.

Since Jun 18, 2026.

bug
Dominant language
C++
Stars
486
Forks
219
Avg merge
10h 10m
Merged PRs (30d)
2

Description

The flow battery allows for limiting cells based on power, current, or both.

For this case, limiting power results in 6,000,015 cells:

Image

Limiting current results in 4,285,715

Image

Limiting both should result in the larger number, but results in the current limited number due to internal logic:

Image

This means that the maximum output of the battery is 50.96 MW, when 60 MW was specified.

This will be updated as a part of the transition to SSC equations for battery sizing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.