Abstract 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.
Abstract 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.
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.
To demonstrate the application of computational physics in modern statistical physics, this paper investigates the critical behavior of a finite-size ferromagnetic system based on the two-dimensional square-lattice Ising model.A nearest-neighbor Ising Hamiltonian is constructed, and periodic boundary conditions are adopted to reduce finite-boundary effects.The Metropolis Monte Carlo algorithm is used to sample spin configurations at different temperatures, while energy, magnetization, specific heat, magnetic susceptibility and Binder cumulant are calculated to describe the transition from an ordered state to a disordered state.The simulation results show that the system exhibits clear long-range order at low temperatures, where the order parameter remains high.As temperature increases, thermal fluctuations become stronger, magnetization decreases rapidly, and the system gradually evolves into a disordered state.The specific heat curve shows a pronounced peak at approximately (T = 2.269), while the susceptibility peak shifts slightly toward the high-temperature side due to finite-size effects and the discrete temperature grid.Overall, the simulated critical region is consistent with the theoretical critical temperature of the two-dimensional square-lattice Ising model.Spin-configuration analysis further reveals enhanced fluctuations and domain reconstruction near the critical region.In addition, a thermalization criterion and an extended sampling test for L = 48 near the critical region are added to examine the influence of finite sampling and equilibration.These results indicate that Monte Carlo simulation of the two-dimensional Ising model can effectively reproduce continuous phase transition, critical fluctuation and finite-size effects, providing a basic computational case for understanding critical phenomena in complex systems and data-driven physical analysis.
This discussion serves as an introduction to the use of Monte Carlo simulations as a useful way to evaluate the observables of a ferromagnet. Key background is given about the relevance and effectiveness of this stochastic approach and in particular the applicability of the Metropolis-Hastings algorithm. Importantly the potentially devastating effects of spontaneous magnetization are highlighted and a means to avert this is examined. An Ising model is introduced and used to investigate the properties of a two dimensional ferromagnet with respect to its magnetization and energy at varying temperatures. The observables are calculated and a phase transition at a critical temperature is also illustrated and evaluated. Lastly a finite size scaling analysis is undertaken to determine the critical exponents and the Curie temperature is calculated using a ratio of cumulants with differing lattice sizes. The results obtained from the simulation are compared to exact calculations to endorse the validity of this numerical process. A copy of the code used, written in C++, is enclosed and is freely available for use and modification under the General Public License.
Many problems in statistical physics resist exact solution once the number of interacting particles becomes large, and the two-dimensional Ising model is a classic case where numerical simulation fills that gap. This paper reports a Monte Carlo study of the two-dimensional Ising model using the Metropolis algorithm, undertaken to examine how magnetization, internal energy, specific heat, and magnetic susceptibility change with temperature. Spin configurations were generated on a square lattice under periodic boundary conditions, with each proposed spin flip accepted or rejected according to the Boltzmann weight of the resulting energy change. The simulation reproduces the expected transition from an ordered ferromagnetic state at low temperature to a disordered paramagnetic state at high temperature, with magnetization falling sharply and both specific heat and susceptibility peaking near a critical temperature of Tc ≈ 2.3–2.4 (in units of J/kB), consistent with the exact value obtained analytically for this system. These results confirm that the Metropolis algorithm, despite its simplicity, remains a dependable tool for locating second-order phase transitions and extracting thermodynamic quantities in lattice spin systems, and the same computational framework can be adapted to more elaborate models used in condensed matter and materials research.
Phase transitions are widespread physical phenomena in nature and the phase transition of ferromagnetic substances which can be described by Ising model is an important part of physics. This paper discusses the phase transition of the low-dimensional Ising model. For one-dimensional Ising model, the exact solution is given and no phase transition is found when there is no external magnetic field. For two-dimensional Ising model, Monte Carlo method along with importance sampling, careful balance conditions and the Metropolis algorithm is introduced to numerically simulate it. The trends of order parameters like magnetization, specific heat and magnetic susceptibility are analyzed and the mutation of some order parameters is found around critical temperature. The influences of external magnetic field and the scale of system are discussed and critical temperature of phase transition is explored by several methods, which is eventually found around 2.269 ( kBT/J). Lastly, compared with theoretical values, the disadvantages are pointed out and optimization suggestions are raised for improvement.
Abstract This first chapter is an elementary introduction to the models and methods that will be used later. The ferromagnetic (Curie) transition serves as our prototype for all second-order phase transitions, and serves also to introduce the notions of broken symmetry and of order parameter. The basic model of ferromagnetism, namely the Ising model, is described in Section 1.2, and solved for an elementary case. The reason why this model is so important is that it has an exact solution in two dimensions, which exhibits spontaneous magnetization. Section 1.3 is devoted to a first approach to mean-field methods, which remain amongst the most frequently exploited approximations even today. They will lead us to define a first set of critical exponents; the listing of such exponents will then be completed in Section 1.4, once correlation functions have been defined. Finally, in Section 1.5 a qualitative description of critical phenomena will enable us, in a first approximation, to define the concept of scale invariance and its relation to the behaviour of the theory under dilatations.