24小时热门版块排行榜    

查看: 1371  |  回复: 6

刺青TS

新虫 (小有名气)

[求助] vmd 已有1人参与

lammps 输出的lammpsstrj导进vmd中模型为什么会出现连续的移动?我是做拉伸模拟

发自小木虫Android客户端
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

alundilong

木虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
楼主贴出in文件,至少得有dump那行命令才可以做判断。

ps,猜测,楼主输出的坐标是不是xu,yu,zu?
2楼2016-04-24 01:25:35
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

刺青TS

新虫 (小有名气)

引用回帖:
2楼: Originally posted by alundilong at 2016-04-24 01:25:35
楼主贴出in文件,至少得有dump那行命令才可以做判断。

ps,猜测,楼主输出的坐标是不是xu,yu,zu?

dump            6 all custom 1000 lashen.lammpstrj id type x y z c_3

fix                10 all nvt temp 300 300 0.01
fix_modify     10 temp 2

label loop
variable i loop 300
displace_atoms force move 0.05 0.0 0.0 units box
displace_atoms lower move -0.05 0.0 0.0 units box

run 100000

next i
jump in.cu loop
3楼2016-04-24 09:55:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

alundilong

木虫 (正式写手)

【答案】应助回帖

引用回帖:
3楼: Originally posted by 刺青TS at 2016-04-23 19:55:55
dump            6 all custom 1000 lashen.lammpstrj id type x y z c_3

fix                10 all nvt temp 300 300 0.01
fix_modify     10 temp 2

label loop
variable i loop 300
displace_atoms force move 0.05 ...

这几行看不出问题。你的dump也是对的。
把完整的贴出来吧,肯定有地方有错。
4楼2016-04-25 04:51:00
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

刺青TS

新虫 (小有名气)

引用回帖:
4楼: Originally posted by alundilong at 2016-04-25 04:51:00
这几行看不出问题。你的dump也是对的。
把完整的贴出来吧,肯定有地方有错。...

# LAMMPS cu
units                metal
dimension        3
boundary        s s s  
atom_style        atomic

neighbor        2.0 bin
neigh_modify        every 1

read_data         data.cu                                          
pair_style        hybrid eam/alloy airebo 3.0 1 1 lj/cut 10.0   
pair_coeff      * * eam/alloy Cu_zhou.eam.alloy NULL Cu   
pair_coeff        * * airebo CH.airebo  C NULL                  
pair_coeff      1 2 lj/cut 0.019996 3.225  
               
timestep        0.001
thermo                 1000

group                lower id <= 133
group                force id >= 2539
group                boundary union lower force
group                mobile subtract all lower force

velocity        mobile create 300 825577 dist gaussian
velocity       boundary set 0.0 0.0 0.0 units box
fix 2 lower setforce 0.0 0.0 0.0
fix 3 force setforce 0.0 0.0 0.0

minimize         1.0e-8 1.0e-8 10000 10000

reset_timestep  0

compute         2 mobile temp/com
compute         3 all pe/atom
compute         4 all ke/atom
compute         5 all coord/atom 3.0


compute s1 all stress/atom NULL
compute        strec1 mobile reduce sum c_s1[2]
variable strecy equal c_strec1/(ly*lz*lx*10000)
compute        strec2 mobile reduce sum c_s1[1]
variable strecx equal c_strec2/(ly*lz*lx*10000)

thermo_style         custom step c_2 pe ke vol v_strecx v_strecy lx ly lz


dump            6 all custom 1000 lashen.lammpstrj id type x y z c_3

fix                10 all nvt temp 300 300 0.01
fix_modify     10 temp 2

label loop
variable i loop 300
displace_atoms force move 0.0 0.05 0.0 units box
displace_atoms lower move 0.0 -0.05 0.0 units box

run 100000

next i
jump in.cu loop
5楼2016-04-25 15:05:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

alundilong

木虫 (正式写手)

【答案】应助回帖

