Tutorials¶
Interactive, end-to-end Jupyter notebooks with saved outputs—each following a consistent Goal → Physical Setup → Simulation → Diagnostics & Plots → Key Takeaways workflow.
Every notebook can be run locally or opened in Google Colab (uncomment # !pip install -q softpotato in the first code cell).
Starter Notebooks¶
New to Soft Potato? Start with these 5-minute quickstart notebooks:
| Notebook | Topic | Key APIs |
|---|---|---|
| Chronoamperometry (CA) Quickstart | Potential-step simulation vs. Cottrell equation & \(D\) fitting | Chronoamperometry, spa.cottrell(), spa.fit_cottrell() |
| Cyclic Voltammetry (CV) Quickstart | Single CV, Randles–Ševčík check, and \(k^0\) reversibility | CyclicVoltammetry, ButlerVolmer, spa.randles_sevcik() |
By Technique¶
Step-by-step walkthroughs of Soft Potato's experimental technique generators and diagnostic pipelines:
| Notebook | Focus | Key APIs |
|---|---|---|
| Chronoamperometry & the Cottrell Equation | Planar potential step, \(t^{-1/2}\) decay, and \(D\) extraction | Chronoamperometry, analyze_cottrell(), plot_cottrell(), fit_cottrell() |
| Chronoamperometry Across Geometries | Planar vs. spherical vs. cylindrical potential-step transients | PlanarGeometry, SphericalGeometry, CylindricalGeometry, cottrell_spherical(), cottrell_cylinder() |
| Cyclic Voltammetry & Multi-Scan-Rate Sweeps | Multi-cycle CV, peak detection, summary panels, and scan-rate sweeps | CyclicVoltammetry, simulate_sweep(), find_peaks(), plot_peaks(), plot_summary() |
| Pulse Voltammetry & Chronopotentiometry | SCV, DPV, SWV, and constant-current CP with Sand transition time | SampledCurrentVoltammetry, DifferentialPulseVoltammetry, SquareWaveVoltammetry, Chronopotentiometry, analyze_sand() |
| Rotating Disk Electrode (RDE) | Rotation-rate sweeps, Levich, and Koutecký–Levich analysis | simulate_rde_sweep(), analyze_levich(), plot_levich(), analyze_koutecky_levich(), plot_koutecky_levich() |
By Mechanism & Geometry¶
Focused studies on electrode geometry, interfacial kinetics, and coupled homogeneous reaction mechanisms:
| Notebook | Focus | Key APIs |
|---|---|---|
Reversible Planar CV (NernstianEquilibrium) |
Nernstian CV signatures (\(\Delta E_p\) approx 57 \(\text{mV}\)) and concentration profiles | NernstianEquilibrium, find_peaks(), plot_concentration_profile() |
| Reversible Spherical CV | Macro-to-microelectrode transition from peak-shaped to sigmoidal waves | SphericalGeometry, microsphere_limiting_current() |
| Randles–Ševčík Analysis | Multi-scan-rate \(I_p\) vs. \(v^{1/2}\) regression and \(D\) confidence intervals | simulate_sweep(), analyze_randles_sevcik(), plot_randles_sevcik(), fit_randles_sevcik() |
| Butler–Volmer Kinetics, Nicholson & Tafel | Reversibility regimes across \(k^0\), Nicholson \(\Psi\), and Tafel extraction | ButlerVolmer, analyze_nicholson(), analyze_tafel(), plot_tafel() |
The EC Mechanism |
Coupled follow-up first-order reaction (\(\text{Red} \xrightarrow{k_c} \text{P}\)) | Mechanism, ElectrochemicalStep, FirstOrderReaction |
The EE Mechanism |
Sequential two-electron transfer (\(\text{A} \rightleftharpoons \text{B} \rightleftharpoons \text{C}\)) and wave merging | Mechanism, ElectrochemicalStep |
The Catalytic EC' Mechanism |
Homogeneous catalyst regeneration (\(\text{Red} \xrightarrow{k_{\text{cat}}} \text{Ox}\)) and plateau scaling | Mechanism, ElectrochemicalStep, CatalyticReaction |
By Module (Modeller)¶
Low-level tutorials for computational electrochemists working directly with DiffusionProblem, custom meshes, geometries, reaction networks, and analytical benchmarking:
| Notebook | Focus | Key APIs |
|---|---|---|
| Analytical Models & Parameter Sweeps | Vectorized parameter sweeps across transient, RDE, UME, and kinetic models | cottrell(), randles_sevcik(), levich(), koutecky_levich(), butler_volmer() |
| Curve Fitting & Custom Parameter Estimation | Specialized domain fitters and arbitrary nonlinear models | fit_cottrell(), fit_koutecky_levich(), fit_butler_volmer(), fit_curve() |
| PDE Solvers & Custom Boundary Conditions | Benchmarking all 4 solvers and time-dependent Dirichlet/Neumann BCs | DiffusionProblem, DirichletBC, NeumannBC, get_solver() |
| Electrode Geometries & Concentration Profiles | Planar, cylindrical, and spherical diffusion with 2D \(c(r, t)\) visualization | PlanarGeometry, CylindricalGeometry, SphericalGeometry |
| Spatial Meshes & Grid-Convergence Studies | Uniform vs. stretched meshes and \(L_2\) flux convergence | Uniform1DMesh, ExponentialMesh, GeometricExpandingMesh, run_grid_efficiency_benchmark() |
| Species, Kinetics & Reaction Mechanisms | Custom Species, first- and second-order reactions, and CustomMechanism |
Species, ElectrochemicalStep, FirstOrderReaction, SecondOrderReaction, CustomMechanism |
Related Documentation¶
- User Guide: Task-oriented guides for
simulate(), diagnostics, plotting, and curve fitting. - Concepts: Theoretical and numerical foundations behind electrode kinetics, mass transport, and reaction mechanisms.
- API Reference: Complete class and function signatures.