Skip to content

Corrector convergence failed repeatedly or with |h| = hmin #1985

Answered by dion-w
CaXYZ asked this question in Q&A
Discussion options

You must be logged in to vote

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:

    var_pts = {
 …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@CaXYZ
Comment options

@CaXYZ
Comment options

@dion-w
Comment options

@CaXYZ
Comment options

Answer selected by CaXYZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants