24小时热门版块排行榜    

查看: 1880  |  回复: 3
【悬赏金币】回答本帖问题,作者callen123将赠送您 10 个金币
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

callen123

金虫 (小有名气)

[求助] 求助LAMMPS混合势函数设置 已有1人参与

我的体系是水溶液含ZnOTF2(Zn,C,H,O,N,S)分子的混合体系。

想用reaxff势函数描述ZnOTF2分子的CHONS元素,用文献报告的参数描述Zn2+,再用SPC描述H2O分子。但是运行报如下错误,感觉是pair_style错了:
-------------
LAMMPS (23 Jun 2022 - Update 4)
OMP_NUM_THREADS environment is not set. Defaulting to 1 thread. (src/comm.cpp:98)
  using 1 OpenMP thread(s) per MPI task
Reading data file ...
  orthogonal box = (0 0 0) to (20 20 20)
  4 by 4 by 4 MPI processor grid
  reading atoms ...
  722 atoms
  read_data CPU = 0.074 seconds
ERROR: Illegal pair_style command (src/REAXFF/pair_reaxff.cpp:187)
Last command: pair_style hybrid/overlay reaxff lj/cut/coul/long 9.0
-------------

输入in文件主要部分如下:
# Initialization
units real
dimension 3
boundary p p p
atom_style charge

# Atom definition
read_data ZnOTF2_H2O.data

# Force field settings
pair_style hybrid/overlay reaxff lj/cut/coul/long 9.0

# Mass and atom types
mass 1 32.065        # S
mass 2 15.9994       # O
mass 3 12.0107       # C
mass 4 1.00794       # H
mass 5 65.409        # Zn
mass 6 1.00794       # H
mass 7 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.4238
set type 7 charge -0.8476

# Force field parameters for molecule
pair_coeff * * reaxff_JPCA S O C H
fix reax all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff
# Define other pair coefficients as needed

# Force field parameters for Zn2+
pair_coeff 5 5 lj/cut/coul/long 0.046 1.568
pair_coeff 5 2 lj/cut/coul/long 0.046 2.367
pair_coeff 5 6 lj/cut/coul/long 0.046 0.0         # Oxygen-Zinc interactions
pair_coeff 5 7 lj/cut/coul/long 0.046 2.367       # Hydrogen-Zinc interactions

# SPC Water model
pair_coeff 7 7 lj/cut/coul/long 0.1553 3.166               #8=Ow,7=Hw
pair_coeff 7 6 lj/cut/coul/long 0.0 0.0
pair_coeff 6 6 lj/cut/coul/long 0.0 0.0
pair_coeff 6 1 lj/cut/coul/long 0.0 0.0
pair_coeff 6 2 lj/cut/coul/long 0.0 0.0
pair_coeff 6 3 lj/cut/coul/long 0.0 0.0
pair_coeff 6 4 lj/cut/coul/long 0.0 0.0
pair_coeff 7 1 lj/cut/coul/long 0.0 0.0
pair_coeff 7 2 lj/cut/coul/long 0.0 0.0
pair_coeff 7 3 lj/cut/coul/long 0.0 0.0
pair_coeff 7 4 lj/cut/coul/long 0.0 0.0

请大神指点,非常感谢!
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xixijack

铁虫 (初入文坛)

引用回帖:
3脗楼: Originally posted by xixijack at 2023-08-30 00:52:30
脛茫鲁垄脢脭脪禄脧脗掳脩pair_coeff i j 脠脙 i <=j 脢脭脢脭

Also, you have 7 types, you can try assign NULL for type 5 6 7 for reaxff
4楼2023-08-30 00:56:39
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 4 个回答

xixijack

铁虫 (初入文坛)

【答案】应助回帖

你尝试一下把pair_coeff i j 让 i <=j 试试
3楼2023-08-30 00:52:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[论文投稿] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 QTy3jDtz1uLt 2026-08-21 9/450 2026-08-23 03:04 by OEbVnUOu01ol
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 2JOx3r2CYEgw 2026-08-22 6/300 2026-08-23 00:52 by OEbVnUOu01ol
[硕博家园] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 2JOx3r2CYEgw 2026-08-22 6/300 2026-08-23 00:40 by OEbVnUOu01ol
[考博] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +3 2JOx3r2CYEgw 2026-08-21 8/400 2026-08-23 00:28 by OEbVnUOu01ol
[基金申请] 2026国自然函评费到账 +11 羊腰板 2026-08-21 11/550 2026-08-22 22:03 by lsbin3733
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 2JOx3r2CYEgw 2026-08-22 3/150 2026-08-22 22:03 by OEbVnUOu01ol
[基金申请] 93BebMhtakh前后11位开头都是大写 +7 且听虎啸 2026-08-17 8/400 2026-08-22 21:55 by 医学老男孩
[基金申请] 范进中举一文的中心思想 +3 zjuhero 2026-08-22 4/200 2026-08-22 20:02 by mycsru
[基金申请] 什么时候开奖? +7 CrisMessi 2026-08-18 8/400 2026-08-22 18:29 by 淀粉搬运工
[基金申请] 只有每年这种时候来逛逛小木虫 +24 yaoyewhu2008 2026-08-20 26/1300 2026-08-22 17:43 by kammury
[教师之家] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 2JOx3r2CYEgw 2026-08-21 4/200 2026-08-22 16:52 by sunzitan
[基金申请] 今天基金会出结果吗?20260819 +16 kkkl_v 2026-08-19 17/850 2026-08-22 16:12 by 阿布Abu
[基金申请] 放榜前的不淡定 40+4 snowwithsea 2026-08-19 14/700 2026-08-21 23:51 by cratir
[基金申请] 建议基金发布提前给出明确的时间点 +10 kulium 2026-08-21 13/650 2026-08-21 21:58 by alongwaytogo
[基金申请] 今日不放榜?网传国自然预计 8 月 27 日可查结果 +16 医学老男孩 2026-08-20 20/1000 2026-08-21 21:13 by Ldrop2023
[基金申请] 科研孤儿太难了 +17 我4大白菜 2026-08-20 18/900 2026-08-21 20:57 by zhangev
[基金申请] 让我中一个面上吧! +11 大萍1987 2026-08-20 13/650 2026-08-21 14:48 by 20120902066
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
[基金申请] 估计是周四 +3 archvillain 2026-08-18 3/150 2026-08-21 01:48 by jnhyjjm
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
信息提示
请填处理意见