24小时热门版块排行榜    

查看: 4882  |  回复: 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

金虫 (小有名气)

引用回帖:
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的回帖
查看全部 12 个回答

abinitio

版主 (著名写手)

【答案】应助回帖

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

qw8276617

银虫 (小有名气)

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

发自小木虫IOS客户端
4楼2016-05-03 20:55:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

qw8276617

银虫 (小有名气)

5楼2016-05-03 20:56:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见