Hi,
I have used the code snippet from this notebook to extract the capacity at every cycle:
Degradation experiments with reference performance tests — PyBaMM v25.10.3.dev13+geecf5e5fa Manual
My code:
for i in range(ncycles):
start_capacity = cccv_sol.cycles\[i\].steps\[2\]\["Discharge capacity \[A.h\]"\].entries\[0\]
end_capacity = cccv_sol.cycles\[i\].steps\[2\]\["Discharge capacity \[A.h\]"\].entries\[-1\]
capacity_cycle\[i\] = end_capacity - start_capacity
However, the capacity fade using this formula is found to be exactly twice the capacity fade obtained by other PyBAMM outputs such as Total Lithium capacity.
pybamm.dynamic_plot(cccv_sol, [“Total lithium capacity [A.h]”])
At present only SEI growth mechanism is considered. The discharge capacity [A.h] plotted vs. throughput shows a decrease in its upper envelope, and increase in its lower envelope. If we consider the shifts in both the upper and lower envelopes for capacity fade, as in this code snippet, then we get twice the correct capacity fade.
Can someone please verify this?
