pybamm.ScipySolver wraps scipy.integrate.solve_ivp and is the easiest way to get started when your model produces a pure ODE system.
Constructor
Integration method passed to
solve_ivp. Supported values:| Method | Description |
|---|---|
"BDF" | Implicit BDF (default); good for stiff problems |
"RK45" | Explicit Runge-Kutta 4(5); non-stiff problems |
"RK23" | Explicit Runge-Kutta 2(3) |
"DOP853" | Explicit Runge-Kutta of order 8 |
"Radau" | Implicit Runge-Kutta (Radau IIA); stiff |
"LSODA" | Automatic stiff/non-stiff switching |
Relative tolerance.
Absolute tolerance.
Tolerance for detecting extrapolation beyond the solved interval.
Behaviour on extrapolation:
"warn", "error", or "ignore".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.