计算凝聚态物理.ppt

上传人:小飞机 文档编号:6232179 上传时间:2023-10-08 格式:PPT 页数:32 大小:468.50KB
返回 下载 相关 举报
计算凝聚态物理.ppt_第1页
第1页 / 共32页
计算凝聚态物理.ppt_第2页
第2页 / 共32页
计算凝聚态物理.ppt_第3页
第3页 / 共32页
计算凝聚态物理.ppt_第4页
第4页 / 共32页
计算凝聚态物理.ppt_第5页
第5页 / 共32页
点击查看更多>>
资源描述

《计算凝聚态物理.ppt》由会员分享,可在线阅读,更多相关《计算凝聚态物理.ppt(32页珍藏版)》请在三一办公上搜索。

1、2003-10-21,上海交通大学理论物理研究所 马红孺,计算凝聚态物理,凝聚态物质的数值模拟方法(5)分子模型,分子动力学方法马红孺,http:/,2003-10-21,上海交通大学理论物理研究所 马红孺,分子模型,Molecular systems:,In most cases the interaction part can be approximated by pair interactions:,One famous example is the Lennard-Jones potential,2003-10-21,上海交通大学理论物理研究所 马红孺,分子模型,A very impo

2、rtant quantity in statistical mechanics is the pair correlation function g(r,r0),defined as,where,It may also be written as,2003-10-21,上海交通大学理论物理研究所 马红孺,分子模型,For a homogeneous system the pair correlation function depends only on the distance between r and r0.In this case we denote it as g(r).,The g(

3、r,r0)is proportional to the probability that given a particle at point r and find another particle at point r0.At large distance g(r)tends to 1,we may define the total correlation function,The Fourier transform of the above function gives the static structure function(or structure factor),2003-10-21

4、,上海交通大学理论物理研究所 马红孺,分子模型,The structure function is defined as the correlation function of Fourier component of density fluctuations,The density is defined as:,and the density fluctuation is:,and its Fourier component is:,2003-10-21,上海交通大学理论物理研究所 马红孺,分子模型,当体积趋于无限时,红颜色的部分可以略去.,2003-10-21,上海交通大学理论物理研究所

5、马红孺,分子模型,The structure factor can be measured directly by scattering experiments and can also be calculated by simulations.,Many physical quantities can be expressed in terms of the pair correlation functions,for example the energy in NVT ensemble is,The pressure is,2003-10-21,上海交通大学理论物理研究所 马红孺,分子模型

6、,The compressibility,This expression can be derived from the fluctuations of particle numbers,Since so,2003-10-21,上海交通大学理论物理研究所 马红孺,分子模型,On the other hand,it can be proved that,We have the final result.,The time correlation function is the correlations of two physical quantities at different times,F

7、or systems at equilibrium the time correlation function is a function of the time difference only and can be written as,2003-10-21,上海交通大学理论物理研究所 马红孺,分子模型,The velocity auto correlation function of the ith particle is,This can be derived from the definition relation(we will back to this point),Which i

8、s related to the diffusion constant of the particle.,which holds for large t.,2003-10-21,上海交通大学理论物理研究所 马红孺,分子模型,In general,transport coefficient is defined in terms of the response of a system to a perturbation.,where is the transport coefficient,and A is a physical variable appearing in the perturb

9、ation Hamiltonian.There is also an Einstein relation associated with this kind of expression,which holds for large t,(t,where is the relaxation time of).,2003-10-21,上海交通大学理论物理研究所 马红孺,分子模型,The shear viscosity is given by,or,Here,The negative of P is often called stress tensor.,2003-10-21,上海交通大学理论物理研究

10、所 马红孺,Monte Carlo 模拟,Monte Carlo simulation of Particle Systems,粒子系统的Monte Carlo 模拟和自旋系统原则上是一样的。Metropolis 算法为:1,随机或顺序选取一个粒子,其位置矢量为,对此粒子做移动2,计算前后的能量差,决定是否接受移动。3,在达到平衡后,收集数据,计算物理量。,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,Molecular dynamics simulations,MD method is essentially the integration of the equa

