HomeChemistry & MaterialsChronoamperometry: Fick's-Law Diffusion Profile Solver

Chronoamperometry: Fick's-Law Diffusion Profile Solver

A finite-difference solver for Fick's second law: watch the concentration profile C(x,t) collapse to zero at an absorbing electrode and relax outward, with the electrode current computed directly from the local concentration gradient and checked live against the analytical Cottrell curve.

Chemistry & Materials2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-electrochemical-analysis ↗ Open standalone

This simulator solves the same electrochemistry problem as its 3D companion — chronoamperometry, where a working electrode instantly consumes analyte ions the moment they touch its surface — but does so as an explicit 2D finite-difference solution of Fick's second law rather than a particle visualization. A 320-point concentration grid is stepped forward in time every frame, the electrode current is read directly off the local concentration gradient via Fick's first law, and the result is plotted live against the closed-form Cottrell equation I(t) ∝ t-1/2 so you can see the numerical solver and the analytical prediction converge in real time. Tune the bulk concentration, diffusion coefficient and electrode area to see how each reshapes the depletion profile and the resulting current-decay curve.

⚙ Under the hood

A live 2D finite-difference solver for Fick's second law: watch the concentration profile C(x,t) collapse to zero at an absorbing electrode and relax outward on a 320-point grid, with the current computed directly from the local concentration gradient and checked live against the analytical Cottrell curve I(t) proportional to t^(-1/2).

electrochemistrychronoamperometrydiffusionCottrell equationfinite-differenceFick's lawanalytical chemistrybiosensor

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)