We have now seen how powerful the tools of statistical mechanics can be in the study of complex systems in thermal equilibrium and how they can be used to determine exactly the behaviour of some simplified, but nevertheless interesting, models of phase transitions. However, these exact solutions are sometimes lengthy and difficult and there is no guarantee that any particular model will yield exact results. For example, we were able to solve the two-dimensional, but not the three-dimensional, Ising model, and that only in zero magnetic field. So, it is natural to consider whether we can use a computer to simulate these systems. In this chapter we shall see that this is indeed possible; a great deal of our understanding of critical phenomena is based wholly or partly on the results of such numerical work. However, as we shall also see, such simulations are not entirely straightforward and a number of tricks are needed to obtain accurate results. This is partly a consequence of the very physics that makes the phase transitions interesting to start with. One should probably think of numerical simulation as a whole subject, almost an art, of its own; we shall have time only to scratch at the surface and discuss a few of the most important ideas.
We have now seen how powerful the tools of statistical mechanics can be in the study of complex systems in thermal equilibrium and how they can be used to determine exactly the behaviour of some simplified, but nevertheless interesting, models of phase transitions. However, these exact solutions are sometimes lengthy and difficult and there is no guarantee that any particular model will yield exact results. For example, we were able to solve the two-dimensional, but not the three-dimensional, Ising model, and that only in zero magnetic field. So, it is natural to consider whether we can use a computer to simulate these systems. In this chapter we shall see that this is indeed possible; a great deal of our understanding of critical phenomena is based wholly or partly on the results of such numerical work. However, as we shall also see, such simulations are not entirely straightforward and a number of tricks are needed to obtain accurate results. This is partly a consequence of the very physics that makes the phase transitions interesting to start with. One should probably think of numerical simulation as a whole subject, almost an art, of its own; we shall have time only to scratch at the surface and discuss a few of the most important ideas.
As we have seen on several occasions, a great many of the physical phenomena of interest concern collective behaviour or strongly correlated particles. While it is sometimes possible to obtain useful insight using approximation methods, such as perturbation theory, reliable controlled approximations do not exist. In such situations, numerical simulations have become an indispensable tool. We shall not attempt in this chapter to discuss computer programming nor shall we discuss many of the powerful methods, both algorithmic and in data analysis, that have been developed since numerical simulations have become an important research tool. Instead, we shall assume that the reader already has enough familiarity with computer programming to apply the notions which we discuss here. Our goal is to explain enough of the basics of the Monte Carlo method (classical and quantum) to allow the reader to apply it readily to interesting equilibrium statistical physics problems of the type discussed in this book. The problems in this chapter have been tailored with this in mind. The programs needed are relatively simple and the physics illustrates many of the phenomena already seen: phase transitions with and without spontaneous symmetry breaking, critical exponents, diverging susceptibilities, scaling, vortices, superfluids etc. Consequently, some of the problems are somewhat long and may be better considered as mini-projects. Markov chains, convergence and detailed balance Even relatively innocent looking models are impossible to solve exactly. The exact solution of the two-dimensional Ising model is known but not in the presence of an external magnetic field. In three dimensions, even in the absence of a magnetic field, the exact solution is not known. In fact, relatively few models can be solved exactly; see Reference [14] for an excellent review of the subject.
Until the early 1970s all calculations of critical exponents were made either by exactly solving a model for its thermodynamic properties and then examining its behaviour in the critical regime (as with the Ising model in one and two dimensions) or by direct numerical simulations (as with the three-dimensional Ising model) or by extrapolation from approximate solutions which become invalid in the vicinity of a phase transition (high-temperature expansions, for example). However, in a now-famous paper published in 1966, Kadanoff presented arguments which, he maintained, would allow one to simplify calculations in the critical regime to the point at which critical exponents could be extracted, without ever working out the partition function for the problem. However, though Kadanoff’s ideas showed great physical intuition about the processes giving rise to critical phenomena, they lacked the mathematical precision which might have given one faith in his results.
A new field opened when modern computers offered the possibility of performing extensive simulations of large systems. This allows known behaviours to be checked and provides an exploratory guide in circumstances where theoretical tools are absent. Measurements of observables can be compared both to existing theoretical expectations – providing a crucial test for their validity – and to experiments – checking the modelling of a physical system –. This chapter presents the background material needed to design simulations on a (relatively) large scale. Some numerical examples have already been presented in previous chapters, and we only give a few further illustrations, pertaining mainly to lattice gauge theory, the usefulness of which relies extensively on this method. We also describe a practical implementation of real space renormalization, known as the Monte Carlo Renormalization Group method (Ma, Swendsen, Wilson). Finally, we discuss specific issues relevant to the extension of the simulations to fermionic systems. Algorithms Generalities Systems with up to 10 6 to 10 7 variables can be handled by computers, and these numbers may soon be significantly increased. The measurements can be sufficiently numerous to allow statistical accuracy. Although simulated systems still have a modest size as compared to macroscopic systems, collective effects already clearly appear and accurate results about critical phenomena emerge from the numerical simulations. It turns out, when investigating more closely the available numerical methods, that one gets a better insight into the foundations of equilibrium statistical physics, the ergodicity problems, the meaning of probabilities and, last but not least, ways to approach equilibrium.
We have provided a concise introduction to the Ising model as one of the most important models in statistical mechanics and in studying the phenomenon of phase transition. The required theoretical background and derivation of the Hamiltonian of the model have also been presented. We finally have discussed the computational method and details to numerically solve the two- and three-dimensional Ising problems using Monte Carlo simulations. The related computer codes in both Python and Fortran, as well as a simulation trick to visualize the spin lattice, have also been provided.
In undergraduate statistical mechanics courses the Ising model always plays an important role because it is the simplest non-trivial model used to describe magnetic systems. The one-dimensional model is easily solved analytically, while the two-dimensional one can be solved exactly by the Onsager solution. For this reason, numerical simulations are usually used to solve the two-dimensional model. Keeping in mind that the two-dimensional model is the platform for studying phase transitions, it is usually an exercise in computational undergraduate courses because its numerical solution is relatively simple to implement and its critical exponents are perfectly known. The purpose of this article is to present a detailed numerical study of the second-order phase transition in the two-dimensional Ising model at an undergraduate level, allowing readers not only to compare the mean-field solution, the exact solution and the numerical one through a complete study of the order parameter, the correlation function and finite-size scaling, but to present the techniques, along with hints and tips, for solving it themselves. We present the elementary theory of phase transitions and explain how to implement Markov chain Monte Carlo simulations and perform them for different lattice sizes with periodic boundary conditions. Energy, magnetization, specific heat, magnetic susceptibility and the correlation function are calculated and the critical exponents determined by finite-size scaling techniques. The importance of the correlation length as the relevant parameter in phase transitions is emphasized.
Phase transitions and critical phenomena have consistently been among the principal subjects of active studies in statistical physics. The simple act of transforming one state of matter or phase into another, for instance by changing the temperature, has always captivated the curious mind. This book provides an introductory account on the theory of phase transitions and critical phenomena, a subject now recognized to be indispensable for students and researchers from many fields of physics and related disciplines. The first five chapters are very basic and quintessential, and cover standard topics such as mean-field theories, the renormalization group and scaling, universality, and statistical field theory methods. The remaining chapters develop more advanced concepts, including conformal field theory, the Kosterlitz-Thouless transition, the effects of randomness, percolation, exactly solvable models, series expansions, duality transformations, and numerical techniques. Moreover, a comprehensive series of appendices expand and clarify several issues not developed in the main text. The important role played by symmetry and topology in understanding the competition between phases and the resulting emergent collective behaviour, giving rise to rigidity and soft elementary excitations, is stressed throughout the book. Serious attempts have been directed toward a self-contained modular approach so that the reader does not have to refer to other sources for supplementary information. Accordingly, most of the concepts and calculations are described in detail, sometimes with additional/auxiliary descriptions given in appendices and exercises. The latter are presented as the topics develop with solutions found at the end of the book, thus giving the text a self-learning character.