24小时热门版块排行榜    

查看: 776  |  回复: 0

wangluwei

新虫 (初入文坛)

[求助] lammps 中的lj势

请问lj势用的时候可以不涉及到具体的原子么?两种类型的原子该怎么写呢?我先用了具体的原子这样写的
# LJ 12-6 system with npt ensemble
units lj
atom_style atomic
boundary                p p p

lattice  fcc 1.073
lattice  fcc  0.8
region box block 0 10 0 5 0 5
create_box 2 box

create_atoms 1 box

create_atoms 2 box

mass 1 1.0
mass 2 1.0

velocity                 all create 0.01 872877
timestep                0.01
dump                     1 all xyz 1000   lj.xyz

pair_style lj/cut 2.5
pair_coeff  1 1 1.0 1.0 2.5
pair_coeff  2 2 1.6 1.1765 2.5
pair_coeff  1 2 0.2 1.0882 2.5

#pair_modify shift yes mix geometric

neighbor 0.3 bin
neigh_modify every 10 delay 0 check yes
thermo                  1000

fix                   1 all npt temp 0.01 0.01 1.00 iso 0.0024 0.0024 100.0  
run                   50000
unfix                   1
thermo                  1000
运行结果总出现nan怎么回事?不用具体的原子怎么写代码呢?
新手跪谢!!!!
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 wangluwei 的主题更新
信息提示
请填处理意见