计算化学公社

 找回密码 Forget password
 注册 Register
Views: 5266|回复 Reply: 8
打印 Print 上一主题 Last thread 下一主题 Next thread

[GROMACS] gromacs模拟退火问题

[复制链接 Copy URL]

170

帖子

0

威望

770

eV
积分
940

Level 4 (黑子)

跳转到指定楼层 Go to specific reply
楼主
本帖最后由 yangjunfang 于 2022-2-22 18:25 编辑

各位老师同学大家好,

我想请教一个问题:我想通过退火模拟取不同温度下的结构进行优化,请问可行吗?下面是我的npt系综的mdp文件


title                = NVT with position restraint on heavy atoms of ttvp
;define               = -DPOSRES
integrator           = md               ;integrator
dt                   = 0.002            ;timestep
nsteps               = 25000000         ;50 ns

pbc                  = xyz              ;Periodic Boundaries in XYZ

nstlist              = 10               ;Neighb actualization steps
rlist                = 1.2              ;Cut for near neigh
ns_type              = grid             ;Type of neighb mapping

coulombtype          = PME              ;Coul type
pme_order            = 4                ;Order of cubic interpolation
rcoulomb             = 1.2              ;Cut for coulomb int
fourierspacing       = 0.16             ;Gird spaccing for FFTW
optimize_fft         = yes              ;Do optimize FFTW at the beggining of the MD
ewald_rtol           = 1e-5             ;Strength of Displaced edwald potential
DispCorr             = EnerPres

vdwtype              = switch           ;VDW type
rvdw_switch          = 1.0              ;where to start switching the LJ potential
rvdw                 = 1.2              ;Cut for LJ or Bukingham

; Temperature coupling is on
tcoupl               = V-rescale        ;Thermostat on (T)
tc-grps              = system
tau_t                = 0.1              ;Temperature coupling dT in ps
ref_t                = 300              ;Reference temperature, one for each group, in K

; Pressure coupling is on
pcoupl          = Parrinello-Rahman     ; Pressure coupling on in NPT
pcoupltype      = isotropic             ; uniform scaling of x-y box vectors, independent z
tau_p           = 2.0                   ; time constant, in ps
ref_p           = 1.0                   ; reference pressure, x-y, z (in bar)
compressibility = 4.5e-5                ; isothermal compressibility, bar^-1               ;

continuation           = yes              ;continuing the simulation from the previous NVT equilibration phase
;gen_vel               = yes               ;Do gen initial velocities
;gen_temp              = 50               ;Do generate the initial temperatures at 50K
;gen_seed              = -1               ;Generate every time

;annealing simulation
annealing           =  single    ;Type of annealing
annealing_npoints   = 9        ;Number of annealing points
annealing_time      =  0 5000 10000 15000 20000 25000 30000 35000 40000   ;Time to reach the target
annealing_temp      =  300 310 320 330 340 350 360 370 380  ;Initial and final temperature

constraints          = hbonds           ;Bonds restrictions
constraint_algorithm = lincs            ;Algorithm to restrict
lincs_iter           = 1                ;Number of iterations of LINCS
lincs_order          = 4                ;Max exp order

nstcomm              = 10               ;Num of steps to remove the COM
comm-mode            = Linear           ;Type of COM removal
comm-grps            = system           ;Remove COM to what?

nstxout              = 20000          ;Frecuency to write coordinates to the TRR
nstvout              = 20000          ;Frecuency to write velocities to the TRR
nstxtcout            = 5000           ;Frequency to write to the XTC

nstlog               = 2000             ;Frecuency to write to the LOG
nstenergy            = 2000             ;Frecuency to write energies to the LOG

6万

帖子

99

威望

6万

eV
积分
125204

管理员

公社社长

2#
发表于 Post on 2022-2-22 21:02:47 | 只看该作者 Only view this author
退火这种非平衡过程甭用Parrinello-Rahman压浴

