|
|
本帖最后由 牧生 于 2020-10-26 08:39 编辑
已经得到了CTAB离子的水溶液,向溶液中加入10个Br的 命令为
gmx genion -s CTAB.tpr -nname BR -nn 10 -p CTAB_GMX.top -o CTAB-b4em.gro
Reading file CTAB.tpr, VERSION 2020.3-MODIFIED (single precision)
Reading file CTAB.tpr, VERSION 2020.3-MODIFIED (single precision)
Will try to add 0 NA ions and 10 BR ions. (加入10个BR,没有问题)
Select a continuous group of solvent molecules
Group 0 ( System) has 16300 elements
Group 1 ( Other) has 620 elements
Group 2 ( MOL) has 620 elements
Group 3 ( Water) has 15680 elements
Group 4 ( SOL) has 15680 elements
Group 5 ( non-Water) has 620 elements
但是,如果我想向溶液中加入10 个K,使用命令为
gmx genion -s CTAB.tpr -pname K -nn 10 -p CTAB_GMX.top -o CTAB-b4em.gro
返回结果为
Reading file CTAB.tpr, VERSION 2020.3-MODIFIED (single precision)
Reading file CTAB.tpr, VERSION 2020.3-MODIFIED (single precision)
Will try to add 0 K ions and 10 CL ions. (疑问在此:-pname K -nn 10,是加入10个带正电的K啊,但是返回结果是带负电的CL,说明我的写法是有错的??? 找到原因了,其实应该为-pname K -np 10)
Select a continuous group of solvent molecules
Group 0 ( System) has 16300 elements
Group 1 ( Other) has 620 elements
Group 2 ( MOL) has 620 elements
Group 3 ( Water) has 15680 elements
Group 4 ( SOL) has 15680 elements
Group 5 ( non-Water) has 620 elements
如果使用
gmx genion -s CTAB.tpr -nname K -nn 10 -p CTAB_GMX.top -o CTAB-b4em.gro
Reading file CTAB.tpr, VERSION 2020.3-MODIFIED (single precision)
Reading file CTAB.tpr, VERSION 2020.3-MODIFIED (single precision)
Will try to add 0 NA ions and 10 K ions. (疑问: -nname K -nn 10 这个命令,不是应该加入阴离子的吗????)
Select a continuous group of solvent molecules
Group 0 ( System) has 16300 elements
Group 1 ( Other) has 620 elements
Group 2 ( MOL) has 620 elements
Group 3 ( Water) has 15680 elements
Group 4 ( SOL) has 15680 elements
Group 5 ( non-Water) has 620 elements
还有一个问题,如果需要同时向溶液中加入10个不同类型阴阳离子,命令是怎样的
gmx genion -s CTAB.tpr -p CTAB_GMX.top -o CTAB-b4em.gro -pname K -np 10 -nname BR -nn 10 (同时加入10个K和10个BR,本问题解决了)
下一个问题,如何再同时加入其余的离子,比如我想同时加入K,BR,CA,MG等,这个该怎么办
CTAB_GMX.top
(547 Bytes, 下载次数 Times of downloads: 9)
CTAB.tpr
(402.25 KB, 下载次数 Times of downloads: 3)
|
|