24小时热门版块排行榜    

查看: 2104  |  回复: 3

naterriver

至尊木虫 (正式写手)

[求助] lammps中怎么固定一族原子 已有1人参与

现在做一个结构时core-shell模型,想要固定住core单独加热shell,小木虫的帖子搜出来的帖子和手册里的命令也试过,但一直没有成功过。

因为是刚刚学习lammps,请有经验的虫友指教下!

units metal
boundary p p p
atom_style atomic

read_restart ./restart/PdPt_relax.112.restart

pair_style eam/alloy
pair_coeff * * PdPt.set Pd Pt
neighbor 2.0 bin
neigh_modify delay 1 every 1

group core type 1
group shell type 2

compute pe all pe/atom
compute myRDF all rdf 100
fix 1 shell nvt temp 2000 2000 0.2
fix 2 core setforce 0.0 0.0 0.0

velocity core set 0 0 0 sum no units box

dump 1 all custom 2000 ./config/PdPt_2000.*.dump id type c_pe x y z

restart 10000 ./restart/PdPt_2000.*.restart
thermo 1000
thermo_style custom step temp lx ly lz press pxx pyy pzz
timestep 0.001

run 2000   every 1 "velocity core set 0 0 0 sum no units box"

图片1是原来的结构,图片2就是计算之后的结构,不知道为什么在x方向被压成了一层结构

lammps中怎么固定一族原子
1.jpg


lammps中怎么固定一族原子-1
2.jpg
回复此楼

» 猜你喜欢

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

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

chinaboy798

银虫 (小有名气)

【答案】应助回帖

velocity  sum    yes  呢?不要sum  no。
2楼2014-12-15 19:09:56
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

luzihen

金虫 (正式写手)

为什么不用fix velocity 把core的速度设成0就行了,不用那么麻烦吧
3楼2014-12-18 17:58:28
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

没有烟的火柴

新虫 (初入文坛)

velocity low set 0.0 0.0 0.0 units box                                          
velocity up set 0.0 0.0 0.0 units box
4楼2014-12-22 16:38:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 naterriver 的主题更新
信息提示
请填处理意见