24小时热门版块排行榜    

查看: 2174  |  回复: 6
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

维特的日记

木虫 (小有名气)

[交流] 分子模拟编程时周期性边界条件处理问题

本人最近想自己编写一些简单的程序来跑分子动力学过程,加深对理论知识的学习。考虑周期性边界条件时计算力,如果两个原子之间距离大于盒子的1/2了,则需要变成计算与镜像里原子的距离了,也就是原子之间的距离要减去1/2的盒子长度,这是为啥?如果不这样做,有啥问题呢?
下面这段介绍周期性边界里原子之间的cutoff不能超过盒子最短边的一半,这是为啥?还有后面说的如果两个原子之间的距离如果接近盒子长度,却存在关系,将会出现所谓的spurious effects。这是啥意思呢?他举了个例子。
Although not an issue in this particular case, the use of periodic boundaries limits the interaction range to no more than half the smallest region dimension – in practice the range is generally much less. Long-range forces require entirely different approaches that will be described in Chapter 13. Problems can also arise if there are strong correlations between atoms separated by distances approaching the region size, because periodic wraparound can then lead to spurious effects. One example is the vibration of an atom producing what are essentially sound waves; the disturbance, if not sufficiently attenuated, can propagate around the system and eventually return to affect the atom itself.
回复此楼

» 猜你喜欢

» 本主题相关商家推荐: (我也要在这里推广)

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

维特的日记

木虫 (小有名气)

嗯嗯 我就是在看the art of molecular dynamics时感觉有些不太理解的
3楼2015-12-29 17:02:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 7 个回答

chuntao118

新虫 (著名写手)


小木虫: 金币+0.5, 给个红包,谢谢回帖
建议你按照周期边界的要求在纸上画出周期边界,然后把你说的粒子选择两个标出,同时在周期盒子中也标出相同的粒子,然后观察一下就知道为什么了?还有在这里面你的阶段半径是小于L/2的,所以当两个粒子的距离大于L/2时,粒子所受到的作用力是有镜像粒子所提供的,自己编程的话MD建议读一一下《the art of molecur dynamic>这本书。若是MC的话就看一下《Understanding Molecular Simulation From Algorithms to Applications》.会很有帮助的。
2楼2015-12-29 09:28:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

清风染翠

金虫 (小有名气)


小木虫: 金币+0.5, 给个红包,谢谢回帖
可以看一下Computer simulation of liquids这本书,24页介绍周期边界那个图你看看就明白了。
4楼2015-12-29 20:07:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

维特的日记

木虫 (小有名气)

引用回帖:
4楼: Originally posted by 清风染翠 at 2015-12-29 20:07:32
可以看一下Computer simulation of liquids这本书,24页介绍周期边界那个图你看看就明白了。

好的 谢谢啦
5楼2015-12-29 20:55:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见