24小时热门版块排行榜    

查看: 2530  |  回复: 7
【悬赏金币】回答本帖问题,作者wood1130将赠送您 4 个金币

wood1130

新虫 (初入文坛)

[求助] 初学者用LAMMPS做气体穿过多孔石墨烯遇到报错已有2人参与

各位大神我毕设做多孔石墨烯的气体分离模拟,由于包括CH4,准备将CH4和石墨烯碳原子这三种原子用AIREBO,其他原子用LJ势,在IN文件中pair style选用了hybrid,请问使用了AIREBO的C和H是不是不用再设置bond coeff和angle coeff等,只用设置pair coeff?还有我运算时总是报错,说我没有设置bond coeff,请各位大神帮助我一下谢谢大家!,我把我的in文件放这里,其中CA是石墨烯周边C,CS是将要挖成孔的C,CO是CO2的C,OT是氧原子。目前里面只有CO2和石墨烯,石墨烯CC间用AIREBO,其他用LJ,可能具体参数不对大家不要介意,只是在试是否能计算
units           metal
boundary        p p p
#communicate     single vel yes

atom_style      full
bond_style      harmonic
angle_style     harmonic
pair_style      hybrid airebo 3.0 1 0 lj/cut/coul/long 14.0 10.0
kspace_style    pppm 1.0e-4

read_data        co2merge.data

pair_coeff      * *  airebo ../potentials/CH.airebo C NULL C NULL
pair_coeff      1 2  lj/cut/coul/long 0.0557 3.079
pair_coeff      2 3  lj/cut/coul/long 0.0557 3.079
pair_coeff      2 4  lj/cut/coul/long 0.0945 2.895
pair_coeff      2 2  lj/cut/coul/long 0.0559 2.757
pair_coeff      1 4  lj/cut/coul/long 0.1102 3.292
pair_coeff      4 4  lj/cut/coul/long 0.1599 3.033
pair_coeff      3 4  lj/cut/coul/long 0.1102 3.292

bond_coeff      3 144.821 1.149
angle_coeff     5 0.045 180.0

group                 hole   type 3
group                 mem   type 1
group                 co2   type 2 4

neighbor        2.0 bin
neigh_modify    delay 5
neigh_modify    exclude type 1 1
neigh_modify    exclude type 1 3
fix             1 hole setforce 0.0 0.0 0.0
fix             2 mem setforce 0.0 0.0 0.0dump            dumpwall all dcd 10000000 dump.co2.dcd
dump_modify     dumpwall flush yes
thermo_style    custom step cpu temp press etotal ke
thermo          100
#thermo_modify   flush yes
timestep        2.0
velocity        co2 create 300.0 34239
run             60000
write_restart   restart.eq
日志文件如下:
LAMMPS (14 Mar 2015-ICMS)
WARNING: OMP_NUM_THREADS environment is not set. (../comm.cpp:89)
  using 1 OpenMP thread(s) per MPI task
Reading data file ...
  orthogonal box = (0 0 -100) to (50 50 100)
  1 by 1 by 1 MPI processor grid
  reading atoms ...
  1200 atoms
  scanning bonds ...
  2 = max bonds/atom
  scanning angles ...
  3 = max angles/atom
  scanning dihedrals ...
  8 = max dihedrals/atom
  scanning impropers ...
  3 = max impropers/atom
  reading bonds ...
  1595 bonds
  reading angles ...
  2910 angles
  reading dihedrals ...
  5541 dihedrals
  reading impropers ...
  920 impropers
Finding 1-2 1-3 1-4 neighbors ...
  3 = max # of 1-2 neighbors
  6 = max # of 1-3 neighbors
  18 = max # of 1-4 neighbors
  18 = max # of special neighbors
Reading potential file ../potentials/CH.airebo with DATE: 2011-10-25
10 atoms in group hole
998 atoms in group mem
192 atoms in group co2
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
PPPM initialization ...
  G vector (1/distance) = 0.168083
  grid = 10 10 32
  stencil order = 5
  estimated absolute RMS force accuracy = 0.00126951
  estimated relative force accuracy = 8.81624e-005
  using double precision FFTs
  3d grid and FFT values/proc = 8325 3200
