Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential bug in battery model #3095

Closed
2 tasks
JayHuLBL opened this issue Aug 22, 2022 · 0 comments · Fixed by #3100
Closed
2 tasks

Potential bug in battery model #3095

JayHuLBL opened this issue Aug 22, 2022 · 0 comments · Fixed by #3100
Assignees
Milestone

Comments

@JayHuLBL
Copy link
Contributor

In class Buildings.Electrical.DC.Storage.BaseClasses.Charge, the actual power flowing through the battery Pact is computed as

// Charge balance of battery
  PAct = if P > 0 then etaCha*P else (2-etaDis)*P;

where the etaCha is charging efficiency, the eatDis is discharging efficiency and the P is the power that should be provide or taken from the battery.

The power taken from the battery during discharge may should be computed as (1/etaDis)*P, rather than (2-etaDis)*P. The two implements have difference results. However, when the discharge efficiency is higher, for example 0.9 showing in below plot, the difference is small.
Battery2

But when the efficiency is small, for example 0.1 in below plot, the difference becomes significant.
Battery

This issue is to check if it is indeed a bug.

  • check if current implementation has reference to support it
  • if not, reimplement the calculation.
@JayHuLBL JayHuLBL added this to the Release 9.1 milestone Aug 22, 2022
@JayHuLBL JayHuLBL self-assigned this Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant