Long-term degradation simulation of battery takes too long. Is there any reason why this problem occurs? #2653
-
I would like to use PyBaMM to calculate capacity degradation over long cycles using a DFN model and measure how long it takes. =================================================== Profile 1Profile = [(f"Charge at 0.5C until 4.2V" MODEL = pybamm.lithium_ion.DFN({"SEI": "solvent-diffusion limited"}) var_pts = { def EXP_DFN_SEI(PF_num, MODEL, var_pts):
EXP_DFN_SEI(PF_num, MODEL, var_pts) ================================================================= However, in the case of PyBaMM simulation, one cycle is calculated in a short time (4-5 sec) at the beginning, but as it goes on, it takes a longer time (about 40 sec) to calculate one cycle. Is there a reason why it slows down as the number of cycles increases, or is there a problem with my code? If there is anyone who knows the reason, I would really appreciate a reply. Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Sounds like a bug or memory leak. How many cycles does it take to slow down significantly? In order to debug the problem a bit can you change to a faster model to see if the problem persists and log the console output to a file. Also does stopping after say 100 cycles then restarting the simulation from the previous solution help at all? |
Beta Was this translation helpful? Give feedback.
Sounds like a bug or memory leak. How many cycles does it take to slow down significantly? In order to debug the problem a bit can you change to a faster model to see if the problem persists and log the console output to a file. Also does stopping after say 100 cycles then restarting the simulation from the previous solution help at all?