24小时热门版块排行榜    

查看: 2055  |  回复: 1

我爱学习YA

新虫 (初入文坛)

[求助] 希望大佬们帮忙看一下这个invalid atom type in fix shake报错是为什么啊? 已有1人参与

在data文件中mass已经都定义出来了原子类型了:

    804 atoms
    734 bonds
   1144 angles
   1626 dihedrals
    120 impropers

  10 atom types
  12 bond types
  24 angle types
  31 dihedral types
   3 improper types

    -0.063168202    29.936831798 xlo xhi
    -1.070661042    28.929338958 ylo yhi
    -0.531017684    29.468982316 zlo zhi

Masses

   1  15.999400 # o*
   2   1.007970 # h*
   3   1.007970 # h
   4  12.011150 # c2
   5  12.011150 # c'
   6  15.999400 # o'
   7  14.006700 # n2
   8   1.007970 # hn
   9  12.011150 # c1
  10  12.011150 # c3

但是in文件中group了水分子也就是type 1 2,为什么fix shake报错?
units           real
atom_style      full
boundary p p p
#kspace_style    pppm  1e-4          #Out of range , can't compute PPPM
kspace_style     ewald 1e-4         
###########################################
pair_style lj/cut/coul/long 10.0 10.0
pair_modify     mix arithmetic
###########################################
bond_style      harmonic
angle_style     harmonic
dihedral_style  harmonic
improper_style  cvff

read_data       PAM.test            

thermo_style    custom step fmax fnorm pe evdwl emol ecoul epair ebond eangle edihed elong
thermo 100

group           water     type 1 2
group           poly      type 3 4 5 6 7 8 9 10

neighbor        2.0 bin
neigh_modify    delay 0 every 1 check yes

timestep        0.5          #1.0

min_style sd
min_modify dmax 0.2
minimize 1.0e-5 1.0e-6 2000 10000

reset_timestep 0

compute mol poly chunk/atom molecule
compute 1   poly com/chunk mol
compute 2   poly gyration/chunk mol
compute 3   poly msd/chunk mol  


fix     ave1  poly ave/time 1 100 1000  c_1[1] c_1[2] c_1[3] c_2  c_3[1] c_3[2]  c_3[3] c_3[4] file msdandgyra.data  mode vector


fix 1 all nve
fix 2 all temp/berendsen 300.0 300.0 10.0  
fix 3 water  shake  0.0001 20 1000 t 12
报错是这样的:
ERROR: Invalid atom type index for fix shake (../fix_shake.cpp:144)
Last command: fix 3 water  shake  0.0001 20 1000 t 12
求大佬帮忙看一下
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

匿名

用户注销 (小有名气)

感谢参与,应助指数 +1
本帖仅楼主可见
2楼2018-08-09 16:50:04
已阅   申请模拟EPI   回复此楼   编辑   查看我的主页
相关版块跳转 我要订阅楼主 我爱学习YA 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[博后之家] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +4 IDs3scOF0tjC 2026-09-28 4/200 2026-09-29 19:27 by cqwQDCxMcL3I
[找工作] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +4 ZYXdhzDAy9ZX 2026-09-28 4/200 2026-09-29 16:54 by yCO1Ll7aHtsw
[考博] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +4 ZYXdhzDAy9ZX 2026-09-28 4/200 2026-09-29 16:47 by yCO1Ll7aHtsw
[考研] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 ZYXdhzDAy9ZX 2026-09-28 4/200 2026-09-29 16:37 by etmYJ6d2rquH
[博后之家] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 16:30 by etmYJ6d2rquH
[硕博家园] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 16:03 by etmYJ6d2rquH
[考博] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 tqUTOxClQUMF 2026-09-28 3/150 2026-09-29 15:46 by etmYJ6d2rquH
[公派出国] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 tqUTOxClQUMF 2026-09-28 3/150 2026-09-29 14:58 by etmYJ6d2rquH
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 GDBe8tDZqE8z 2026-09-28 3/150 2026-09-29 14:30 by etmYJ6d2rquH
[考研] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 CfXuS1rDhLYN 2026-09-28 3/150 2026-09-29 14:24 by etmYJ6d2rquH
[找工作] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +6 IDs3scOF0tjC 2026-09-28 6/300 2026-09-29 14:13 by etmYJ6d2rquH
[博后之家] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +6 IDs3scOF0tjC 2026-09-28 7/350 2026-09-29 14:07 by etmYJ6d2rquH
[博后之家] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 IDs3scOF0tjC 2026-09-28 3/150 2026-09-29 13:56 by etmYJ6d2rquH
[公派出国] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 IDs3scOF0tjC 2026-09-28 5/250 2026-09-29 13:50 by etmYJ6d2rquH
[考研] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 tqUTOxClQUMF 2026-09-28 3/150 2026-09-29 09:59 by JzYBbHIXWSrW
[考研] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:42 by ZvyPK8n6Nfki
[找工作] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:28 by ZvyPK8n6Nfki
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 CfXuS1rDhLYN 2026-09-28 4/200 2026-09-28 22:55 by ez6fGg9abYaj
[有机交流] 同一个分子,一条来自文献,一条来自AI——不告诉你答案,你会选哪条? +3 tianxiaoxian 2026-09-28 6/300 2026-09-28 22:44 by tianxiaoxian
[论文投稿] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 CfXuS1rDhLYN 2026-09-28 3/150 2026-09-28 19:08 by 9lS3ad5oOymn
信息提示
请填处理意见