Replies: 4 comments 6 replies
-
Seems like a numerical issue to me. If you're looking at the capacity plot, above it says "1e-8+1.2242440000". Which means, the numbers on the left are to be multiplied with 1e-8 and added with 1.22. So overall the capacity is increasing with an mount of 0.1 *1e-9 over 50 cycles, which would be 0.1 nano Ah. So i think the simulation works just fine. The very detailed default plotting just shows you the very slight increase of capacity probably due to computationally completely normal rounding errors in the code. |
Beta Was this translation helpful? Give feedback.
-
@dion-w 's answer might be true in this case. However I think there is also a more general problem. In some of the parameter sets, the total amount of lithium (n_Li) is too large (larger than the theoretical maximum for either electrode), and a consequence of this is that in the capacity calculation algorithm decreasing n_Li increases theoretical capacity. Below is a case where So it's a bug in the parameters |
Beta Was this translation helpful? Give feedback.
-
Dear all,
Even though the loss of capacity is very less, it should reflect in the capacity loss, or I am missing something very important in including in degradation model. |
Beta Was this translation helpful? Give feedback.
-
@tinosulzer is there any work around to get the capacity degradation of a battery vs cycle no. in PyBaMm framework. |
Beta Was this translation helpful? Give feedback.
-
I ran the updated Prada2013 parameters over many cycles:
`
import pybamm
#chemistry = pybamm.parameter_sets.Prada2013
param = pybamm.ParameterValues("Prada2013")
pybamm.set_logging_level("NOTICE")
exp = pybamm.Experiment(
[
(
"Charge at 1 C until 3.65 V",
"Hold at 3.65 V until C/10",
"Rest for 5 minutes",
"Discharge at 1 C until 2.5 V",
"Rest for 5 minutes",
)
] * 50,
termination="80% capacity"
)
model = pybamm.lithium_ion.SPM()
sim = pybamm.Simulation(model,experiment=exp,parameter_values=param)
sol = sim.solve([0, 3600],initial_soc=0) # solve for 1 hour
print(sim.parameter_values)
pybamm.plot_summary_variables(sol)
![lfpCapacity](https://user-images.githubusercontent.com/4000822/202745954-e9bca1d9-ddce-4637-b384-1b3041835a41.png)
`
But I found that the capacity increased over the course of the cycles...
Beta Was this translation helpful? Give feedback.
All reactions