How to disable already existing events in a model?

Hello everyone,

I am trying to run a Single Particle Model (SPM) simulation and want to allow the cell voltage to go beyond the usual operating limits (i.e., I do not want the simulation to stop once the voltage crosses the typical lower or upper cut-off). My goal is to keep the simulation running regardless of how high or low the voltage might get. Using the fast mode of the CasadiSolver as described in Tutorial 8 is not having the desired effect of disabling events.

  • I have also tried to:
    1. Adjusting the default lower/upper voltage cut-offs in the parameter set.
    2. Increasing/decreasing maximum concentration parameters in both electrodes.
    3. Using the “fast” mode of the CasadiSolver as described in Tutorial 8, which I hoped would disable events.

Try doing model.events = [] after creating the model but before creating the simulation

Thanks! That did work!