引用回帖:
5楼: Originally posted by 刺青TS at 2016-04-25 01:05:17
# LAMMPS cu
units                metal
dimension        3
boundary        s s s  
atom_style        atomic

neighbor        2.0 bin
neigh_modify        every 1

read_data         data.cu                                          
pair_style        hybr ...

abel loop
variable i loop 300
displace_atoms force move 0.0 0.05 0.0 units box
displace_atoms lower move 0.0 -0.05 0.0 units box

这几行放在了循环里,那么你的group force/lower的原子,在每个循环中都要平移,不是吗?
楼主为什么不用fix deform拉升呢?
http://lammps.sandia.gov/doc/fix_deform.html
https://icme.hpc.msstate.edu/med ... anowire_Deformation

» 本帖已获得的红花(最新10朵)

6楼2016-04-26 04:08:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

刺青TS

新虫 (小有名气)

送红花一朵
引用回帖:
6楼: Originally posted by alundilong at 2016-04-26 04:08:12
abel loop
variable i loop 300
displace_atoms force move 0.0 0.05 0.0 units box
displace_atoms lower move 0.0 -0.05 0.0 units box

这几行放在了循环里,那么你的group force/lower的原子,在每个循环 ...

谢谢,那应该怎么修改一下in文件它才不会发生平移把displace atom这几行移出label循环中?我之前用的是deform拉伸,每次拉伸都不在中间断裂而且得到数值不准确所以我就换了一种拉伸方法

发自小木虫Android客户端
7楼2016-04-26 09:17:27
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 刺青TS 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 帮忙看看fileCode +4 wwncly 2026-08-10 7/350 2026-08-10 21:24 by Tide man
[基金申请] FileCode能看出啥? +7 要乐观耀哥 2026-08-10 15/750 2026-08-10 19:29 by 要乐观耀哥
[基金申请] 确定了,国自然21号放榜 +6 布布和一二 2026-08-10 7/350 2026-08-10 19:15 by 2000zf36392
[基金申请] 为什么网上很多人说本周 12号出结果 +3 瞬息宇宙 2026-08-10 3/150 2026-08-10 18:27 by Tide man
[基金申请] 静等基金结果 +5 gjjjzhong 2026-08-10 16/800 2026-08-10 17:19 by Tide man
[基金申请] 关于Filecode分析方法 +3 majunge000 2026-08-10 3/150 2026-08-10 15:46 by lch2012
[基金申请] 奇怪,两个人的filecode固定段从头到尾一模一样 +4 布布和一二 2026-08-10 4/200 2026-08-10 14:50 by 医学老男孩
[基金申请] 好奇怪的filecode +4 布布和一二 2026-08-08 5/250 2026-08-10 14:20 by 冰心玉壶晴
[基金申请] 据悉今年马上要出结果了 +7 瞬息宇宙 2026-08-10 8/400 2026-08-10 12:42 by Vivilian
[基金申请] filecode与中标关系的预测 +5 布布和一二 2026-08-07 5/250 2026-08-09 16:15 by 袁向阳007
[基金申请] 关于filecode,很负责任的告诉大家 +6 爱看书的可乐 2026-08-08 7/350 2026-08-08 22:13 by a_niu
[基金申请] 国基金的申报应该改成非等额制,评价高的钱多评价低的钱少,但是增加资助率 +7 a089 2026-08-07 7/350 2026-08-08 18:05 by gltch
[基金申请] 关于filecode +4 布布和一二 2026-08-07 7/350 2026-08-07 22:55 by zhanghaozhu
[基金申请] 化学口download_prp&amp;fileCode的固定段好像这几天一直没变,有变的大神么? +3 Tide man 2026-08-07 4/200 2026-08-07 22:39 by Tide man
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
[基金申请] 求各位大神看下 100+6 hpkpkpkp 2026-08-05 33/1650 2026-08-06 14:49 by zhiyanjiang
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
信息提示
请填处理意见