Monte Carlo Simulation of the Ising Model. Abstract

Similar documents
Numerical Analysis of 2-D Ising Model. Ishita Agarwal Masters in Physics (University of Bonn) 17 th March 2011

Metropolis Monte Carlo simulation of the Ising Model

Markov Chain Monte Carlo The Metropolis-Hastings Algorithm

Progress toward a Monte Carlo Simulation of the Ice VI-VII Phase Transition

Physics 115/242 Monte Carlo simulations in Statistical Physics

Introduction to the Renormalization Group

Lab 70 in TFFM08. Curie & Ising

Spontaneous Symmetry Breaking

Any live cell with less than 2 live neighbours dies. Any live cell with 2 or 3 live neighbours lives on to the next step.

The Phase Transition of the 2D-Ising Model

LECTURE 10: Monte Carlo Methods II

Copyright 2001 University of Cambridge. Not to be quoted or copied without permission.

The XY-Model. David-Alexander Robinson Sch th January 2012

A Monte Carlo Implementation of the Ising Model in Python

3.320 Lecture 18 (4/12/05)

REVIEW: Derivation of the Mean Field Result

Simulation of the two-dimensional square-lattice Lenz-Ising model in Python

Advanced Monte Carlo Methods Problems

Kinetic Monte Carlo (KMC) Kinetic Monte Carlo (KMC)

Monte Carlo Simulation of the 2D Ising model

Monte-Carlo simulation of small 2D Ising lattice with Metropolis dynamics

J ij S i S j B i S i (1)

Ising Model. Ising Lattice. E. J. Maginn, J. K. Shah

11/13/2018. The Hall Effect. The Hall Effect. The Hall Effect. Consider a magnetic field perpendicular to a flat, currentcarrying

Consider a magnetic field perpendicular to a flat, currentcarrying

WORLD SCIENTIFIC (2014)

Phase Transition & Approximate Partition Function In Ising Model and Percolation In Two Dimension: Specifically For Square Lattices

Lecture 24 Origins of Magnetization (A number of illustrations in this lecture were generously provided by Prof. Geoffrey Beach)

3.320: Lecture 19 (4/14/05) Free Energies and physical Coarse-graining. ,T) + < σ > dµ

Monte Caro simulations

Computational Simulations of Magnets at High Temperatures Utilizing the Ising Model and the Monte Carlo Technique

