24小时热门版块排行榜    

CyRhmU.jpeg
南方科技大学公共卫生及应急管理学院2026级博士研究生招生报考通知(长期有效)
查看: 533  |  回复: 0

finalabo

新虫 (初入文坛)

[求助] 运行提示compute命令错误

请大侠指点迷津
代码如下:
# bulk Silicon lattice   
units   metal
boundary   p p p

atom_style  atomic

variable   x  index  5.4305  5.4306  5.4307  5.4308  5.4309  5.4310
lattice   diamond $x
#lattice   fcc 3.615
#lattice   bcc 3.28
#lattice   sc 2.60  

region      box block 0 3 0 3 0 3
create_box  1 box   
create_atoms  1 box

pair_style  sw  
pair_coeff    * * Si.sw Si
mass     1 28   
neighbor   1.0 bin   
neigh_modify   every 1 delay 5 check yes

variable   P equal pe/216  
variable   r equal 216/($x*3)^3
timestep   0.005
thermo   10     

min_style  sd     
minimize     1.0e-12 1.0e-12 1000 1000
compute   3 all pe/atom
compute   4 all ke/atom
compute      5 all coord/atom 3.0
dump        1 all custom 1 dump.atom id xs ys zs c_3 c_4 c_5
print      "(lattice parameter, rho, energy per atom):  $x $r $P"

clear
next     x
jump     in.silicon
回复此楼
lammps初学者
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 finalabo 的主题更新
信息提示
请填处理意见