Skip to main content
pybamm.ScipySolver wraps scipy.integrate.solve_ivp and is the easiest way to get started when your model produces a pure ODE system.
ScipySolver does not support DAE (differential-algebraic) models. Most lithium-ion models (SPM, SPMe, DFN) include algebraic equations and require CasadiSolver or IDAKLUSolver.

Constructor

str
default:"\"BDF\""
Integration method passed to solve_ivp. Supported values:
float
default:"1e-6"
Relative tolerance.
float
default:"1e-6"
Absolute tolerance.
float | None
default:"0"
Tolerance for detecting extrapolation beyond the solved interval.
str
default:"\"warn\""
Behaviour on extrapolation: "warn", "error", or "ignore".
dict | None
default:"{}"
Additional keyword arguments forwarded to solve_ivp (e.g. {"max_step": 10}).

Examples

Sensitivity analysis is not supported by ScipySolver. Use IDAKLUSolver if you need parameter sensitivities.