24小时热门版块排行榜    

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

我爱bigbang

金虫 (小有名气)

[求助] 关于用lammps的compute 命令计算原子位移 已有2人参与

我想要计算原子的位移,使用的是compute dis all displace/atom,但是计算出现错误。ERROR: Dump custom compute does not calculate per-atom vector
部分输入文件如下:
fix 1 all npt temp 300.0 300.1 1.0 x 0.0 0.0  3000 y 0.0 0.0 3000  z 0.0 0.0 3000
fix 2 all temp/rescale 1 300 300.1 0.05 1.0

compute         s all  stress/atom NULL
compute         strea all  reduce sum c_s[1]
variable        stressa equal c_strea/vol
compute         streb all  reduce sum c_s[2]
variable        stressb equal c_streb/vol
compute         strec all  reduce sum c_s[3]
variable        stressc equal c_strec/vol
compute         epot all  pe/atom
compute         csym all centro/atom 4
compute         coord all coord/atom 2.0
compute 1 all pe/atom
compute 2 all ke/atom
compute dis all displace/atom
thermo_style    custom step temp etotal press v_stressa  v_stressb v_stressc vol lx ly lz
dump 2 all custom 1000 dump.2 id type xu yu zu c_1 c_2 c_dis                                         

run  200000
回复此楼

» 猜你喜欢

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

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

我爱bigbang

金虫 (小有名气)

引用回帖:
4楼: Originally posted by qw8276617 at 2016-05-03 20:55:03
你的thermo-style里含有矢量,而dump里不能含有矢量

那如果需要矢量该怎么写啊。
8楼2016-05-06 08:56:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 12 个回答

abinitio

版主 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
没用过此命令。
我想说的是,为什么不通过两个时间的位置坐标来自己 算呢?
2楼2016-05-03 15:50:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

我爱bigbang

金虫 (小有名气)

引用回帖:
2楼: Originally posted by abinitio at 2016-05-03 15:50:51
没用过此命令。
我想说的是,为什么不通过两个时间的位置坐标来自己 算呢?

我想dump出来的话,可以直接从OVITO中看到。
3楼2016-05-03 15:54:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

qw8276617

银虫 (小有名气)

你的thermo-style里含有矢量,而dump里不能含有矢量

发自小木虫IOS客户端
4楼2016-05-03 20:55:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 化学工程085602 305分求调剂 +12 RichLi_ 2026-03-25 12/600 2026-03-26 12:34 by 小小麦片
[考研] 材料学硕297已过四六级求调剂推荐 +12 adaie 2026-03-19 12/600 2026-03-26 11:10 by 3Strings
[考研] 316求调剂 +9 梁茜雯 2026-03-19 9/450 2026-03-25 23:01 by peike
[考研] 284求调剂 +15 Zhao anqi 2026-03-22 15/750 2026-03-25 12:51 by wht0531
[考研] 285求调剂 +3 AZMK 2026-03-24 3/150 2026-03-25 12:23 by userper
[考研] 0854电子信息求调剂 324 +4 Promise-jyl 2026-03-23 4/200 2026-03-25 11:36 by Sugarlight
[考研] 考研化学308分求调剂 +10 你好明天你好 2026-03-23 11/550 2026-03-25 10:23 by userper
[考研] B区考研调剂 +4 yqdszhdap- 2026-03-22 5/250 2026-03-25 08:51 by baoball
[考研] 材料调剂 +6 匹克i 2026-03-23 6/300 2026-03-24 21:09 by greychen00
[考研] 一志愿211 初试270分 求调剂 +5 谷雨上岸 2026-03-23 6/300 2026-03-24 16:32 by laoshidan
[考研] 一志愿吉大化学322求调剂 +4 17501029541 2026-03-23 6/300 2026-03-24 10:21 by 戴围脖的小蚊子
[考研] 276求调剂。有半年电池和半年高分子实习经历 +9 材料学257求调剂 2026-03-23 10/500 2026-03-24 07:36 by wangy0907
[考研] 291求调剂 +8 hhhhxn.. 2026-03-23 8/400 2026-03-23 23:15 by peike
[考研] 298求调剂 +8 上岸6666@ 2026-03-20 8/400 2026-03-23 11:02 by laoshidan
[考研] 一志愿中南化学(0703)总分337求调剂 +9 niko- 2026-03-19 10/500 2026-03-22 16:08 by ColorlessPI
[考研] 考研调剂 +3 呼呼?~+123456 2026-03-21 3/150 2026-03-21 20:04 by 无际的草原
[考研] 一志愿重庆大学085700资源与环境总分308求调剂 +7 墨墨漠 2026-03-20 7/350 2026-03-21 16:36 by barlinike
[考研] 求调剂 +3 .m.. 2026-03-21 4/200 2026-03-21 16:25 by barlinike
[考研] 22408 344分 求调剂 一志愿 华电计算机技术 +4 solanXXX 2026-03-20 4/200 2026-03-20 23:49 by alg094825
[考研] 261求B区调剂,科研经历丰富 +3 牛奶很忙 2026-03-20 4/200 2026-03-20 19:34 by JourneyLucky
信息提示
请填处理意见