11、tion of motion of the classical many-particle system in a period of time.The trajectories of the system in the phase space are thus obtained and averages of the trajectories give various physical properties.Since we work on real dynamics in MD simulations we can also study the dynamic properties of

12、the system such as relaxation to equilibrium,transport etc.,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,Consider a rectangular volume of L1 L2 L3,with Nclassical particles put in.The particles are interact with each other.In principle,the interaction include pair interactions,three body interactions as wel

13、l as many body interactions.For simplicity we will consider here only pair interactions.In this case each particle feel a force by all other particles and we further assume the force is depend only on distances from other particles and for each pair the force directed along the line join the pair of

14、 particles.So the force on the ith particle is,where is an unit vector along rj-ri.,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,Periodic boundary condition(PBC),where L are vectors along the edges of the rectangular system volume and the sum over n is with all integers n.Usually this sum is the most time c

15、onsuming part in a simulation.,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,General procedure of MD(NVE ensemble),1.Initialize;2.Start simulation and let the system reach equilibrium;3.Continue simulation and store results.,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,Initialize:1,Specify the number of particles an

16、d interaction;2,Setup the simulation box;3,Specify the total energy of the system;4,Assign position and momenta of each particle.a,In many cases we assign particles in a FCC lattice,If we use cubic unit cell and cube BOX then the number of particles per unit cell is 4,and the total number of particl

17、es are a 4M3,M=1,2,3,.That is we may simulation systems with total number of particles N=108,256,500,864,.,b,The velocities of particles are draw from a Maxwell distribution with the specified temperature.,This is accomplished by drawing the three components of the velocity from the Gaussian distrib

18、ution.,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,The distribution of the x-component of velocity is,Draw numbers from a Gaussian:Consider:,Then,where v2=vx2+vy2 and,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,So the distribution of vx and vy may be obtained from v and.The distribution of v:,The distribution of

19、is uniform in the interval 0,2.,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,Generate random numbers for a given distribution,For a given distribution P(y)we consider how to get a random number y draw from P(y)from a random number x draw from uniform 0,1,i.e.,we are going to find a function f(x),from which

20、for a series of random numbers x distributed uniformly in the interval 0,1,y=f(x)will distributed according to P(y).,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,then,Since,Exponential distribution,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,The distribution of v:,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,Draw random n

21、umbers uniformly distributed in the interval 0,2.,Another method of draw random numbers in the Gaussian distribution is through the following empirical methods.,Consider the distribution,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,According to the central limit theorem,if we draw uniform random numbers ri

22、in interval 0,1,and define a variable,when n!1 the distribution of is the Gaussian distribution,If we take n=12,we get,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,After the generation of the velocity of each particle,we may shift the velocity so that the total momentum is zero.,The standard Verlet algorith

23、m is the first successful method in history and still wide used today in different forms.It is,To start the integration we need r(h),given by,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,Variations of this method are,And,Both of these variations are mathematically equivalent to the original one but more sta

24、ble under finite precision arithmetic.,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,The temperature of the system is given by the equal partition theorem,that is the average of kinetic energy of each degree of freedom is half kBT,The N-1 is due to the conservation of the total momentum which reduce the degr

25、ee of freedom by 3.,To reach the desired temperature we may scale the velocity at every few steps of integration,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,After the system reach to equilibrium the integration continue in the same method as above without scaling of velocity.The data are stored or accumula

26、ted for the calculating physical properties.The static properties of physical quantity A is given by time average,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,here A is the value of A at th time step.Usually the data stored in each step include:,1,the kinetic energy2,the potential energy 3,the virial,2003-1

27、0-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,We also needs data to calculate the pair correlation function,this is done by divide the interval 0,r into sub intervals ir,(i+1)r,at each stage of updating,add the number of pairs with separation in the interval ir,(i+1)r,to an array n(i)and find the average value aft

28、er simulation,the pair correlation function given by,2003-10-21,上海交通大学理论物理研究所 马红孺,分子动力学模拟,练习:1,Write programs for the two methods to generate Guassian random numbers.2,Compare the two methods for efficiency and quality.3,Generate random numbers with exponential distribution by means of the transformation method described before and check the quality.,

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号