Demos
Interactive simulations built with p5.js: some are teaching tools, some illustrate questions I work on in research, and some are just for fun. Click any card to run it in your browser.
Research toys
Depinning of a disordered elastic line
An elastic line driven through a random-force landscape, integrated with overdamped Langevin dynamics. Tune the driving force and the temperature to go from pinned to moving, and watch the depinning transition and the roughening it leaves behind.
φ⁴ wall, live
The same elementary move behind the GPU code I actually use for research, running live in the browser: a wall between two phases, solved site by site (no time integration) against quenched disorder. Search for the critical depinning field hd by bisection and watch the wall's roughness and velocity in real time. Bilingual (ES/EN) inside the page.
Spatial SIR model
An epidemic spreading on a 2D lattice: susceptible, infected and removed populations diffuse and react locally. Tune the vaccination level, drag the mouse to seed new infections, and watch the epidemic front propagate — or fail to.
φ⁴ model with AC driving
A field theory with a double-well (φ⁴) potential, quenched disorder, thermal noise and an oscillating external field. Paint domains in with the magnetic brush and watch their walls move under disorder, temperature and the AC drive.
Teaching
2D Ising model
Metropolis Monte Carlo simulation of the Ising model on a square lattice. Tune the temperature and an external field, switch between ferro- and antiferromagnetic coupling, and watch domains form and melt. Made for the Statistical Mechanics course at Instituto Balseiro.
Dzhanibekov effect — free rigid body
A free-rotating rigid body integrated from Euler's equations. Set the initial angular velocities and see the intermediate-axis (tennis-racket) instability flip the body mid-flight. Made for the Analytical Mechanics course at Instituto Balseiro.
Bead on a rotating hoop
A classic mechanics problem: a bead constrained to a circular hoop spinning about a vertical axis. Tune the hoop's angular velocity, the effective gravity and the friction to explore the bifurcation to an off-axis equilibrium. Made for the Analytical Mechanics course at Instituto Balseiro.
Double pendulum
Two double pendulums integrated with RK4 from independently adjustable initial conditions, so you can watch nearby trajectories diverge — a hands-on look at chaos. Made for the Analytical Mechanics course at Instituto Balseiro.