ziyueyang37 / Ising-model

Implement 2D Ising model using mean field theory, Onsager's formula and Monte Carlo simulation. Course project of Thermodynamics and Statistical Mechanics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ising-model

Implement 2D Ising model using mean field theory, Onsager's formula and Monte Carlo simulation. Course project of Thermodynamics and Statistical Mechanics.

To use the code

  1. Clone the repository
  2. Run <simulation.py> (Might take hours)
  3. Run <plot_cv.py> to plot specific heat.
  4. Run <plot_mag.py> to plot magnetization.
  5. Figures are saved in folder ./Figures

About

Implement 2D Ising model using mean field theory, Onsager's formula and Monte Carlo simulation. Course project of Thermodynamics and Statistical Mechanics.

License:MIT License


Languages

Language:Python 100.0%