Previous topic

Scipy Solver

Next topic

Casadi Solver

This Page

Scikits.odes Solvers

class pybamm.ScikitsOdeSolver(method='cvode', rtol=1e-06, atol=1e-06, linsolver='dense')[source]

Solve a discretised model, using scikits.odes.

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).
  • linsolver (str, optional) – Can be ‘dense’ (= default), ‘lapackdense’, ‘spgmr’, ‘spbcgs’, ‘sptfqmr’
class pybamm.ScikitsDaeSolver(method='ida', rtol=1e-06, atol=1e-06, root_method='casadi', root_tol=1e-06, max_steps=1000)[source]

Solve a discretised model, using scikits.odes.

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).
  • root_method (str, optional) – The method to use to find initial conditions (default is “lm”)
  • root_tol (float, optional) – The tolerance for the initial-condition solver (default is 1e-6).
  • max_steps (int, optional) – The maximum number of steps the solver will take before terminating (default is 1000).