-
Hi all, I would like to model a half-cell experiment, using the DFN halfcell model:
The experiment reads:
and the solver options are: But when I run the simulation the warning Additionally the simulation seems to be very sensitive against small changes in the experiment, e.g., by leaving out the discharge at C/2 step, the simulation does not converge and the error message Do you have an idea what might cause this behavior or any suggestions how to best proceed the debugging process? With best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Something that might help in this circumstance is to increase the discretization along the thickness of the battery and in the radial dimension. Also what this error message means: the solver tries to solve the system for the current timestep, and if it can not it will reduce
|
Beta Was this translation helpful? Give feedback.
Something that might help in this circumstance is to increase the discretization along the thickness of the battery and in the radial dimension. Also what this error message means: the solver tries to solve the system for the current timestep, and if it can not it will reduce
the timestep. By default the solver will only reduce the timestep 5 times to get a converging solution. You can tell the solver though to reduce the timestep even further before by setting
solver = pybamm.CasadiSolver(max_step_decrease_count=15)
and then giving this solver setup to the simulation object.As an example a rather high discretization with the mentioned solver setup would look like this: