24小时热门版块排行榜    

查看: 914  |  回复: 2

pxjdal

新虫 (小有名气)

[求助] Lammps input文件报错

我写了一个in文件,文件如下:


#-------1---Initialization-----------------
units                metal
dimension                3
boundary                p p p
atom_style        atomic

#---------2---------Atom Definiation-----------
lattice        hcp 3.20 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1


region total block -40 100 0 100 0 100 units box
create_box 3 total
create_atoms 1 region total


group all region total

region        Mg block 0 100 0 100 0 100 units box
group        1 region Mg

region  ionic sphere -20 50 50 6.4 units box
group        2 region ionic       

group        de subtract all 1 2
delete_atoms  group de

set group 1 type 1
set group 2 type 2

#--------3-------Settings----------------------


pair_style  eam/fs
pair_coeff         * * Mg_mm.eam.fs Mg Mg

运行到这一步老是报错“Incorrect args for pair coefficients (../pair_eam_fs.cpp:52)
请问有人知道这是为什么吗?
回复此楼

» 猜你喜欢

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

pxjdal

新虫 (小有名气)

找到错误原因了,create_box 3 total,这里设置了3种原子
2楼2018-07-12 16:36:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

shmilyzq

新虫 (初入文坛)

是读取势函数出现了问题 有可能是势函数无效或者你输入的时候漏了什么

发自小木虫Android客户端
先抑后扬
3楼2018-07-12 17:49:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 pxjdal 的主题更新
信息提示
请填处理意见