|
|
本帖最后由 牧生 于 2021-11-11 16:52 编辑
已经解决。
使用gmx genrestr -f FE.pdb -o posre_FE.itp得到了铁块限制的itp文件,FE.pdb原子编号为1-8000,gro里面,FE的编号也是从1-8000,得到posre_FE.itp编号也是1-8000
然后在top里面使用了该限制itp,内容为:
#include "forcefield.itp"
#include "FE.itp"
; Include Position restraint file
#ifdef POSRES //问题出在这里,改成#ifdef POSRES_FE就不报错了 ,但知其然,不知其所以然,仍需要指导
#include "posre_FE.itp"
#endif
在npt.mdp里面,第一行写上
define = -DPOSRES
结果报错
ERROR 1 [file posre_FE.itp, line 6]:
Atom index (2) in position_restraints out of bounds (1-1).
This probably means that you have inserted topology section
"position_restraints"
in a part belonging to a different molecule than you intended to.
In that case move the "position_restraints" section to the right molecule.
npt以后,铁块还是有很轻微的变形
|
评分 Rate
-
查看全部评分 View all ratings
|