WARNING: Using a manybody potential with bonds/angles/dihedrals and special_bond exclusions (../pair.cpp:207)
ERROR: All bond coeffs are not set (../bond.cpp:69)
DATA文件主要部分:
1200 atoms
1595 bonds
2910 angles
5541 dihedrals
920 impropers
4 atom types
4 bond types
5 angle types
6 dihedral types
4 improper types
0.00000 50.00000  xlo xhi
0.00000 50.00000  ylo yhi
-100.00000 100.00000  zlo zhi

# Pair Coeffs
#
# 1  CA
# 2  CO
# 3  CS
# 4  OT

# Bond Coeffs
#
# 1  CA-CA
# 2  CA-CS
# 3  CO-OT
# 4  CS-CS

# Angle Coeffs
#
# 1  CA-CA-CA
# 2  CA-CA-CS
# 3  CA-CS-CS
# 4  CS-CS-CS
# 5  OT-CO-OT

# Dihedral Coeffs
#
# 1  CA-CA-CA-CA
# 2  CA-CA-CA-CS
# 3  CA-CA-CS-CS
# 4  CA-CS-CS-CA
# 5  CA-CS-CS-CS
# 6  CS-CS-CS-CS

# Improper Coeffs
#
# 1  CA-CA-CA-CA
# 2  CA-CA-CA-CS
# 3  CA-CS-CS-CS
# 4  CS-CS-CS-CS
回复此楼

» 收录本帖的淘贴专辑推荐

分子动力学-初级问题资源

» 猜你喜欢

» 本主题相关商家推荐: (我也要在这里推广)

» 本主题相关价值贴推荐,对您同样有帮助:

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

飞利白

新虫 (初入文坛)


wood1130(abinitio代发): 金币+1, 鼓励交流 2015-04-13 11:01:10
你的pair_coeff 1 3  没有设置,你的1和3分别使用airebo,那1类和3类碳原子之间也是吗,你先试试加上pair_coeff    1 3   lj/cut/coul/long 0.0557 3.079看看还报错不,如果不报错那就是1和3之间的没有设置
2楼2015-04-11 21:48:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

飞利白

新虫 (初入文坛)

不好意思,我看错报错原因了,是bond不是pair,为什么你的bond_coeff      3 144.821 1.149键上来就是type 3了?bond类型不是1 2  3,我没用过这个力场,但是你要是键写出来就得设置bond_coeff吧,没有系数就直接不写了。还是得看看你那个力场AIREBO,
3楼2015-04-11 22:02:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wood1130

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by 飞利白 at 2015-04-11 21:48:31
你的pair_coeff 1 3  没有设置,你的1和3分别使用airebo,那1类和3类碳原子之间也是吗,你先试试加上pair_coeff    1 3   lj/cut/coul/long 0.0557 3.079看看还报错不,如果不报错那就是1和3之间的没有设置

可是1 3之间难道不是也应该适用AIREBO
4楼2015-04-11 23:28:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wood1130

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by 飞利白 at 2015-04-11 21:48:31
你的pair_coeff 1 3  没有设置,你的1和3分别使用airebo,那1类和3类碳原子之间也是吗,你先试试加上pair_coeff    1 3   lj/cut/coul/long 0.0557 3.079看看还报错不,如果不报错那就是1和3之间的没有设置

可是1 3之间难道不是也应该适用AIREBO吗,AIREBO不是包括了长程力难道不是任意两两原子之间的力吗,为什么还要设置成LJ呢
5楼2015-04-11 23:30:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wood1130

新虫 (初入文坛)

引用回帖:
3楼: Originally posted by 飞利白 at 2015-04-11 22:02:52
不好意思,我看错报错原因了,是bond不是pair,为什么你的bond_coeff      3 144.821 1.149键上来就是type 3了?bond类型不是1 2  3,我没用过这个力场,但是你要是键写出来就得设置bond_coeff吧,没有系数就直接不 ...

因为另外三个键我觉得都是包括在AIREBO中的,不知道我理解的有没有问题,因为官方帮助里面有这么一句话Only a single pair_coeff command is used with the airebo or rebo style which specifies an AIREBO potential
file with parameters for C and H.
因为AIREBO有三项相加,其中第一项就是短程作用力,我就理解为包含了键的作用。不知道对不对
6楼2015-04-11 23:35:01
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

无事忙0930

