Solver Convergence
The solver in BatteryDict strives to perform a physically accurate simulation for any given set of material parameters (like conductivities), material structure parameters (morphological), and simulation parameters (like the applied current). This is done by calculating the time evolution of the battery simulation step-by-step.
First, the solver works to establish the initial state or equilibrium state for every simulation in BatteryDict. Then, the solver undertakes performing time steps. In every time step, the solver first attempts a time step with the “maximum time step” given by the user. If this time step does not result in a physically meaningful state of the battery cell, the solver reduces the time step and tries again. This time-step reduction is repeated until the solver finds a physically meaningful state. If it cannot find one, the solver produces a warning message indicating that “Time step has not converged”.
In some cases, the cell-potential might rise well above any reasonable end-of-charging voltage, like for example if a large charge rate is applied. The solver might reach 10 V or even 100 V, but at some point, it will stop. In these kinds of situations, the cell-potential diverges, but the solver produces a meaningful and helpful result.
However, there are other situations in which the cell-potential does not diverge, but the solver stops regardless of that and as mentioned above, the solver has not converged.
In BatteryDict, the possible reasons why the solver does not converge are revealed in warnings, shown before the solver starts and written into the report. The warnings help figuring out why the solver stopped and include: