Long-term simulation (multiple years) using a predifined current profile #4152
-
Hi! This is a follow up to a previous question: "Modeling the operation of a cell from real world energy storage system data". Essentially, I have 6 years of current data from a real lithium ion NMC cell (LG Chem JH3) that I would like to run through some PyBaMM model / simulation to see how the model's discharge capacity degrades over time. Since receiving help in that thread I have had success getting a model to run on short periods of data (hours to days) but as i try to extend my simulation I run into a predictable issue where the simulated cell's voltage creeps up over time until it hits the upper voltage limit which stops the simulation: This growing error between modeled and real seems to mainly come from some self discharge / loss of voltage that the real cell experiences over time that the model does not express. In the simulating-long-experiments notebook I found the One way to address my issue could be to break my years of cycling data into more manageable simulations, for example daily, where I feed the last day's solution into the next. But critically I would need to reset the So, my questions are:
Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Instead of updating the current function parameter you could use an experiment step for each day. https://docs.pybamm.org/en/stable/source/api/experiment/experiment_steps.html |
Beta Was this translation helpful? Give feedback.
@lappemic, what I posted above did end up working for me, but I made some tweaks to the approach to make things work more smoothly. This is very similar is spirit, but changed slightly to take advantage of PyBaMM's
experiment_step
workflow.With this I was able to run a 7 year simulation at 10 second resolution broken into daily experiment steps (i.e. ~2500 "cycles") which took around 3 hours to run.