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

kkwzsm

银虫 (小有名气)

【答案】应助回帖

楼主您好,你用airebo势函数描述graphene,看你data文件中的键角信息是CO2的还是graphene 的?在in 文件中调用CH.Airebo势函数后,有没有写到graphene的键角信息呢?
吃的苦中苦,方为人上人。。。。
8楼2017-08-22 09:40:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 8 个回答

飞利白

新虫 (初入文坛)


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的回帖
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[有机交流] 锌粉还原反应 20+4 明宝栋 2024-06-17 6/300 2024-06-22 02:29 by hwalle
[基金申请] 自然基金变化?? +8 今晚推荐22 2024-06-21 16/800 2024-06-21 21:22 by 南海猪
[基金申请] 教育部基金 +5 m1393 2024-06-21 5/250 2024-06-21 21:13 by odes
[基金申请] 听大佬说今年信息口本子数量大幅增加? +8 wutzxt 2024-06-21 9/450 2024-06-21 19:58 by wutzxt
[硕博家园] 怎么带研究生? +15 豆豆小小2 2024-06-20 15/750 2024-06-21 18:54 by 高材人9527
[基金申请] 博后面上和特助今天出吗? +38 逗您玩 2024-06-21 68/3400 2024-06-21 18:54 by yang521521
[硕博家园] 豫北虫友互识 +13 xuhongli903 2024-06-18 14/700 2024-06-21 18:24 by 雨后春笋!
[找工作] 高校两个offer选择 +16 cowox2021 2024-06-18 17/850 2024-06-21 17:58 by keyaner23
[基金申请] 面上博士后 +11 jsqy 2024-06-19 13/650 2024-06-21 17:12 by sizhouyi
[考博] 2025年博士申请,可先做科研助理 +5 limit888 2024-06-18 8/400 2024-06-21 12:45 by 半简体
[基金申请] 有人中过人文社科类的博后特助吗? +4 outsider1986 2024-06-16 7/350 2024-06-21 09:54 by kyukitu
[基金申请] 江苏省333人才工程 出校后被刷的概率大不大? +4 maxbirdzhang 2024-06-19 5/250 2024-06-21 08:57 by maxbirdzhang
[论文投稿] 第一篇论文投稿进程记录 +4 慎独的小花卷 2024-06-20 9/450 2024-06-20 20:37 by 慎独的小花卷
[论文投稿] 投稿求助 6+3 小短腿安琪拉 2024-06-19 4/200 2024-06-20 17:40 by 不一样烟火12345
[有机交流] 求助 10+5 脂质纳米粒 2024-06-20 6/300 2024-06-20 17:16 by czyzsu
[基金申请] 青年基金会评专家到底是怎么会评的呀?主审专家是不是一般不会改动系统按函评给的顺序 5+4 他山攻玉之石 2024-06-18 18/900 2024-06-20 16:33 by 他山攻玉之石
[考博] 关于读博感觉自己很抓马 +9 小九月 2024-06-19 12/600 2024-06-20 11:06 by SCITOPPP
[基金申请] 太卷了 +14 laoyuefubio 2024-06-17 27/1350 2024-06-20 09:52 by htjwqy
[基金申请] 博后基金刷到的BUG,图片来的更直观 +15 carolloo 2024-06-17 16/800 2024-06-19 09:42 by msjy
[论文投稿] 二审返修送审10天了,原来一审的3个审稿人只有2个接受了审稿,会邀请新审稿人么? 50+3 huanpo116 2024-06-15 5/250 2024-06-16 10:27 by bobvan
信息提示
请填处理意见