金虫 (小有名气)

【答案】应助回帖

我也遇到过类似的问题,可能是别的设置出了错 如键角的设置 我的键角设置错误就出现过这种报错,另外,我想请教下,data文件中的angles下面的数据是怎么得到的?有什么关系式吗?下面的是水的键角,硫酸根的键角该如何得到?
angles
1 1 1 3 2
2 1 4 6 5
3 1 7 9 8
4 1 10 12 11
5 1 13 15 14
6 1 16 18 17
7 1 19 21 20
8 1 22 24 23
9 1 25 27 26
10 1 28 30 29
11 1 31 33 32
12 1 34 36 35
7楼2016-12-19 22:06:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

kkwzsm

银虫 (小有名气)

【答案】应助回帖

楼主您好,你用airebo势函数描述graphene,看你data文件中的键角信息是CO2的还是graphene 的?在in 文件中调用CH.Airebo势函数后,有没有写到graphene的键角信息呢?
吃的苦中苦,方为人上人。。。。
8楼2017-08-22 09:40:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 wood1130 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 民办高校入职后稳定吗? +17 905452934 2024-05-16 25/1250 2024-05-23 00:21 by 宁静致远sy
[硕博家园] 人生 +8 暮色恋伊人 2024-05-22 8/400 2024-05-23 00:09 by lda2370320
[基金申请] 化学B口多少分能上会呀 +4 WOWO159357 2024-05-22 8/400 2024-05-22 21:26 by bingyulin3
[论文投稿] 期刊投稿进度 +6 jianhuang9 2024-05-21 8/400 2024-05-22 18:29 by sakuraai
[有机交流] 两个产物点爬小板离得非常近,怎么靠大板提纯 5+6 lljcb 2024-05-18 7/350 2024-05-22 16:35 by DAXIAOZHI
[教师之家] 博士去高校就是为了有寒暑假吗? +23 wenwen0825 2024-05-16 29/1450 2024-05-22 15:57 by iwdw2012
[基金申请] 又有两个中科院三、四区计算机领域SCI/SSCI期刊爆出问题了! +4 瞬息宇宙 2024-05-19 6/300 2024-05-22 12:37 by yp_nupt
[论文投稿] 关于通讯作者 5+3 irikiar 2024-05-21 3/150 2024-05-22 11:21 by bobvan
[论文投稿] SCI论文寻合作者,可以让出一作,深度学习方向。 +4 枯禅 2024-05-21 4/200 2024-05-22 11:10 by xs74101122
[基金申请] 国自然等 80+4 胖虎 2024-05-21 12/600 2024-05-22 09:47 by nono2009
[教师之家] 白天不懂夜的黑,90后青椒与60后老板 +6 zylfront 2024-05-18 7/350 2024-05-22 09:28 by songwz
[找工作] 浙江的高校现在门槛都这么高吗 +12 dadqweq_qw 2024-05-16 12/600 2024-05-21 22:30 by foolishmani
[考博] 本科出身不好是不是会被直接刷呀 +5 未来富婆蛙 2024-05-20 5/250 2024-05-21 15:52 by chemdl
[论文投稿] Angew拒稿重投经历大修返回又送审了 48+4 YOONAZHA 2024-05-18 6/300 2024-05-21 10:35 by jurkat.1640
[论文投稿] SENSORS AND ACTUATORS B-CHEMICAL 15+4 荣小撇 2024-05-20 4/200 2024-05-21 10:07 by ca0yan9
[基金申请] 基金委也是打工的 +25 wsjing 2024-05-16 34/1700 2024-05-21 08:31 by mrKiller
[考博] 海南大学国家级人才田新龙教授团队氢燃料电池与器件方向招收科研助理 (重点支持方向) +6 Dreammzp 2024-05-17 9/450 2024-05-20 18:40 by Dreammzp
[考博] 25年博士申请 +6 lixinmiao9 2024-05-18 6/300 2024-05-20 11:19 by 裴先生533
[论文投稿] 推荐转投( transfer pending)是否有用? 50+3 lily5289 2024-05-17 7/350 2024-05-19 15:11 by wanghuawei
[论文投稿] 投稿成功后又想撤回 +5 otani 2024-05-16 5/250 2024-05-17 16:02 by topedit
信息提示
请填处理意见