本帖最后由 牧生 于 2020-10-10 21:53 编辑
做两种小分子的混合,在http://bio2byte.be/acpype/生成SDS和CTAB结构文件,得到如下几个文件
CTAB_GMX.gro,CTAB_GMX.itp,CTAB_GMX.top
SDS_GMX.gro,SDS_GMX.itp,SDS_GMX.top
第一步:
gmx insert-molecules -ci SDS_GMX.gro -nmol 10 -box 5 5 10 -o SDS_box.gro ;向5×5×10的盒子中,插入10个SDS分子,命名为SDS_box.gro
第二步: gmxinsert-molecules -f SDS_box.gro -ci CTAB_GMX.gro -nmol 10 -o out_box.gro ;向SDS_box.gro盒子中,继续插入10个CTAB分子,输出命名为out_box.gro
第三步: gmx solvate -cp out_box.gro -cstip4p.gro -p SDS_GMX.top -o SDS_solv.gro ;向out_box.gro盒子中加入tip4p.gro的水
第四步:修改SDS的top文件
; SDS_GMX.top created by acpype (v: 2020-09-02T11:49:19CEST) on Thu Oct 8 03:28:17 2020
;[ defaults ] ;注释
; nbfunc comb-rule gen-pairs fudgeLJ fudgeQQ ;注释
;1 2 yes 0.5 0.8333 ;注释
#include "amber99sb-ildn.ff/forcefield.itp" ;加入力场
; Include SDS_GMX.itp topology
#include "SDS_GMX.itp" ;本来就有的SDS
#include "CTAB_GMX.itp" ;CTAB的类型
#include "amber99sb-ildn.ff/tip4p.itp" ;水的类型
[ system ]
SDS in water
[ molecules ]
; Compound nmols
SDS 10 ;修改为10个
CTAB 10 ;修改为10个
SOL 3956
第五步能量最小化:
gmx grompp -f em.mdp -c SDS_solv.gro -p SDS_GMX.top -o SDS.tpr -maxwarn 1 ;应该是这里使用的top文件有错。。
em.mdp文件如下 define = -DFLEXIBLE integrator = steep emtol = 250.0 nsteps = 5000 nstenergy = 1 energygrps = System ;整个体系为一体 nstlist = 10 ns_type = grid coulombtype = PME; (软件认为PME更好) rlist = 1.0 rcoulomb = 1.0 rvdw = 1.0 constraints = none ;不限制 pbc = xyz ;盒子 cutoff-scheme= Verlet
这一步就报错了
Program: gmx grompp, version 2019.3
Source file: src\gromacs\gmxpreprocess\topio.cpp (line 607)
Fatal error:
Syntax error - File CTAB_GMX.itp, line 3 ;我觉得是itp文件include的操作有错了,请教如何修正这个错误。
Last line read:
'[ atomtypes ]'
Invalid order for directive atomtypes
For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors
如上几个文件
|