新手求助,在水溶液中进行CTAB自组装模拟,步骤如下:
第一步:
通过acpype在线建立了CTAB的模型,复制如下文件为CTAB_GMX.top,CTAB_GMX.gro,CTAB_GMX.itp到一个目录下面,并复制tip4p.itp文件到该目录下,
第二步:
然后建立盒子并插入CTAB离子10个
gmx insert-molecules -ci CTAB_GMX.gro -nmol 10 -box 5 5 5 -o CTAB_GMX-box.gro
得到含有10个ctab离子的盒子CTAB_GMX-box.gro , 此处有另一个疑问,使用insert 命令指定向CTAB_GMX-box.gro的盒子里面再继续插入10个的分子,命令是怎么写的? 或者如何做到同时向一个空盒子插入两种不同的分子。 我目前只会上面这个建立空盒子并插入一种分子。
第二步: 使用水进行填充
gmx solvate -cp CTAB_GMX-box.gro -cs tip4p.gro -p CTAB_GMX.top -o CTAB_solv.gro
得到CTAB的水盒子如图
第四步:
下一步进行能量最小化
建立em.mdp 内容如下: define = -DFLEXIBLE
integrator = steep
emtol = 250.0
nsteps = 5000
nstenergy = 1
energygrps = System
nstlist = 10
ns_type = grid
coulombtype = PME
rlist = 1.0
rcoulomb = 1.0
rvdw = 1.0
constraints = none
pbc = xyz
cutoff-scheme= Verlet
第五步然后运行gmx grompp -f em.mdp -c CTAB_solv.gro -p CTAB_GMX.top -o ion.tpr 报错为 Setting the LD random seed to 303945959 Generated 10 of the 10 non-bonded parameter combinations Generating 1-4 interactions: fudge = 0.5 Generated 10 of the 10 1-4 parameter combinations Excluding 3 bonded neighbours molecule type 'CTAB'
ERROR 1 [file CTAB_GMX.top, line 16]: No such moleculetype SOL #这里报错,看起来原因是CTAB_GMX.top中没有定义水分子,
第七步
如下为修改后的top文件;
; CTAB_GMX.top created by acpype (v: 2019-07-10T18:04:00UTC) on Fri Aug 14 06:29:50 2020
[ defaults ]
; nbfunc comb-rule gen-pairs fudgeLJ fudgeQQ
1 2 yes 0.5 0.8333
; Include CTAB_GMX.itp topology
#include "CTAB_GMX.itp"
#include "tip4p.itp"
#include "tip4p.itp" #修改top文件,在这里加上了#include "tip4p.itp"
[ system ]
CTAB in water
[ molecules ]
; Compound nmols
CTAB 1
SOL 3923
重新运行gmx grompp -f em.mdp -c CTAB_solv.gro -p CTAB_GMX.top -o ion.tpr仍然报错
gmx grompp -f em.mdp -c CTAB_solv.gro -p CTAB_GMX.top -o ion.tpr
Setting the LD random seed to -550305329
Generated 10 of the 10 non-bonded parameter combinations
Generating 1-4 interactions: fudge = 0.5
Generated 10 of the 10 1-4 parameter combinations
ERROR 1 [file tip4p.itp, line 10]:
Atomtype OWT4 not foundAtomtype OWT4 not found #看起来仍然是引用水是有问题的,但是include我没觉得有什么问题啊,tip4p.itp也在同一个文件夹下面。
自己网上搜索以及摸索的解决方法:;
; CTAB_GMX.top created by acpype (v: 2019-07-10T18:04:00UTC) on Fri Aug 14 06:29:50 2020
[ defaults ]
; nbfunc comb-rule gen-pairs fudgeLJ fudgeQQ
1 2 yes 0.5 0.8333
此处应该加上[ atomtypes ],但是这里的参数从哪里找啊(似乎从CTAB_GMX.top直接复制过来是不对的)。附上我的那个文件夹,请帮忙看一下;
; Include CTAB_GMX.itp topology
#include "CTAB_GMX.itp"
#include "tip4p.itp"
[ system ]
CTAB in water
[ molecules ]
; Compound nmols
CTAB 1
SOL 3927
ctab求助.rar
(142.16 KB, 下载次数 Times of downloads: 203)
|