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

Reversible degradation for battery is not enabled #1142

Closed
dguittet opened this issue Feb 29, 2024 · 2 comments · Fixed by #1164
Closed

Reversible degradation for battery is not enabled #1142

dguittet opened this issue Feb 29, 2024 · 2 comments · Fixed by #1164
Assignees

Comments

@dguittet
Copy link
Collaborator

dguittet commented Feb 29, 2024

Describe the bug
The battery lifetime models currently do not allow for reversible thermal degradation due to this line: https://github.com/NREL/ssc/blame/936dd955c46799fe721b315576a395220b12efa9/shared/lib_battery_capacity.cpp#L523

The capacity (qmax_lifetime) can only be decreased because of the if statement. If the capacity_percent increases, the qmax_lifetime still cannot increase. This prevents the thermal reversible degradation from reversing.

To Reproduce
Use this SAM project file which has a battery that is always charging (to replenish any lost charge from degradation, but doesn't discharge) while it sits for a month at 0 deg then 60 deg.
battery_reversible_fade.sam.zip

The plot shows that as the temperature changes (black), the relative capacity also changes, recovering some capacity when the temperature increases (blue).

The charge (red) and max charge (orange) however do not recover.
image

Expected behavior
The expected behavior is for the charge (red) and max charge (orange) to increase again.

image

@aspeake

@brtietz
Copy link
Collaborator

brtietz commented May 3, 2024

@dguittet Would you consider NREL/SAM#1291 related?

@dguittet
Copy link
Collaborator Author

dguittet commented May 3, 2024

@brtietz It's kind of related. I've been seeing that issue as I've been working on this one, and it's due to that "Battery maximum charge at temperature (Ah)" being meaningless for NMC or LMO/LTO degradation models because it's always 100:

percent = util::linterp_col(params->cap_vs_temp, 0, state->T_batt, 1);

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.

2 participants