24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1575  |  回复: 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

金虫 (小有名气)

SOS
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个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 0703调剂 +12 拾玖壹 2026-04-04 13/650 2026-04-06 06:26 by houyaoxu
[考研] 一志愿郑州大学085600求调剂 +17 吃的不少 2026-04-05 20/1000 2026-04-06 00:32 by T可可西里T
[考研] 308求调剂 +4 maverick^_^ 2026-04-03 4/200 2026-04-05 19:08 by 蓝云思雨
[考研] 一志愿211生物学280分 求调剂 +4 李rien 2026-04-05 4/200 2026-04-05 18:01 by kk112233
[考研] 313求调剂 +5 海日海日 2026-04-04 5/250 2026-04-05 15:52 by jndximd
[考研] 生物工程求调剂 +6 喜欢还是不甘心 2026-04-05 6/300 2026-04-05 10:28 by 唐沐儿
[考研] 一志愿华中农业大学0710(A)初试329分 求调剂 +4 一名26考研生 2026-04-04 4/200 2026-04-05 10:01 by barlinike
[考研] 一志愿华北电力大学(北京),材料科学与工程学硕265,求调剂 +11 yelck 2026-04-03 12/600 2026-04-04 19:52 by dongzh2009
[论文投稿] 求文献 5+3 ys879651$ 2026-04-02 3/150 2026-04-04 17:22 by bobvan
[考研] 319求调剂 +4 星星不眨眼喽 2026-04-03 4/200 2026-04-04 16:25 by 中飞院空管学院
[考研] 一志愿0817化学工程与技术,求调剂 +24 我不是只因 2026-04-02 28/1400 2026-04-04 15:15 by dongzh2009
[考研] 0710生物学336分求调剂 +6 kiyy 2026-04-01 8/400 2026-04-04 10:10 by kiyy
[考研] 26调剂 086003 +6 失活的细胞 2026-04-04 6/300 2026-04-04 09:50 by zhangdingwa
[考研] 0856,269分求调剂 +15 有学上就行求求 2026-03-30 18/900 2026-04-03 16:50 by melodiousnow
[考研] 求调剂 +4 15064154688 2026-04-03 5/250 2026-04-03 15:07 by zrongyan
[考研] 326求调剂 +3 9ahye 2026-04-02 4/200 2026-04-03 08:43 by Jaylen.
[考研] 材料340分调剂 +7 夏夜晚风_long 2026-04-02 9/450 2026-04-02 21:20 by dongzh2009
[考研] 081200-11408-276学硕求调剂 +3 崔wj 2026-04-02 3/150 2026-04-02 15:06 by cal0306
[考研] 085900土木水利336分求调剂 +4 Zhangjiangj 2026-03-31 6/300 2026-04-02 11:40 by 1753564080
[考研] 254材料与化工求调剂 +3 翰冬林楠 2026-03-30 4/200 2026-03-31 17:53 by yishunmin
信息提示
请填处理意见