E = <ij> N 2. (0.3) (so that k BT

Phase transitions and finite-size scaling

Immigration, integration and ghetto formation

Computational Physics (6810): Session 13

Section 24.8 Magnets and Magnetic Materials Pearson Education, Inc.

Monte Carlo Simulations in Statistical Physics

Magnetic Monopoles in Spin Ice

2D and 3D Ising model using Monte Carlo and Metropolis method

Topological defects and its role in the phase transition of a dense defect system

Critical Dynamics of Two-Replica Cluster Algorithms

Kyle Reing University of Southern California April 18, 2018

Fig. 1 Cluster flip: before. The region inside the dotted line is flipped in one Wolff move. Let this configuration be A.

Advanced Sampling Algorithms

S j H o = gµ o H o. j=1

André Schleife Department of Materials Science and Engineering

Janus: FPGA Based System for Scientific Computing Filippo Mantovani

arxiv:cond-mat/ v2 [cond-mat.stat-mech] 2 Apr 1998

Parallel Tempering Algorithm in Monte Carlo Simulation

The Monte Carlo Method of Random Sampling in Statistical Physics

Simulations with MM Force Fields. Monte Carlo (MC) and Molecular Dynamics (MD) Video II.vi

Monte Carlo (MC) Simulation Methods. Elisa Fadda

Kinetic Monte Carlo (KMC)

arxiv:cond-mat/ v4 [cond-mat.dis-nn] 23 May 2001

Markov Chain Monte Carlo Method

Monte Carlo. Lecture 15 4/9/18. Harvard SEAS AP 275 Atomistic Modeling of Materials Boris Kozinsky

Electromagnetism II. Cristina Lazzeroni Lecture 5

ICCP Project 2 - Advanced Monte Carlo Methods Choose one of the three options below

COPYRIGHTED MATERIAL. Production of Net Magnetization. Chapter 1

Ferromagnetism. In free space, the flux density and magnetizing field strength are related by the expression

Cluster Algorithms to Reduce Critical Slowing Down

221B Lecture Notes Spontaneous Symmetry Breaking

J 12 J 23 J 34. Driving forces in the nano-magnetism world. Intra-atomic exchange, electron correlation effects: Inter-atomic exchange: MAGNETIC ORDER

Phase transitions in the Ising model with random gap defects using the Monte Carlo method

Examination paper for TFY4245 Faststoff-fysikk, videregående kurs

Propp-Wilson Algorithm (and sampling the Ising model)

Magnetic properties of spherical fcc clusters with radial surface anisotropy

Classical Monte Carlo Simulations

Why Water Freezes (A probabilistic view of phase transitions)

Markov Processes. Stochastic process. Markov process

Ginzburg-Landau Theory of Phase Transitions

ABSTRACT. We measure the efficiency of the Metropolis, Swendsen-Wang, and Wolff algorithms in

Potts And XY, Together At Last

Physics 127b: Statistical Mechanics. Landau Theory of Second Order Phase Transitions. Order Parameter

I Basic Spin Physics. 1. Nuclear Magnetism

Molecular computer experiment

Phase Transitions and Renormalization:

Their Statistical Analvsis. With Web-Based Fortran Code. Berg

Monte Carlo Simulation of Ferroelectric Domain Structure: Electrostatic and Elastic Strain Energy Contributions

Simulation of Hysteresis In Permalloy Films

Graphical Representations and Cluster Algorithms

The mixed-spins 1/2 and 3/2 Blume Capel model with a random crystal field

PHY331 Magnetism. Lecture 6

Electromagnetism II. Instructor: Andrei Sirenko Spring 2013 Thursdays 1 pm 4 pm. Spring 2013, NJIT 1

Phase Transitions and Critical Behavior:

3. General properties of phase transitions and the Landau theory

theory, which can be quite useful in more complex systems.

Let's look at the force on a current loop. In a uniform field it is zero: F = I I (dl B) =I I dl B =0 (4) since B is constant and comes outside the in

Renormalization Group for the Two-Dimensional Ising Model

CRITICAL EXPONENTS OF SMALL ONE-DIMENSIONAL ISING MAGNETIC D. V. Spirin, V. N. Udodov

In-class exercises. Day 1

Metropolis/Variational Monte Carlo. Microscopic Theories of Nuclear Structure, Dynamics and Electroweak Currents June 12-30, 2017, ECT*, Trento, Italy

Hanoi 7/11/2018. Ngo Van Thanh, Institute of Physics, Hanoi, Vietnam.

Phase Transitions of Random Binary Magnetic Square Lattice Ising Systems

Physics 127b: Statistical Mechanics. Second Order Phase Transitions. The Ising Ferromagnet

Computer simulation methods (2) Dr. Vania Calandrini

Calculations of the Partition Function Zeros for the Ising Ferromagnet on 6 x 6 Square Lattice with Periodic Boundary Conditions

Phase transition and spontaneous symmetry breaking

Study of the Magnetic Properties of a Lieb Core-Shell Nano-Structure: Monte Carlo Simulations

Magnets, 1D quantum system, and quantum Phase transitions

Transcription:

Monte Carlo Simulation of the Ising Model Saryu Jindal 1 1 Department of Chemical Engineering and Material Sciences, University of California, Davis, CA 95616 (Dated: June 9, 2007) Abstract This paper explores the order-disorder transition at a critical temperature in the Ising model by exploring the magnetization per site and specific heat at various temperatures. A 2-D 100 100 Ising model with periodic boundary conditions was used. Each site was assigned a +1 or -1 spin. No external magnetic field effects were considered. J was set to -4 ev. A Metropolis algorithm was used to solve for the 2-D model. The algorithm was run long enough to let the system equilibrate. It was observed that the transition in mean magnetization becomes really sharp at the critical temperature. The average magnetization was zero above the critical temperature (paramagnetic phase) and one below this temperature (ferromagnetic phase). saryuj@gmail.com 1

I. INTRODUCTION Ising Model is a well studied model in statistical mechanics. Even though the Ising model is very simple it is extremely successful in predicting the behavior of a real system. The most important property of this model is its order-disorder phase transition. Above a critical temperature the magnetization per site m is quite small, whereas below it the magnetization is definitely non-zero and for most part close to its maximum value of 1. This seems like a sensible way for the model to behave as we know that at high temperatures all the spins are randomly aligned and at lower temperatures either all spins are aligned up or down. However, as we approach the critical temperature,t c, the transition from small m to large m becomes really sharp. Below T c the system randomly chooses to either have all spins aligned up or down. We are interested in studying this phase transition behavior of the Ising model. Infact, the magnetization per site and specific heat plots presented in the results section depict this behavior very clearly. This paper will use the ideas from statistical mechanics (as described above) to solve for a 2-D Ising model. We will calculate the magnetization per site and specific heat to observe the order-disorder transition in the Ising model at a critical temperature. The first section introduces some concepts necessary to understand the model. The second section describes the Ising model and its properties in detail. The third section will go over the Metropolis algorithm used to simulate the Ising model. The fourth section will present and discuss some results and finally the fifth section will provide a summary. II. CONCEPTS FROM STATISTICAL MECHANICS It is almost impossible to exactly solve the mathematics for systems with many atoms or molecules. In principle, it is possible to write simple equations of motion for such a system. However, the sheer number of these equations makes the task of solving them daunting. For example, one liter of oxygen at standard temperature and pressure has 3 10 22 oxygen molecules, all moving around and interacting with each other and the walls of the container. For systems like this it is not feasible to solve the Hamiltonian s equation. However, the macroscopic properties of such systems are well-behaved and predictable. Statistical mechanics side steps the problem of solving the equations of motions for such large systems and instead calculates these gross properties by treating them in a probabilistic fashion. 2

Instead of looking for exact solutions we look for the probability of the system being in one state or another. Suppose our system is in a state A, we need only wait a small time before our system would be in any one of a very large number of other possible states. This is where the probabilistic treatment is relevant. A set of weights (w(t)) can be defined that will represent the probability of the system being in state A at time t. Given enough time our system will evolve to an equilibrium state where these weights can be represented by the Boltzmann s probability distribution, p A = e E A/kT Z, (1) where E A is the energy of state A, k is the Boltzmann s constant and Z = e E A/kT is the normalization constant. By using above we can obtain the expectation value of a quantity Q by, Q = A Q A p A, (2) where Q A is the value of the quantity in state A and p A is the probability for the system to be in state A. The above holds for systems in equilibrium state. Non-equilibrium systems are treated in a complex way that will not be discussed in this paper. III. ISING MODEL The Ising model is a model of a magnet. The essential concept behind it, or any magnetic model, is that the magnetism of a bulk material is made up of combined magnetic dipole moment of many atomic spins within the material. When current is passed through a closed loop it produces some magnetism. Similarly, when electrons in an atom rotate around the nucleus a small magnetism is produced. These atomic magnets are just like normal magnets and have magnet vectors that point up or down (from south to north pole or vice-versa). In normal materials these atomic magnets are aligned randomly and hence cancel each others magnetic field. However, in some materials these atomic magnets can align in a particulate direction and add up to give rise to magnetism. A good example of such a material would be iron. In the Ising model we can choose any type of geomtry we want (e.g. simple cubic lattice) and assign a spin value to each lattice site. However, in this paper we stick to a 2-D Ising model as depicted in Fig.1. 3

FIG. 1: A 2-D lattice model. The red spins only interacts with the yellow spins The spin can only take a +1 or -1 value. Also, in real systems these spins interact with each other. So in order to compensate for the interactions the ising model includes a term proportional to the product of two spins,s i s j, in its Hamiltonian. However, it does assume that all spins interact with the same strength J (units of energy) and only spins on the nearest neighbor lattice sites are allowed to interact with each other. The Hamiltonian for such a system then becomes: H = J s i s j, (3) ij where ij indicates site i and j in the sum are neighbors. The minus sign is conventional and dictates the choice of sign of J. A positive value of J makes the spins want to line up and makes the material ferromagnetic and a negative value makes it anti-ferromagnetic. In the Ising model, at high temperatures all the spins are random and uncorrelated, but as the temperature is lowered the interactions between them encourages nearby spins to point in the same direction, giving rise to correlation in the system. This also results in the formation of clusters which is a group of spins all pointing in the same direction. As we approach the critical temperature (T c ) the size of these clusters diverges, such that precisely at the transition we may encounter arbitrarily large areas in which spins are pointing mostly up or down. Then, as we pass below the transition temperature the system spontaneously chooses to have majority of its spins either point up or down. The direction it picks solely depends on the random detail of the thermal fluctuations it was going through as it was moving through T c. In this way the system undergoes a order-disorder phase transition or a paramagnetic to ferromagnetic phase transition. 4

IV. METROPOLIS ALGORITHM It is a widely used algorithm that generates a sequence of microscopic states. Suppose we were trying to calculate A by random sampling i.e. generate n states at random then we would have: A = ni=1 A(s i )e H(s i)/kt ni=1 e H(s i)/kt (4) This would lead to poor convergence of estimate of A because for many of the n states the P eq would be small. An alternative to this approach would be to sample states in such a way that they occur with a non-random distribution (P (s i )) giving: A = ni=1 A(s i )e H(s i)/kt p(s i ) n i=1 e H(s i )/kt p(s i ) The best choice is to choose P (s i ) equal to the Boltzmann s probability distribution function or equilibrium distribution. With this choice we get: ni=1 A(s i ) A = n This choice leads to a rapidly converging estimate of A. Metropolis algorithm helps generate a sequence of states according to a transition probability, W (S(t l ) S(t l+1 )) = W l,l+1, (7) where W is the probability of going from state S(l) to S(l + 1). The states are generated stochastically according to the above probability. These sequence of states is called Markov chain i.e the subsequent state is only dependent on the previous state. However, W l,l+1 has to obey detailed balance i.e the number of states transforming from s l to s l the number of states transforming back from s l to s l. (5) (6) has equal to V. APPLICATION TO CODE 1. Apply periodic boundary conditions to the system so that all the spins have the same environment. Periodic images are obtained by translating the system by assing multiples of n. 2. Pick a site at random by calling two random numbers r 1 and r 2 and setting [x, y] = [r 1, r 2 ]. 5

3. Attempt a Monte-Carlo move consisting of change of spin. So if earlier the site has spin-up it would be changed to spin-down and vice-versa. 4. Compute the change in the value of the Hamiltonian by using, E = 2J ij s i s j (8) 5. Determine wheter to accept or reject the move according to the following rules: (a) if H 0, accept the move. (b) if H 0,pick a random number r between 0 and 1. i. if r e H/kT, accept the move. ii. if r e H/kT, reject the move. 6. Update your data. (a) if accepted, change the lattice occupation else leave lattice unchanged. (b) if accepted, update energy else leave energy unchanged. (c) update the counter for time by 1. 7. Repeat all the steps. VI. RESULTS This Ising model was run at 11 different temperature between 0.5 and 3.0 for a total of 3000 Monte Carlo steps. The value of J was -4.0 ev. We started with a system where all the lattice sites were spin up. By Monte Carlo steps I mean: When we perform N Monte Carlo steps one for each spin in the system on average - we have complete one sweep of the lattice. The x axis in all the following plots will correspond to this time. Another important concept in Monte Carlo calculations is the idea of an equilibration time. It means that we have to run our system for a suitably long time until it has come to equilibrium and then we measure the quantities we are interested in over another long period of time and take an average to estimate the quantity. Equilibrium means that the average probability of finding our system in any particular state is proportional to the Boltzmann s probability 6

distribution as discussed in Section II. So if we start our system in any random state at a certain temperature eventually the system will reach an equilibrium state. The following energy vs. monte carlo time plots depict this behavior. The energy of the system increases steadily until it reaches the equilibrium state and then simply oscillates around an average value. The equilibration time was 200 mcs on average. -6.2 x1e4-6.4-6.6-6.8-7.0-7.2-7.4-7.6 0 100 200 300 400 500 FIG. 2: A Energy vs Timestep plot for Temperature 2.1. The equilibration time was 200 mcs Notice how the system s equilibration time decreases with temperature. However, just to be safe I excluded 200 time steps from all the data. We also obtained snapshots of the final state at different temperatures of the Ising model (fig. 5, 6,??). We notice that at low temperatures most of our spins are still up however as the system aproaches the critical temperature we see the formation of spin up and down clusters. Finally we calculated the mean magnetisation (fig. 8) and the specific heat per spin (fig. 9) for the Ising model. Both properties show the right behavior. The magnetisation of the system goes from 1 to 0 as the temperature is increased and the spins start aligning randomly. However, the magnetisation curve is not very smooth due to lack of enough data. I should have run the code at more temperatures. But we do see the phase transition very clearly at the critical temperature of 2.269. The specific heat also shows the right behavior. 7

-4.5 x1e4-5.0-5.5-6.0-6.5-7.0-7.5 0 100 200 300 400 500 FIG. 3: A Energy vs Timestep plot for Temperature 2.4. The equilibration time was 200 mcs It steadilt increases till it reaches the critical temperature and then decreases back again. VII. SUMMARY The Ising model was run at 11 different temperatures between 0.5 and 3.0 for 3000 Monte Carlo steps. The J value was -4 ev. The equilibration time was found to be 200 mcs. The data from the runs was used to construct magnetisation and specific heat per spin plots. The Ising model code reproduced the expected behavior as discussed in section III. We were able to see the phase transition in the Ising model at the critical temperature of 2.269. The magnetisation went from 1 to 0 as the temperature increased. The specific heat reached a maximum at the critical temperature and then decreased. The statistical error was not calculated in this paper. However, since it is a Monte Carlo is a statistical model there is always some error associated with all the calculations. 8

-2.5 x1e4-3.0-3.5-4.0-4.5-5.0-5.5-6.0-6.5 0 100 200 300 400 500 FIG. 4: A Energy vs Timestep plot for Temperature 3.0. The equilibration time was 200 mcs 100 80 60 40 20 0 0 20 40 60 80 100 FIG. 5: Snapshot of a 100 100 ising model at a temperature of 2.1 VIII. REFERENCE M. E. J. Newman and G. T. Barkema, Monte Carlo Methods in Statistical Physics, Clarendon press, 2001 9

100 80 60 40 20 0 0 20 40 60 80 100 FIG. 6: Snapshot of a 100 100 ising model at a temperature of 2.268 100 80 60 40 20 0 0 20 40 60 80 100 FIG. 7: Snapshot of a 100 100 ising model at a temperature of 3.0 10

1.0 Magnetization per site vs Temperature 0.8 Magnetisation 0.6 0.4 0.2 0.0 0.5 1.0 1.5 2.0 2.5 3.0 Temperature FIG. 8: The magnetisation per spin of a 100 100 2D Ising model 2.0 Specific heat per site vs Temperature 1.5 Specific heat 1.0 0.5 0.0 0.5 1.0 1.5 2.0 2.5 3.0 Temperature FIG. 9: The specific heat per spin of a 100 100 2D Ising model 11