Project 4

From phys660
Revision as of 13:13, 2 April 2012 by Bnikolic (talk | contribs)
Jump to navigationJump to search

First and second order phase transition in the Ising model of ferromagnetism

Write a program for the 2D Ising model on a square lattice with periodic boundary conditions which is placed in an applied external magnetic field . The energy of a particular state of the system is given by:

where means that the sum runs over all pairs of nearest neighbor spins (attached to the lattice sites), and is the exchange coupling. Positive interaction between the spins leads to ferromagnetism, will negative gives rise to antiferromagnetism in the Ising model. Choose units so that and the Boltzmann constant is . The free parameters of the model are then just the temperature and the applied field .

Parth I