NatLabRockies / NatLabRockies/H2Integrate

Charge and discharge efficiencies set in dispatch are not passed on to battery performance model

Open
#474 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
26
Forks
44
Avg merge
3d 22h
Merged PRs (30d)
16

Description

Charge and discharge efficiencies set in dispatch are not passed on to battery performance model

You can set charge_efficiency and discharge_efficiency as inputs to the battery for dispatch, but these are not passed on the the pysam battery performance model. They are implemented if you are using the open loop control scheme and the generic storage model, but not if you are using the pyomo dispatch with the pysam battery as the performance model. This means that the charge and discharge efficiencies are taken into account in the pyomo dispatch, but then are not reflected by the battery performance.

How to reproduce

This can be seen if the charge_efficiency and discharge_efficiency parameters are changed in the dispatch input.

Fix Suggestion

Adding a generic storage performance (or battery performance) model that can be parameterized may be useful here. It could also serve as a generic LDES model.

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.

Research direction

Start by tracing the dispatch inputs for charge_efficiency and discharge_efficiency through the Pyomo dispatch path into the PySAM battery performance model. Compare this with the open-loop control and generic storage behavior described in the issue. Done means both efficiencies set in dispatch are reflected by the battery performance model.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.