24小时热门版块排行榜    

查看: 2608  |  回复: 2
【悬赏金币】回答本帖问题,作者callen123将赠送您 20 个金币

callen123

金虫 (小有名气)

[求助] LAMMPS入门报错求指导!急!!

各位大佬:

LAMMPS in文件设置如下图所示,报错ERROR: All pair coeffs are not set (../pair.cpp:254)。

想用两种reaxff力场描述混合体系。其中 reaxff_JPCL力场描述mass 1-6,即S O C F Li H。用ffield.reax.ZnOH力场描述mass 7-9 Zn H O。请大佬指正如何设置好in文件?感谢感谢。

in 文件:
------------------------------------------
# LAMMPS input script for MD simulation

# Initialization
units real
dimension 3
boundary p p p
atom_style charge

# Atom definition
read_data LiFBS_3mol_MD.data

# Mass and atom types
mass 1 32.065             # S
mass 2 15.9994            # O
mass 3 12.0107            # C
mass 4 18.9984032         # F
mass 5 6.941              # Li
mass 6 1.00794            # H
mass 7 65.409             # Zn
mass 8 1.00794       # H
mass 9 15.9994       # O

# Define other masses and atom types as needed
set type 1 charge 0
set type 2 charge 0
set type 3 charge 0
set type 4 charge 0
set type 5 charge 0
set type 6 charge 0
set type 7 charge 0
set type 8 charge 0.4238
set type 9 charge -0.8476

# Force field settings
pair_style reaxff NULL

# Force field parameters for molecule
pair_coeff * * reaxff_JPCL S O C F Li H NULL NULL NULL
pair_coeff * * ffield.reax.ZnOH NULL NULL NULL NULL NULL NULL Zn H O
fix 1 all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff
#pair_coeff 7 7 lj/cut/coul/long 0.222 2.68

# Settings for simulation
neighbor        2 bin
neigh_modify    every 1 delay 0 check yes

# Minimization settings
thermo_style custom step temp pe ke etotal press lx ly lz pxx pyy pzz
thermo 100
dump 1 all custom 200 oxy.xyz id type x y z vx vy vz

min_style cg
minimize 1e-6 1e-8 1000 100000

# Equilibration
timestep 1.0
unfix 1
fix 2 all npt temp 298.15 298.15 100 aniso 1.0 1.0 1000
run 5000    # 100 ps equilibration

# Production MD
#timestep 1.0
#unfix 2
#fix 3 all nvt temp 298.15 298.15 100
#run 5000    # 1 ns MD run
------------------------------------------

data文件在网盘:
链接: https://pan.baidu.com/s/1sVyUcJBCeSousqCaJtOBLQ 提取码: pdjh

报错信息:
LAMMPS (20 Sep 2021)
OMP_NUM_THREADS environment is not set. Defaulting to 1 thread. (../comm.cpp:98)
  using 1 OpenMP thread(s) per MPI task
# LAMMPS input script for MD simulation

# Initialization
units real
dimension 3
boundary p p p
atom_style charge

# Atom definition
read_data LiFBS_3mol_MD.data
Reading data file ...
  orthogonal box = (0.0000000 0.0000000 0.0000000) to (18.000000 18.000000 18.000000)
  4 by 4 by 4 MPI processor grid
  reading atoms ...
  653 atoms
  read_data CPU = 0.047 seconds

# Mass and atom types
mass 1 32.065             # S
mass 2 15.9994            # O
mass 3 12.0107            # C
mass 4 18.9984032         # F
mass 5 6.941              # Li
mass 6 1.00794            # H
mass 7 65.409             # Zn
mass 8 1.00794       # H
mass 9 15.9994       # O


# Define other masses and atom types as needed
set type 1 charge 0
Setting atom values ...
  21 settings made for charge
set type 2 charge 0
Setting atom values ...
  63 settings made for charge
set type 3 charge 0
Setting atom values ...
  42 settings made for charge
set type 4 charge 0
Setting atom values ...
  63 settings made for charge
set type 5 charge 0
Setting atom values ...
  7 settings made for charge
set type 6 charge 0
Setting atom values ...
  42 settings made for charge
set type 7 charge 0
Setting atom values ...
  7 settings made for charge
set type 8 charge 0.4238
Setting atom values ...
  272 settings made for charge
set type 9 charge -0.8476
Setting atom values ...
  136 settings made for charge

# Force field settings
pair_style reaxff NULL

# Force field parameters for molecule
pair_coeff * * reaxff_JPCL S O C F Li H NULL NULL NULL
WARNING: Van der Waals parameters for element MO indicate shielding without inner wall, but earlier elements indicate a different van der Waals method. This may cause division-by-zero errors. Keeping van der Waals setting for earlier atoms. (../reaxff_ffield.cpp:279)
WARNING: Van der Waals parameters for element NI indicate shielding without inner wall, but earlier elements indicate a different van der Waals method. This may cause division-by-zero errors. Keeping van der Waals setting for earlier atoms. (../reaxff_ffield.cpp:279)
WARNING: Van der Waals parameters for element B indicate shielding without inner wall, but earlier elements indicate a different van der Waals method. This may cause division-by-zero errors. Keeping van der Waals setting for earlier atoms. (../reaxff_ffield.cpp:279)
WARNING: Van der Waals parameters for element F indicate shielding without inner wall, but earlier elements indicate a different van der Waals method. This may cause division-by-zero errors. Keeping van der Waals setting for earlier atoms. (../reaxff_ffield.cpp:279)
WARNING: Van der Waals parameters for element P indicate shielding without inner wall, but earlier elements indicate a different van der Waals method. This may cause division-by-zero errors. Keeping van der Waals setting for earlier atoms. (../reaxff_ffield.cpp:279)
WARNING: Changed valency_val to valency_boc for F (../reaxff_ffield.cpp:296)
pair_coeff * * ffield.reax.ZnOH NULL NULL NULL NULL NULL NULL Zn H O
Reading potential file ffield.reax.ZnOH with DATE: 2011-02-18
WARNING: Changed valency_val to valency_boc for X (../reaxff_ffield.cpp:296)
fix 1 all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff
#pair_coeff 7 7 lj/cut/coul/long 0.222 2.68

