TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 nwatab4 天前
Hello HN! I’ve just released an interactive 3D Ising model simulator built with Next.js. It’s a teaching&#x2F;demo tool for exploring phase transitions and critical phenomena in ferromagnets.<p>## Key Features<p>- Real-time 3D visualization: See a central 2D slice through a 32×32×32 periodic lattice<p>- Adjustable parameters: Sweep the dimensionless coupling strength (βJ = J&#x2F;kBT) through the critical point (≈0.22) and tune the external field (βh = h&#x2F;kBT)<p>- Monte Carlo updates: Uses the Metropolis algorithm, updating the display every 200 × N³ flip attempts (≈33 million total)<p>- Live observables: Watch energy and magnetization evolve as you change parameters<p>## Why this matters The Ising model is a cornerstone of statistical physics and computational science courses. This tool makes it easy to:<p>- Visualize how temperature and field affect domain formation<p>- Observe the sharp change in magnetization near Tc<p>- Experiment with finite-size effects<p>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).<p>Demo &amp; source: <a href="https:&#x2F;&#x2F;github.com&#x2F;nwatab&#x2F;ising-model">https:&#x2F;&#x2F;github.com&#x2F;nwatab&#x2F;ising-model</a><p>Enjoy!

1 comment

gus_massa2 天前
&gt; <i>- Monte Carlo updates: Uses the Metropolis algorithm, updating the display every 200 × N³ flip attempts (≈33 million total)</i><p>I don&#x27;t see any update. How much time should I wait?