Stochasm

User Guide Open the app ↗

Getting started: what it’s all about, and your first sixty seconds

What is Stochasm?

Stochasm is an interactive statistical-physics laboratory that runs in your browser: an exploratory scientific tool and a platform for creating digital art, all at once. Design a system (a lattice of coloured sites with rules for how they transform and move, a ferromagnet, a particle in a potential, or patchy discs and bead-spring polymers) and watch it evolve live under a genuine Monte Carlo or molecular-dynamics simulation. The outcome is never fully predictable (that's the physics), yet it is always shaped by what you design. Randomness on a leash.

Under the hood, each model's physics is a research-grade kernel compiled from C to WebAssembly, so what you see is not a toy approximation: it is the real model, running at native speed on your own machine, including across all your CPU cores when you simulate thousands of systems at once.

  • One system: paint, tune rules live, and watch a single lattice evolve.
  • An ensemble: launch thousands of independent replicas and watch the whole population drift through phase space as a cloud of points.
  • Machine learning: let the app cluster your ensemble by its measured observables and draw the community structure as a live graph.

For a sense of where this can go artistically, browse the Gallery: every piece there is a Stochasm simulation.

Quick start

Sixty seconds to your first simulation:

  1. Pick a model in the launcher: start with Multi-Component Lattice.
  2. Pick a mode: Single system to watch one lattice up close.
  3. Under Setup, leave Preset selected and choose one from the list: Fredrickson–Andersen (FA) is a classic. A live preview appears on the stage, and the Next bar slides up into the card.
  4. Press Next; the preview slides left and the Builder arrives at Step 1 of 2: lattice size and the site types. The defaults are fine for now.
  5. Press Next again for Step 2: the rules. Then press the green Initialize button at the bottom of the card.
  6. Press Play (top right). The lattice comes alive.
A Fredrickson–Andersen lattice a few seconds after Play: orange excited sites working through the kinetic constraint.
A Fredrickson–Andersen lattice a few seconds after Play: orange excited sites working through the kinetic constraint.

Now explore: click and drag on the lattice to paint sites by hand (pick the type in the Interaction & Paint window, the brush icon next to the view selector). The Controls panel's Simulation tab tunes rates, temperature and fields live; to change the system's structure (types, rules, sizes), press Back to Builder in the header, refine, and either Resume Simulation to pick the held run back up or Re-Initialize to re-seed it from the refined design. When you want a different system entirely, Start Fresh returns you to the launcher.

Try Ensemble mode next: Start Fresh → mode Ensemble → the same FA preset → Next → Next → Initialize → Play. You are now running ~10,000 independent lattices; each dot in the view is one of them. Click any dot to inspect that system close-up.
© Nicholas B. Tito · Stochasm: explore statistical thermodynamics, machine learning, and create digital art.