24小时热门版块排行榜    

查看: 1369  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 固定端突然变了,今天 +6 archvillain 2026-08-06 10/500 2026-08-07 16:03 by 医学老男孩
[基金申请] 听说今天filecode变了 +24 布布和一二 2026-08-06 47/2350 2026-08-07 16:02 by zhiyanjiang
[基金申请] filecode与中标关系的预测 +3 布布和一二 2026-08-07 3/150 2026-08-07 15:09 by gltch
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[论文投稿] 十年后又回来了,论文投稿求助 +4 哈哈114477 2026-08-01 4/200 2026-08-07 14:39 by jgy194592
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] 关于豆爷回答的JTJC与%2F数量 +4 yang182083 2026-08-06 6/300 2026-08-07 12:43 by 虫友是什么虫
[基金申请] 面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇! +23 低垂的野花 2026-07-31 31/1550 2026-08-07 12:22 by speculiar
[基金申请] filecode +14 等待解的谜 2026-08-06 19/950 2026-08-07 12:20 by wlwhappy
[基金申请] 基金中了 +11 laoda193707 2026-08-06 11/550 2026-08-07 10:54 by TT和NN
[基金申请] 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月时间戳变的,举个手。玩一下,释放压力 +9 archvillain 2026-08-04 11/550 2026-08-05 20:06 by wlwhappy
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
[考博] 【2027博士申请】纳米药物递送方向 20+3 13586093586 2026-08-03 4/200 2026-08-05 09:59 by lfy8008
[基金申请] 有没有H口的?有收到消息的吗? +3 超级海虾 2026-08-04 3/150 2026-08-04 17:26 by 学教育滴
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
[基金申请] 面上提前没消息,有中的吗 +14 archvillain 2026-08-02 18/900 2026-08-04 14:42 by archvillain
[基金申请] 娱乐 +4 Tide man 2026-08-03 4/200 2026-08-04 11:51 by wgch518
[基金申请] 什么时候能放榜呀? +3 Jacob678 2026-08-03 3/150 2026-08-03 16:14 by gltch
信息提示
请填处理意见