上海交通大学理论物理研究所马红孺课件

上传人:痛*** 文档编号:178016448 上传时间:2022-12-27 格式:PPT 页数:32 大小:487KB
收藏 版权申诉 举报 下载
上海交通大学理论物理研究所马红孺课件_第1页
第1页 / 共32页
上海交通大学理论物理研究所马红孺课件_第2页
第2页 / 共32页
上海交通大学理论物理研究所马红孺课件_第3页
第3页 / 共32页
资源描述:

《上海交通大学理论物理研究所马红孺课件》由会员分享,可在线阅读,更多相关《上海交通大学理论物理研究所马红孺课件(32页珍藏版)》请在装配图网上搜索。

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

2、y in statistical mechanics is the pair correlation function g(r,r0),defined aswhereIt may also be written as2003-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(r,r0)is proportio

3、nal 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 functionThe 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上海交通大学理论物理研究所马红孺分子模型分子模型The structur

5、e 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 isThe pressure is2003-10-21上海交通大学理论物理研究所马红孺分子模型分子模型The compressibilityThis

6、 expression can be derived from the fluctuations of particle numbersSince so2003-10-21上海交通大学理论物理研究所马红孺分子模型分子模型On the other hand,it can be proved thatWe have the final result.The time correlation function is the correlations of two physical quantities at different times,For systems at equilibrium the

7、 time correlation function is a function of the time difference only and can be written as2003-10-21上海交通大学理论物理研究所马红孺分子模型分子模型The velocity auto correlation function of the ith particle isThis can be derived from the definition(we will back to this point)Which is related to the diffusion constant of th

8、e 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 perturbation Hamiltonian.There is also an Einstein

9、relation associated with this kind of expressionwhich holds for large t,(t ,where is the relaxation time of ).2003-10-21上海交通大学理论物理研究所马红孺分子模型分子模型The shear viscosity is given byorHereThe negative of P is often called stress tensor.2003-10-21上海交通大学理论物理研究所马红孺Monte Carlo 模拟模拟Monte Carlo simulation of Par

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

11、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 the s

12、ystem 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 well a

13、s 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 pa

14、rticles.So the force on the ith particle iswhere 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 cons

15、uming 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 a

16、nd 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 partic

17、les 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 distribu

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

19、s uniform in the interval 0,2.2003-10-21上海交通大学理论物理研究所马红孺分子动力学模拟分子动力学模拟Generate random numbers for a given distributionFor 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上海交通大学理论物理研究所马红孺分子动力学模拟分子动力学模拟thenSinceExponential distribution2003-10-21上海交通大学理论物理研究所马红孺分子动力学模拟分子动力学模拟The distribution of v:2003-10-21上海交通大学理论物理研究所马红孺分子动力学模拟分子动力学模拟Draw rand

21、om numbers 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 distribution2003-10-21上海交通大学理论物理研究所马红孺分子动力学模拟分子动力学模拟According to the central limit theorem,if we draw uniform random numbers

22、 ri in interval 0,1,and define a variablewhen n!1 the distribution of is the Gaussian distributionIf we take n=12,we get2003-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 algor

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

24、table 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

25、degree of freedom by 3.To reach the desired temperature we may scale the velocity at every few steps of integration2003-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 acc

26、umulated for the calculating physical properties.The static properties of physical quantity A is given by time average2003-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

27、2003-10-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

28、value after simulation,the pair correlation function given by2003-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.

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!