本帖最后由 牧生 于 2021-2-5 21:02 编辑
对培训班中的冰的模拟有了兴趣
但自己搭建了冰水两相,低温高压下进行NPT,希望观察到水结冰过程,但结果却观察到冰融化,请问一下哪里不对
具体操作如下:
以2304.gro为基础,建立了冰水模型,如图(ice为1,水分子 400)
编写top文件
#include "oplsaa.ff/forcefield.itp"
#include "oplsaa.ff/spce.itp"
[ system ]
ice
[ molecules ]
; Compound nmols
SOL 1168
再进行能量最小化
gmx grompp -f em.mdp -c mix.gro -p H2O.top -o ice.tpr -maxwarn 1
gmx mdrun -deffnm ice -v
然后直接进行npt模拟,
integrator = md
nsteps = 1000000
dt = 0.001
; Output control
nstxout = 50
nstvout = 50
nstenergy = 50
nstlog = 50
; Bond parameters
continuation = no
constraint_algorithm = lincs
constraints = h-bonds
lincs_iter = 1
lincs_order = 4
; Neighborsearching
cutoff-scheme = Verlet
ns_type = grid
nstlist = 10
rcoulomb = 1.0
rvdw = 1.0
; Electrostatics
coulombtype = PME
pme_order = 4
fourierspacing = 0.16
; Temperature coupling is on
tcoupl = V-rescale
tc-grps =system
tau_t = 0.1
ref_t = 240 温度设定240 K
; Pressure coupling is on
pcoupl = Parrinello-Rahman
pcoupltype = isotropic
tau_p = 2.0
ref_p = 200.0 压力设定200 bar
compressibility = 4.5e-5
refcoord_scaling = com
; Periodic boundary conditions
pbc = xyz
DispCorr = EnerPres
gen_vel = no
但VMD观察,发现冰融化了,截图如下
播放轨迹动画,盒子明显收缩,但仍有真空区,表明水分子不够多,但这个应该不会影响结冰吧?
同时有另一个问题,为什么还有真空区的存在?
很快,冰就全部融化了
使用gmx energy -f npt.edr -o npt.xvg 看温度和压力的变化,温度倒是比较稳定,但是压力变化很大
|