程序上可行不可行是一码事,有没有实际意义是另一码事,后者没细节没法说
北京科音自然科学研究中心http://www.keinsci.com)致力于计算化学的发展和传播,长期开办极高质量的各种计算化学类培训:初级量子化学培训班中级量子化学培训班高级量子化学培训班量子化学波函数分析与Multiwfn程序培训班分子动力学与GROMACS培训班CP2K第一性原理计算培训班,内容介绍以及往届资料购买请点击相应链接查看。这些培训是计算化学从零快速入门以及进一步全面系统性提升研究水平的高速路!培训各种常见问题见《北京科音办的培训班FAQ》
欢迎加入北京科音微信公众号获取北京科音培训的最新消息,并避免错过网上有价值的计算化学文章!
欢迎加入人气极高、专业性特别强的理论与计算化学综合交流群思想家公社QQ群(群号见此链接),合计达一万多人。北京科音培训班的学员在群中可申请VIP头衔,提问将得到群主Sobereva的最优先解答。
思想家公社的门口Blog:http://sobereva.com(发布大量原创计算化学相关博文)
Multiwfn主页:http://sobereva.com/multiwfn(十分强大、极为流行的量子化学波函数分析程序)
Google Scholar:https://scholar.google.com/citations?user=tiKE0qkAAAAJ
ResearchGate:https://www.researchgate.net/profile/Tian_Lu

170

帖子

0

威望

770

eV
积分
940

Level 4 (黑子)

3#
 楼主 Author| 发表于 Post on 2022-2-23 08:52:08 | 只看该作者 Only view this author
好的 老师  那我如果用已经平衡好的构型进行退火的话是不是就可以用Parrinello-Rahman压浴了?

还有我的思路是我想模拟聚集体对温度依赖性,所以想通过退火得到不同温度下的构型,然后将这些构型进行优化,想知道的是这种方法可不可行?

170

帖子

0

威望

770

eV
积分
940

Level 4 (黑子)

4#
 楼主 Author| 发表于 Post on 2022-2-24 10:41:27 | 只看该作者 Only view this author
sobereva 发表于 2022-2-22 21:02
退火这种非平衡过程甭用Parrinello-Rahman压浴

程序上可行不可行是一码事,有没有实际意义是另一码事, ...

老师,您好,我按照您说的把压浴换成了Berendsen,然后按照上述的mdp文件在NPT系综尝试对聚集体水溶液进行退火,结果出现了问题,如下:

Source file: src/gromacs/ewald/pme-redistribute.cpp (line 282)
MPI rank:    35 (out of 48)
147 particles communicated to PME rank 2 are more than 2/3 times the cut-off
out of the domain decomposition cell of their charge group in dimension x.
This usually means that your system is not well equilibrated.

For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors
-------------------------------------------------------

Fatal error:
126 particles communicated to PME rank 5 are more than 2/3 times the cut-off
out of the domain decomposition cell of their charge group in dimension x.
This usually means that your system is not well equilibrated.

For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors
-------------------------------------------------------
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 35 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.

请问这是什么原因,是mdp文件有问题吗?应该怎么做呢?

6万

帖子

99

威望

6万

eV
积分
125204

管理员

公社社长

5#
发表于 Post on 2022-2-24 11:28:26 | 只看该作者 Only view this author
yangjunfang 发表于 2022-2-23 08:52
好的 老师  那我如果用已经平衡好的构型进行退火的话是不是就可以用Parrinello-Rahman压浴了?

还有我的 ...

退火是变温的过程,期间体系必然处于非平衡状态,当然不能用PR压浴

即便同一种温度下模拟,模拟过程中也会大产生大量不同构型,能量极小化完了也会得到不同极小点结构(除非体系真的极度简单)。做能量极小化没什么意义。直接取MD的一些帧说明当前温度下有代表性的结构是什么样就完了,必要时可以做簇分析取最大的簇中的代表性结构。
北京科音自然科学研究中心http://www.keinsci.com)致力于计算化学的发展和传播,长期开办极高质量的各种计算化学类培训:初级量子化学培训班中级量子化学培训班高级量子化学培训班量子化学波函数分析与Multiwfn程序培训班分子动力学与GROMACS培训班CP2K第一性原理计算培训班,内容介绍以及往届资料购买请点击相应链接查看。这些培训是计算化学从零快速入门以及进一步全面系统性提升研究水平的高速路!培训各种常见问题见《北京科音办的培训班FAQ》
欢迎加入北京科音微信公众号获取北京科音培训的最新消息,并避免错过网上有价值的计算化学文章!
欢迎加入人气极高、专业性特别强的理论与计算化学综合交流群思想家公社QQ群(群号见此链接),合计达一万多人。北京科音培训班的学员在群中可申请VIP头衔,提问将得到群主Sobereva的最优先解答。
思想家公社的门口Blog:http://sobereva.com(发布大量原创计算化学相关博文)
Multiwfn主页:http://sobereva.com/multiwfn(十分强大、极为流行的量子化学波函数分析程序)
Google Scholar:https://scholar.google.com/citations?user=tiKE0qkAAAAJ
ResearchGate:https://www.researchgate.net/profile/Tian_Lu

6万

帖子

99

威望

6万

eV
积分
125204

管理员

公社社长

6#
发表于 Post on 2022-2-24 11:31:37 | 只看该作者 Only view this author
yangjunfang 发表于 2022-2-24 10:41
老师,您好,我按照您说的把压浴换成了Berendsen,然后按照上述的mdp文件在NPT系综尝试对聚集体水溶液进 ...

mdrun接上-ntmpi 1再试,如果还这样,输入文件本身就有问题,导致体系严重不稳定
北京科音自然科学研究中心http://www.keinsci.com)致力于计算化学的发展和传播,长期开办极高质量的各种计算化学类培训:初级量子化学培训班中级量子化学培训班高级量子化学培训班量子化学波函数分析与Multiwfn程序培训班分子动力学与GROMACS培训班CP2K第一性原理计算培训班,内容介绍以及往届资料购买请点击相应链接查看。这些培训是计算化学从零快速入门以及进一步全面系统性提升研究水平的高速路!培训各种常见问题见《北京科音办的培训班FAQ》
欢迎加入北京科音微信公众号获取北京科音培训的最新消息,并避免错过网上有价值的计算化学文章!
欢迎加入人气极高、专业性特别强的理论与计算化学综合交流群思想家公社QQ群(群号见此链接),合计达一万多人。北京科音培训班的学员在群中可申请VIP头衔,提问将得到群主Sobereva的最优先解答。
思想家公社的门口Blog:http://sobereva.com(发布大量原创计算化学相关博文)
Multiwfn主页:http://sobereva.com/multiwfn(十分强大、极为流行的量子化学波函数分析程序)
Google Scholar:https://scholar.google.com/citations?user=tiKE0qkAAAAJ
ResearchGate:https://www.researchgate.net/profile/Tian_Lu

170

帖子

0

威望

770

eV
积分
940

Level 4 (黑子)

7#
 楼主 Author| 发表于 Post on 2022-2-24 11:34:53 | 只看该作者 Only view this author
sobereva 发表于 2022-2-24 11:28
退火是变温的过程,期间体系必然处于非平衡状态,当然不能用PR压浴

即便同一种温度下模拟,模拟过程中 ...

嗯嗯,好的,谢谢您的解答,我按照您说的把压浴换成了Berendsen,然后在NPT系综尝试对聚集体水溶液进行退火,结果出现了问题,如下:
Fatal error:
126 particles communicated to PME rank 5 are more than 2/3 times the cut-off
out of the domain decomposition cell of their charge group in dimension x.
This usually means that your system is not well equilibrated.
能麻烦您看一下该怎么解决呢?

170

帖子

0

威望

770

eV
积分
940

Level 4 (黑子)

8#
 楼主 Author| 发表于 Post on 2022-2-24 11:52:30 | 只看该作者 Only view this author
sobereva 发表于 2022-2-24 11:31
mdrun接上-ntmpi 1再试,如果还这样,输入文件本身就有问题,导致体系严重不稳定

好的,谢谢您

5

帖子

0

威望

75

eV
积分
80

Level 2 能力者

9#
发表于 Post on 2024-4-16 14:50:00 | 只看该作者 Only view this author
yangjunfang 发表于 2022-2-24 10:41
老师,您好,我按照您说的把压浴换成了Berendsen,然后按照上述的mdp文件在NPT系综尝试对聚集体水溶液进 ...

您好,我也遇到了这样的问题,想请教一下。您解决了吗?

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-27 07:11 , Processed in 0.186032 second(s), 20 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list