24小时热门版块排行榜    

查看: 1873  |  回复: 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的回帖

callen123

金虫 (小有名气)

2楼2023-08-28 08:51:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xixijack

铁虫 (初入文坛)

【答案】应助回帖

你尝试一下把pair_coeff i j 让 i <=j 试试
3楼2023-08-30 00:52:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xixijack

铁虫 (初入文坛)

引用回帖:
3脗楼: Originally posted by xixijack at 2023-08-30 00:52:30
脛茫鲁垄脢脭脪禄脧脗掳脩pair_coeff i j 脠脙 i &lt;=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的回帖
相关版块跳转 我要订阅楼主 callen123 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 基金啊基金 +3 longfie172 2026-08-20 3/150 2026-08-21 00:04 by wuchongjun
[基金申请] 科研孤儿太难了 +14 我4大白菜 2026-08-20 15/750 2026-08-20 22:33 by 袁向阳007
[基金申请] 让我中一个面上吧! +8 大萍1987 2026-08-20 10/500 2026-08-20 21:48 by 大萍1987
[基金申请] 时间戳又变了 +12 wuchongjun 2026-08-20 17/850 2026-08-20 20:05 by spzhao
[基金申请] 只有每年这种时候来逛逛小木虫 +21 yaoyewhu2008 2026-08-20 22/1100 2026-08-20 17:03 by yaoyewhu2008
[基金申请] 放榜前的不淡定 40+3 snowwithsea 2026-08-19 12/600 2026-08-20 15:56 by lfy8008
[基金申请] 重要消息,中午系统在维护 +11 yuleib84 2026-08-18 12/600 2026-08-20 11:09 by xskun
[基金申请] 今天基金会出结果吗?20260819 +14 kkkl_v 2026-08-19 15/750 2026-08-20 08:21 by sunzitan
[教师之家] 为什么余额宝的年化利率越来越低?主要原因有哪些? +5 瞬息宇宙 2026-08-15 5/250 2026-08-19 20:23 by super2002521
[基金申请] 今天放榜没戏了吧 +4 yuleib84 2026-08-19 5/250 2026-08-19 19:52 by hhs666
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
[基金申请] filecode=后面第一个是大写字母 +10 wangze12014 2026-08-14 12/600 2026-08-19 16:56 by 苦难博士
[基金申请] 朋友圈看到的 +6 wangzilk 2026-08-18 8/400 2026-08-19 10:55 by Haru815
[基金申请] 快农历七夕节了,轻松一下,男人悄悄话,女施主请不要进来。 +6 Tide man 2026-08-14 7/350 2026-08-19 09:56 by ZJTJZ
[基金申请] 什么时候开奖? +6 CrisMessi 2026-08-18 6/300 2026-08-19 08:06 by Equinoxhua
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
[论文投稿] 投稿咨询 +4 wwm09 2026-08-17 6/300 2026-08-18 15:36 by wwm09
[基金申请] 时间戳又变了8-15 +14 archvillain 2026-08-15 26/1300 2026-08-18 13:37 by phantomgost
[基金申请] 感觉是下周放榜了 +6 angus9576 2026-08-17 11/550 2026-08-17 23:57 by angus9576
[精细化工] 招聘 金属平磨液,抛光液研发工程师 +3 小天0311 2026-08-14 3/150 2026-08-16 07:31 by H9PLUS
信息提示
请填处理意见