Monte Carlo Simulation of 1D Ising Model: Bo Gazi Ci University Department of Physics Phys 496/68N Fall 2011 Project 2
Monte Carlo Simulation of 1D Ising Model: Bo Gazi Ci University Department of Physics Phys 496/68N Fall 2011 Project 2
Department of Physics
Phys 496/68N Taylan Akdoğan Fall 2011
Project 2
Due on December 30th , 2011
1D Ising Model
Assume a periodic boundary condition; the last particle is next to the first particle: sN +1 ≡ s1 Write
a Monte Carlo code using Metropolis et. al. algorithm to simulate this system for a given N, J, B,
and T. Note that the probability of being in a state S = {s1 , s2 , ... , sN } is, according to statistical
mechanics, related as:
PS ∼ e−β·E(S)
Then the acceptance comparison is done using
r = exp(−β · ∆E)
The magnetization per spin of the system is simply the average of the spins.
N
1 1 X
M= sk
N N k=1
In class, we derived the analytical solution for the average value of magnetization at the thermodynamic
limit. The magnetization per particle for a 1D Ising system at given J, B, and T is calculated by:
1 sinh B/kT
M=q
N sinh2 B/kT + e−4J/kT
Project:
• Take N = 50,
• Make Nmeasure = 20 measurements with Nsweep = 50 sweeps separated with each measurements
• Make a series of measurements for J = 1k, T = 1 K for B = {−1, ..., 1}k with 0.1k steps.
• Make a series of measurements for J = 1k, T = 2 K for B = {−1, ..., 1}k with 0.1k steps.
• Make a plot showing your simulation results with their corresponding error bars for Nmeasure
measurements, and the expected curve calculated by the analytical solution in a single figure as
shown below:
1
T=1
0.8 T=2
0.6
0.4
0.2
M/N
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
B/k