今天的内容是:
GROMACS分子模拟基础实验教程第四篇-定义模拟体系的容器尺寸并加水
更多前序基础文章可以参考:
基础准备4-Ubuntu16版Linux下编译安装Gromacs2020
基础准备5-Linux7.6编译安装Gromacs2018版并行版
我们接着之前的实验文档:
GROMACS分子模拟基础实验教程(3)-检查和理解拓扑文件
4.1 晶胞容器说明
4.2、实操6-editconf定义容器大小
下面开始实际操作:
一、使用editconf模块定义晶胞容器的尺寸
执行:
gmx editconf -f 1AKI_processed.gro -o 1AKI_newbox.gro -c -d 1.0 -bt cubic
实操截图如下:
执行后,会把原先的拓扑文件做一个备份:/#topol.top.1
输出的关键文本信息如下:
GROMACS: gmx editconf, version 2020.7
Executable: /apps/svr/gromacs/gmx2020/bin/gmx
Data prefix: /apps/svr/gromacs/gmx2020
Working dir: /home/asp/mdtest/demo1
Command line:
gmx editconf -f 1AKI_processed.gro -o 1AKI_newbox.gro -c -d 1.0 -bt cubic
Note that major changes are planned in future for editconf, to improve usability and utility.
Read 1960 atoms
Volume: 123.376 nm^3, corresponds to roughly 55500 electrons
No velocities found
system size : 3.817 4.234 3.454 (nm)
diameter : 5.010 (nm)
center : 2.781 2.488 0.017 (nm)
box vectors : 5.906 6.845 3.052 (nm)
box angles : 90.00 90.00 90.00 (degrees)
box volume : 123.38 (nm^3)
shift : 0.724 1.017 3.488 (nm)
new center : 3.505 3.505 3.505 (nm)
new box vectors : 7.010 7.010 7.010 (nm)
new box angles : 90.00 90.00 90.00 (degrees)
new box volume : 344.48 (nm^3)
4.3、实操7-solvate加入水溶剂
二、使用gmx调用溶剂模块向晶胞容器中填充水
Linux下执行:
gmx solvate -cp 1AKI_newbox.gro -cs spc216.gro -o 1AKI_solv.gro -p topol.top
实操截图如下:
输出的关键文本信息如下:
GROMACS: gmx solvate, version 2020.7
Executable: /apps/svr/gromacs/gmx2020/bin/gmx
Data prefix: /apps/svr/gromacs/gmx2020
Working dir: /home/asp/mdtest/demo1
Command line:
gmx solvate -cp 1AKI_newbox.gro -cs spc216.gro -o 1AKI_solv.gro -p topol.top
Reading solute configuration
Reading solvent configuration
Initialising inter-atomic distances...
WARNING: Masses and atomic (Van der Waals) radii will be guessed
based on residue and atom names, since they could not be
definitively assigned from the information in your input
files. These guessed numbers might deviate from the mass
and radius of the atom type. Please check the output
files if necessary.
NOTE: From version 5.0 gmx solvate uses the Van der Waals radii
from the source below. This means the results may be different
compared to previous GROMACS versions.
++++ PLEASE READ AND CITE THE FOLLOWING REFERENCE ++++
A. Bondi
van der Waals Volumes and Radii
J. Phys. Chem. 68 (1964) pp. 441-451
-------- -------- --- Thank You --- -------- --------
Generating solvent configuration
Will generate new solvent configuration of 4x4x4 boxes
Solvent box contains 39252 atoms in 13084 residues
Removed 5451 solvent atoms due to solvent-solvent overlap
Removed 1869 solvent atoms due to solute-solvent overlap
Sorting configuration
Found 1 molecule type:
SOL ( 3 atoms): 10644 residues
Generated solvent containing 31932 atoms in 10644 residues
Writing generated configuration to 1AKI_solv.gro
Output configuration contains 33892 atoms in 10773 residues
Volume : 344.484 (nm^3)
Density : 997.935 (g/l)
Number of solvent molecules: 10644
Processing topology
Adding line for 10644 solvent molecules with resname (SOL) to topology file (topol.top)
Back Off! I just backed up topol.top to ./#topol.top.1#
注意新生成的topol.top中[ molecules ]的变化:
或者直接看最后几行的区别:右边新文件多了一行SOL溶剂水分子的数量
下一篇:GROMACS分子模拟基础实验教程(5)-为模拟体系添加离子
今天的分享就到这里了
欢迎点赞、在看、分享转发朋友圈 ^.^ 公众号还可以“设为星标”喔~
联系方式:微信号 coding_gene QQ 391399793 QQ群 338633443