# Settings for simulation
neighbor        2 bin
neigh_modify    every 1 delay 0 check yes

# Minimization settings
thermo_style custom step temp pe ke etotal press lx ly lz pxx pyy pzz
thermo 100
dump 1 all custom 200 oxy.xyz id type x y z vx vy vz

min_style cg
minimize 1e-6 1e-8 1000 100000

CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE

Your simulation uses code contributions which should be cited:

- pair reaxff command:

@Article{Aktulga12,
author = {H. M. Aktulga, J. C. Fogarty, S. A. Pandit, A. Y. Grama},
title = {Parallel reactive molecular dynamics: Numerical methods and algorithmic techniques},
journal = {Parallel Computing},
year =    2012,
volume =  38,
pages =   {245--259}
}

- fix qeq/reaxff command:

@Article{Aktulga12,
author = {H. M. Aktulga, J. C. Fogarty, S. A. Pandit, A. Y. Grama},
title = {Parallel reactive molecular dynamics: Numerical methods and algorithmic techniques},
journal = {Parallel Computing},
year =    2012,
volume =  38,
pages =   {245--259}
}

CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE

ERROR: All pair coeffs are not set (../pair.cpp:254)
Last command: minimize 1e-6 1e-8 1000 100000
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

callen123

金虫 (小有名气)

2楼2024-01-12 14:24:14
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

luyaobao

木虫 (著名写手)

reaxff不支持这么用,你得找一个包含所有元素的力场。

发自小木虫Android客户端
3楼2024-02-18 01:46:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 callen123 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[教师之家] 为了不被淘汰,必须要开始第三次奋斗了 +3 lice_1987 2026-11-15 5/250 2026-11-18 17:00 by xiaopili
[论文投稿] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +5 SX5mJmPWDfOO 2026-11-13 5/250 2026-11-18 13:44 by UPDUsNlULsJZ
[考博] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +5 XJXMuRjD7cK7 2026-11-13 5/250 2026-11-18 13:22 by UPDUsNlULsJZ
[硕博家园] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +5 XJXMuRjD7cK7 2026-11-13 5/250 2026-11-18 11:32 by Z1pODz48hoDV
[考研] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +4 uKOSCocCb6Fm 2026-11-13 4/200 2026-11-18 11:21 by Z1pODz48hoDV
[论文投稿] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 uKOSCocCb6Fm 2026-11-13 4/200 2026-11-18 10:04 by Z1pODz48hoDV
[公派出国] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +4 uKOSCocCb6Fm 2026-11-12 8/400 2026-11-18 09:53 by Z1pODz48hoDV
[考研] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +4 uKOSCocCb6Fm 2026-11-12 6/300 2026-11-18 09:31 by Z1pODz48hoDV
[论文投稿] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +5 uKOSCocCb6Fm 2026-11-12 8/400 2026-11-18 09:20 by Z1pODz48hoDV
[考研] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +4 uKOSCocCb6Fm 2026-11-12 9/450 2026-11-18 09:06 by Equinoxhua
[硕博家园] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +4 uKOSCocCb6Fm 2026-11-12 10/500 2026-11-16 22:49 by Equinoxhua
[考博] 27年药学 考博申请 +4 。12345 2026-11-14 5/250 2026-11-16 19:52 by 0611517sll
[硕博家园] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 uKOSCocCb6Fm 2026-11-13 4/200 2026-11-16 11:06 by K7HMGGdOpylw
[公派出国] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +4 uKOSCocCb6Fm 2026-11-13 4/200 2026-11-16 10:44 by K7HMGGdOpylw
[公派出国] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 SX5mJmPWDfOO 2026-11-13 3/150 2026-11-15 08:29 by xSrQNSSjcgoX
[考博] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 SX5mJmPWDfOO 2026-11-13 3/150 2026-11-15 08:18 by xSrQNSSjcgoX
[硕博家园] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +4 XJXMuRjD7cK7 2026-11-13 4/200 2026-11-15 06:50 by xSrQNSSjcgoX
[考博] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 uKOSCocCb6Fm 2026-11-12 7/350 2026-11-15 03:32 by xSrQNSSjcgoX
[论文投稿] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 uKOSCocCb6Fm 2026-11-12 10/500 2026-11-15 02:15 by xSrQNSSjcgoX
[考博] 27博士申请(市政/环境) +3 ladf 2026-11-12 3/150 2026-11-13 08:19 by Equinoxhua
信息提示
请填处理意见