24小时热门版块排行榜    

查看: 476  |  回复: 0

nihaohao360

新虫 (初入文坛)

[交流] fix addtorque

大家有用过fix addtorque的吗?我想让一组原子转起来,可是从生成视频里看不到转动,下面是代码,有什么问题吗?
# 3-d LJ xuanzhuan simulation

dimension        3
boundary        f f p

atom_style        atomic
neighbor        0.3 bin
neigh_modify    every 1 delay 1

# create geometry

lattice                bcc 1.14
region      1 cylinder z 5 5 5 -3.0 3.0
create_box        1 1
create_atoms   1 region 1
mass                1 1.0
group       zhuanzi region 1

# LJ potentials

pair_style        lj/cut 2.5
pair_coeff        1 1 1.0 1.0 2.5

# initial velocities

compute             mobile zhuanzi temp
fix          2 zhuanzi rigid group 1 zhuanzi
fix           3 zhuanzi addtorque 0 0 1

#Run

timestep            0.003
thermo                    1000
thermo_style    custom step atoms temp
thermo_modify   lost ignore flush yes

dump                3 all image 1000 image.*.jpg type type zoom 1.6 adiam 1.2
dump                4 all movie 10 movie.mpg type type zoom 1.6 adiam 1.2
run                10000
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 nihaohao360 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见