Introduction to Statistical Mechanics, Phase Transitions, and the Ising Model

  • Name: 贺一珺
  • Student Number: 2014302290002
  • Class: 物理学弘毅班

Abstract

In statistical physics, we are interested in multi-particle and many-state systems particularly where the interactions between particles play an essntial role, which can exhibit a phenomenon known as a phase transition. This phenomenon can be observed universally in nature such as the appearance of ferromagnetism in materials such as iron. The transition like this require the concept of temperature, which is quite significant in condensed matter physics.
In this article I will give a brief introduction to Ising model and try to use it to investigate several properties of solid like Magnetization, Energy per spin, Specific heat per spin and susceptibility of particles. To do all of these works, I will use Mean Field Theory which is widely used in the study of statistical mechanics to symplify the calculation and use the Monte Carco Method which is useful when solving some numerical problems to simulate the process of thermalequibulum in real world. What's more, phase transitions will also be investigated in this article so that one could have a deeper understanding about the equilibrium state under various tempreture and appreciate the tremendous beauty of the real world.
All of my codes are uploaded here

Background

Ising Model

Magnetism is an inherently quantum phenomena which cannot be exhibited classically. To decribe the behavior of a magnetic material, we should introduce the electron's spin and the associated magnetic moment in quantum mechanics. The Ising model is a mathematical model of ferromagnetism in statistical mechanics. In Ising Model, the spins are arranged in a graph, usually a lattice, allowing each spin to interact with its neighbors. Ferromagnetism arises when a collection of such spins conspire so that all of their magnetic moments point in the same direction, yielding a total moment that is macroscopic in size. Each spin is able to point at two directions and thus can be denoted by two numbers. After we introduce the concept of spin, the energy of the system is given by these neighbouring interactions and the interaction between the spins and an external magnetic field:

Energy

For simplicity, we assume that:


.
for neighberhood spins.
Less energy is prefered by a system, thus it can be derived that for a ferromagnetic material all spin are aligned.
Assuming that our spin system is in equilibrium with a heat bath at temperature T, so that we can use the conclusion of statistical mechanics directly. The probability of finding the system in any particular state is proportional to the Boltzmann factor

Boltzmann Distribution

And then we get the measured magnetization of the system:

Magnetization

where



Ising quench(From wikipedia)

Mean Field Theory

Mean field theory is a useful approach for calculating the properties of a spin system. The magnetization is related to the average spin alignment. For an infinitely large system, the spins will all have the same average alignment.Hence all spins must have the same average properties. The total magnetization at temprature T for a system of N spins will then be

Total Magnetization

Thus we can derive M if we can calculate <si>. An exact computation of <si> would require the probabilities of all possible microstates. We cannot do this completely constricted by our ability to calculate. The only thing we can do is to consider an approximate alternative known as mean field theory.
Using the result of statistical mechanics, the thermal average of si can be calculated as

<Si>

This is the exact result for the behavior of a single spin in a magnetic field. Now consider an approximate method: The interaction of a spin with its neighbering spins is equivalent to an effective magnetic field acting on si.So the thing we need to do first is to calculate the effective field Heff.
The energy function can be rewritten in this form:

Total Energy

which shows that the term involving J has the form of a magnetic field with


Then we have the following relationship


and

The Monte Carlo Method

The mean field theory we mensioned before is not always valid. A critical example is the values of the critical exponent. A more powerful approach is the Monte Carlo Method.

Rayleigh Taylor instability(From Wikipedia)

To simulate how a spin system interacts with its environment, we will consider the particular case of a collection of Ising spins. The Monte Carlo method uses a stochastic approach to simulate the exchange of energy between the spin system and the heat bath. A spin is chosen and the energy required to make it flip is calculated. If Eflip is negative, the spin is flipped and the system moves into a different microstate. If Eflip is positive, a decision must be made. The core of the Monte Carlo method is to use the computer to generate some randon numbers which satisfy the Boltzmann distribution. The approach to realize this is to compare the numbergenerated with the function derived from the Boltzmann factos which we mensioned before.

Realization of progrem

