02 28 08 Forweb
02 28 08 Forweb
Lecture 12:
In-Class Simulation : Ising Model
February 28, 2008
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
Review
• For the spin 1/2 Ising model with only nearest neighbor
interactions on a cubic lattice, what do we know from analytical
solutions about the 1, 2, and 3 -dimensional behavior?
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
Review
• In the para-ferro magnetic transition which we will simulate
today, describe using energy and entropy arguments why the
phase transition occurs.
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
Spin-Spin Correlation in the Ising Model
We are going to add one more correlation function to the series of correlation
functions that we have studied so far. This correlation function is called the spin-
spin correlation function, and it tell us how much correlation we can expect
between two spins that are a given distance apart.
Consider a series of spins.
If the two sites have the the same spin half the time, and opposite spins half the
time (completely random, uncorrelated), !
!
Qualitatively, we might expect the function g(m) to look something like this:
g(m)
0 m
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
Spin-Spin Correlation Function
In fact, we can rigorously show that the correlation function exhibits the scaling form:
1 % m (
g( m) ~ exp'# $*
m " & )
The parameter ξ is known as the correlation length and it varies with temperature.
ξ can be thought of as a measure of the distance over which spins will respond to
what each other!are doing.
g(m)
Decreasing ξ
(correlation
decays faster)
m
Domain structure from http://www-fcs.acs.i.kyoto-u.ac.jp/%7Eharada/monte-en.html
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
Correlation Length
At high T, the correlation length is low. The spins fluctuate rapidly, but they do
so independently of each other.
Perhaps surprisingly, at low T, the correlation length is also low (even though the
spins tend to be aligned). The point is that flipping σ0 will hardly affect σn unless
they are neighbors.
Near the critical temperature, the situation is different. The spins are constantly
changing, but not independently. There are large domains of parallel spins
which persist for a long time. Thus, spins far apart from each other are strongly
correlated.
T
Tc
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
Diverging Correlation Length
This means that a given spin is infinitely aware of what it’s neighbors, no matter how
far away they are, are doing -- and that it is capable of responding because the
thermal energy is high enough.
And, this divergence in the correlation length is responsible for the critical slowing
down that we discussed last time as well as the large fluctuations in the system.
Near a phase transition, it takes an infinite amount of time for such a system to
actually equilibrate during a Monte Carlo simulation. This is because every time a
spin is flipped, all of it’s neighbors want to respond -- and can.
In this regime, the Metropolis approach - where one flip is switched at a time -
becomes extremely inefficient for sampling phase space. We tend to rely on other
approaches such as Wolff flipping (cluster flipping, where entire domains are flipped
at once).
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
In-Class Simulation
Today, we will begin simulating the 2D Ising Model - and in the process start your next
homework assignment.
The code that we will use comes to us from RPI*, and is a very nice java implementation
of the Ising Model. (It actually can generalize to continuous spins for a variety of
dimensions, functionality which we will not make use of today).
• We will be looking for signs of phase transitions using the 2D Ising model
• The order parameter should look something like this, in principle:
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
In Class Simulation
• Second Task: Eyeball the transition behavior of the 2D anti-
ferromagnet for an 8x8 system.
• Choose
– “1” for number of z lattice points,
– J = -1.0 for the interaction strength
– No applied external field
– Periodic BCs in X and Y, but not in Z
– Make sure “Constrained To Z Axis” is checked
– Make sure “Equalize after Resets” is checked
• For each size, vary the temperature starting from 1.3 and
increasing in increments of 0.3 up to 3.4
• Try to eyeball where the phase transition occurs.
• You can look at plots of average magnetization for each run to
help you.
• At what size does the transition seem sharpest?
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
In Class Simulation & Homework
• GOAL: estimate the critical transition temperature and the
susceptibility for the 2D easy-axis ferromagnet.
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
In Class Simulation & Homework
• GOAL: estimate the critical transition temperature and the
susceptibility for the 2D easy-axis ferromagnet.
• We will explore systems of size 4x4, 8x8, and 16x16. Each of you should
choose two of these sizes.
• Then, for each size, you should vary the temperature from 1.3 to 3.4 in
increments of 0.3
• Thus, each of you should complete sixteen runs for this experiment.
• For each run, download the data on the magnetization. You need to
record
– average value of m . Note that this is the magnetization per site, and
it is an absolute value.
– The error in your calculation of the average
– The number of steps over which you computed the average (~5000)
• You should see good evidence for a phase transition!
!
• In order to get better statistics, send me (Elif) your results by
Mar 6, which I will compile and make available on the course
website. Next homework assignment will be posted today,
and due Tuesday Mar 11.
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley
The Ising on the Cake
Now that we are concluding our discussion of Monte Carlo methods,
you should be familiar with the following concepts and ideas.
Elif Ertekin & Jeffrey C. Grossman, NSE C242 & Phys C203, Spring 2008, U.C. Berkeley