Previous topic

Dummy Solver

Next topic

JAX Solver

This Page

Scipy Solver

class pybamm.ScipySolver(method='BDF', rtol=1e-06, atol=1e-06, extra_options=None)[source]

Solve a discretised model, using scipy.integrate.solve_ivp.

Parameters:
  • method (str, optional) – The method to use in solve_ivp (default is “BDF”)
  • rtol (float, optional) – The relative tolerance for the solver (default is 1e-6).
  • atol (float, optional) – The absolute tolerance for the solver (default is 1e-6).
  • extra_options (dict, optional) – Any options to pass to the solver. Please consult SciPy documentation for details.