I use more than 10 progrem to finish this article and I will describe some of them so that readers could have a deeper understanding about the theory I mensioned before.
All of my codes are uploaded here

  • Getting the solution of the equation of <s>
    1. A direct method to do this is to plot both the right side and the left side of the equation in one picture. The solution is the x axis of their cross point. I take J=4 here for two dimensional cases. Temperature and volue of z can be modefied directly before we runthe progrem as the initial condition.
    2. Also, we can use the Newton-Raphson method to get the solusion which is useful when soving many equation. But this method requires a good property of converience. And sometimes this method is pretty relay on the choice of initial conditions. 
      
  • Ising Model using the Monte Carlo Method
    1. First I creat the function to generate the matrex and random number automatedly.
    2. Each site in the matrex will have some contribution to the total energy. I define the function to calculate this by adding up the energy generated by the interaction of spin and field of the four sites near the point.
    3. Define the function to calculate the total energy by simply adding up the energy of all points in the matrix.
    4. Calculate the Eflip. Note that it can be expressed as the difference of the energy of two spin in the same site.
    5. In this step I will try to use the Metropolis algorithm. This is the most crutial and difficult part in this progrem.
    - Firstly I tried to simply calculate the flip energy in each site of the matrix and generate the random number to do the Monte Carlo process in order to renew the states of the whole matrix, but I found that the value generated by the progrem is not random as I expected. Here I show my code: ##
    
    • Then I tried to improve my progrem to solve this problem, what I did is to consider the concept of equabulium. I choose the site randomly until the progrem run about 100000 times to garentee that each site is equally considered. Then I use 'if' paragraph to decide weather the system is in equalibrium or not. This time the problem is solved.
    • To see the details, please see the progrem I uploaded on Github.

Results

All of my codes are uploaded here

The Ising Model, Statistical Mechanics and Mean Field Theory

The first method to work out the equation

Using the cross point to work out the equation
  • Here is the two side of equation under various tempreture. It can be derived from the picture that Tc=4 is the critical temperature which denote the temperature when phase transition occurs.

Solve the equation using the Newton-Raphson method

Newton-Raphson method
  • When using the Newton-Raphson method, one expect the curve to converge to a fixed volue. Here I calculated the cases of T=1, 2, 3. One can see from picyure that when calculate the solution when T=3, the method is not converge.

Here I zoomed the curve so that readers could read more clearly:

  • It can be concluded that when T=1, the average spin approximates 0.9993;
  • When T=2, the average spin approximates 0.9575;
  • When T=3, the curve does not converge.

The method takes only about 3 steps to reach the result. Thus this is an effective method when calculate the solution.

To investigate the property of average spin near transition point T=4, I calculated the equation when T=3.9. Here is the result:

Solution of equation when T=3.9
  • It can be concluded that the result is very close to 0.

Further more, I tried to reset the initial condition when T=1 and look whether it converges:

Different initial condition when T=1

The Monte Carlo Method, Ising Model and Second-Order Phase Transition

Magnetization versus time under T=1, 2, 3,... ,6

I plotted the curves of magnetization versus time(Loop) under different temperature:

Magnetization versus time
  • Different color stands for different temperature. One can see directly that as time increase the magnetization changes from 1 to 0 roughly, and when T=3 its range is largest.

Magnetization versus temperature

Magnetization
  • In this picture we can see that when T is close to 2.2, the magnetization decrease repidly.
  • I expect the curve to be close to 0 when tempreture is high and close to 1 when temperature is low. But the picture does not give the full information. I extended the range and did it again:
Magnetization

Here you can see that it satisfies our expectation! Note that the curve has a slope near the temperature 2.25. It stands for the phase transition.

Energy per spin versus tempreture

Energy per spin
  • I calculated the energy per spin versus temperature. You can see from the picture that it is close to -2.0 when temperature is close to 1, and it goes close to -0.4 when temperature is close to 5.

Specific heat per spin

Specific heat per spin(Dots)
  • Here I plotted the specific heat per spin using points. One can see that it has a shape of bell. When T is close to 2.25 it reaches its maximium.

  • To explicit the tendency, I plotted a curve:

Specific heat versus time

Notice that the curve is not so stable near its maximium. It may because it varies too fast near it. Here I show you a more mussy one:


Then it can be easily seen that the points near the transition point T=2.25 is very mussy actually because of the large slope.

Susceptibility

Susceptibility versus temperature
  • Here is the dots of suscptibility versus temperature. One can see that it remains 0 until temperature reaches 2 and suddenly it increase to 0.1. Approximately after T=3 it decrease and reaches a fixed volue slowly.

Here I plot the curve:

Susceptibility versus temperature(Curve)

States of lattice

At the end, I will show you the states of lattice under various temperature. These picture will give you a direct image:

Lattice
  • White color stands for the spin up and black color stands for the spin down. The color of frame each lattice stands for different temperature.
  • You can conclude from the picture that the entrepy increases as the temperature increases.
  • Situations are more stimulating and complicated in 3-dimensional cases. Here I will show you a picture to lead you in to the amazing 3-dimensional world. (This picture is plotted using FDTD Solutions)

Acknowladgement

  • Prof. Cai
  • Computation physics
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 200,392评论 5 470
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 84,258评论 2 377
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 147,417评论 0 332
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 53,992评论 1 272
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,930评论 5 360
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,199评论 1 277
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,652评论 3 390
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,327评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,463评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,382评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,432评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,118评论 3 315
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,704评论 3 303
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,787评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,999评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,476评论 2 346
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,057评论 2 341

推荐阅读更多精彩内容