Settings

Theme

Show HN: 3D Ising Model Simulation – interactive web-based Monte Carlo simulator

ising-model.vercel.app

1 points by nwatab 7 months ago · 2 comments · 1 min read

Reader

Hello HN! I’ve just released an interactive 3D Ising model simulator built with Next.js. It’s a teaching/demo tool for exploring phase transitions and critical phenomena in ferromagnets.

## Key Features

- Real-time 3D visualization: See a central 2D slice through a 32×32×32 periodic lattice

- Adjustable parameters: Sweep the dimensionless coupling strength (βJ = J/kBT) through the critical point (≈0.22) and tune the external field (βh = h/kBT)

- Monte Carlo updates: Uses the Metropolis algorithm, updating the display every 200 × N³ flip attempts (≈33 million total)

- Live observables: Watch energy and magnetization evolve as you change parameters

## Why this matters The Ising model is a cornerstone of statistical physics and computational science courses. This tool makes it easy to:

- Visualize how temperature and field affect domain formation

- Observe the sharp change in magnetization near Tc

- Experiment with finite-size effects

Try it out and let me know what you think! I’d love feedback on performance, usability, or ideas for new features (e.g., different lattice sizes or algorithms).

Demo & source: https://github.com/nwatab/ising-model

Enjoy!

gus_massa 7 months ago

> - Monte Carlo updates: Uses the Metropolis algorithm, updating the display every 200 × N³ flip attempts (≈33 million total)

I don't see any update. How much time should I wait?

  • nwatabOP 7 months ago

    Thanks for trying. I'm sorry after this post, I released newer version on May 18 and every simulation is precomputed. So, no waiting!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection