计算化学公社

 找回密码 Forget password
 注册 Register
楼主 Author: fhh2626
打印 Print 上一主题 Last thread 下一主题 Next thread

[GROMACS] 编译Gromacs-Colvars进行自由能计算

  [复制链接 Copy URL]

1093

帖子

6

威望

6269

eV
积分
7482

Level 6 (一方通行)

16#
 楼主 Author| 发表于 Post on 2021-1-28 13:16:54 | 只看该作者 Only view this author
HZW 发表于 2021-1-28 00:57
还有一个问题,就是colvarsRestartFrequency要设置和gromacs运行的步长一样吗?colvars里边步长是多少fs, ...

colvarsRestartFrequency是colvars断点续跑文件输出频率,设一个合理的值就行
够了

1

帖子

0

威望

116

eV
积分
117

Level 2 能力者

17#
发表于 Post on 2021-4-27 10:17:06 | 只看该作者 Only view this author
老师您好,请问在lammps里如何安装colvars呢?

1093

帖子

6

威望

6269

eV
积分
7482

Level 6 (一方通行)

18#
 楼主 Author| 发表于 Post on 2021-4-29 18:12:24 | 只看该作者 Only view this author
Ekko 发表于 2021-4-27 10:17
老师您好,请问在lammps里如何安装colvars呢?

没有用过LAMMPS,但是LAMMPS似乎是自带colvars的

120

帖子

0

威望

655

eV
积分
775

Level 4 (黑子)

19#
发表于 Post on 2021-7-20 09:49:17 | 只看该作者 Only view this author
您好,付博士,我想问下我用最新的colvars,然后gmx用的2018.8用colvars patch过的,使用时报这个错误是什么意思?如何解决啊。
colvars: Initializing the collective variables module, version "2021-03-09".
colvars: Please cite Fiorin et al, Mol Phys 2013:
https://dx.doi.org/10.1080/00268976.2013.813594
in any publication based on this calculation.
colvars: SMP parallelism is enabled; if needed, use "smp off" to override this.
colvars: This version was built with the C++11 standard or higher.
colvars: Using GROMACS interface, version "2021-03-02".
colvars: ----------------------------------------------------------------------
colvars: Reading new configuration from file "colvars.dat":
colvars: Error: unmatched curly braces in configuration.
colvars: If this error message is unclear, try recompiling with -DCOLVARS_DEBUG.

-------------------------------------------------------
Program:     gmx mdrun, version 2018.8-dev
Source file: src/gromacs/colvars/colvarproxy_gromacs.cpp (line 338)
MPI rank:    0 (out of 2)

Fatal error:
Error in collective variables module.

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

1093

帖子

6

威望

6269

eV
积分
7482

Level 6 (一方通行)

20#
 楼主 Author| 发表于 Post on 2021-7-21 15:07:33 | 只看该作者 Only view this author
HZW 发表于 2021-7-20 09:49
您好,付博士,我想问下我用最新的colvars,然后gmx用的2018.8用colvars patch过的,使用时报这个错误是什 ...

colvars配置文件里面括号没有对应匹配

120

帖子

0

威望

655

eV
积分
775

Level 4 (黑子)

21#
发表于 Post on 2021-7-22 11:15:39 | 只看该作者 Only view this author
fhh2626 发表于 2021-7-21 15:07
colvars配置文件里面括号没有对应匹配

付博, 前天就发现并改正了错误,但是后面还是错了。

colvar.dat 如下:

units gromacs
colvar {
  name dist
    distance {
           group1  { atomNumbers { 2 } }
           group2  { atomNumbers   { 410}  }
                     }
             }

harmonic {
            colvars  dist
            forceConstant 1000
            centers       1.52                            # initial distance
            targetCenters           3.0              # final distance
            targetNumSteps      500000
             }


错误如下:

colvars: ----------------------------------------------------------------------
colvars: Initializing the collective variables module, version "2021-03-09".
colvars: Please cite Fiorin et al, Mol Phys 2013:
https://dx.doi.org/10.1080/00268976.2013.813594
in any publication based on this calculation.
colvars: SMP parallelism is enabled; if needed, use "smp off" to override this.
colvars: This version was built with the C++11 standard or higher.
colvars: Using GROMACS interface, version "2021-03-02".
colvars: ----------------------------------------------------------------------
colvars: Reading new configuration from file "colvars.dat":
colvars: # units = "gromacs"
colvars: # smp = on [default]
colvars: # colvarsTrajFrequency = 100 [default]
colvars: # colvarsRestartFrequency = 0 [default]
colvars: # scriptedColvarForces = off [default]
colvars: # scriptingAfterBiases = off [default]
colvars: ----------------------------------------------------------------------
colvars:   Initializing a new collective variable.
colvars:   # name = "dist"
colvars:   Initializing a new "distance" component.
colvars:     # name = "" [default]
colvars:     # componentCoeff = 1 [default]
colvars:     # componentExp = 1 [default]
colvars:     # period = 0 [default]
colvars:     # wrapAround = 0 [default]
colvars:     # forceNoPBC = off [default]
colvars:     # scalable = on [default]
colvars:       Initializing atom group "group1".
colvars:       # name = "" [default]
colvars:       # centerToOrigin = off [default]
colvars:       # centerToReference = off [default]
colvars:       # rotateToReference = off [default]
colvars:       # atomsOfGroup = "" [default]
colvars:       # indexGroup = "" [default]
colvars:       # psfSegID =  [default]
colvars:       # atomsFile = "" [default]
colvars:       # dummyAtom = ( 0 , 0 , 0 ) [default]
colvars:       # enableFitGradients = on [default]
colvars:       # printAtomIDs = off [default]
colvars:       Atom group "group1" defined with 1 atoms requested: total mass = 16, total charge = -0.6318.
colvars:       Initializing atom group "group2".
colvars:       # name = "" [default]
colvars:       # centerToOrigin = off [default]
colvars:       # centerToReference = off [default]
colvars:       # rotateToReference = off [default]
colvars:       # atomsOfGroup = "" [default]
colvars:       # indexGroup = "" [default]
colvars:       # psfSegID =  [default]
colvars:       # atomsFile = "" [default]
colvars:       # dummyAtom = ( 0 , 0 , 0 ) [default]
colvars:       # enableFitGradients = on [default]
colvars:       # printAtomIDs = off [default]
colvars:       Atom group "group2" defined with 1 atoms requested: total mass = 16, total charge = -0.6549.
colvars:     # oneSiteSystemForce = off [default]
colvars:     # oneSiteTotalForce = off [default]
colvars:   All components initialized.
colvars:   # timeStepFactor = 1 [default]
colvars:   # width = 1 [default]
colvars:   # lowerBoundary = 0 [default]
colvars:   # upperBoundary = 0 [default]
colvars:   # hardLowerBoundary = on [default]
colvars:   # hardUpperBoundary = off [default]
colvars:   # expandBoundaries = off [default]
colvars:   # extendedLagrangian = off [default]
colvars:   # outputValue = on [default]
colvars:   # outputVelocity = off [default]
colvars:   # outputTotalForce = off [default]
colvars:   # outputAppliedForce = off [default]
colvars:   # subtractAppliedForce = off [default]
colvars:   # runAve = off [default]
colvars:   # corrFunc = off [default]
colvars: ----------------------------------------------------------------------
colvars: Collective variables initialized, 1 in total.
colvars: ----------------------------------------------------------------------
colvars:   Initializing a new "harmonic" instance.
colvars:   # name = "harmonic1" [default]
colvars:   # colvars = { dist }
colvars:   # stepZeroData = off [default]
colvars:   # outputEnergy = off [default]
colvars:   # outputFreq = 0 [default]
colvars:   # timeStepFactor = 1 [default]
colvars:   # writeTISamples = off [default]
colvars:   # writeTIPMF = off [default]
colvars:   # centers = { 1.52 }
colvars:   # targetCenters = { 3 }
colvars:   # targetNumSteps = 500000
colvars:   # targetNumStages = 0 [default]
colvars:   # outputAccumulatedWork = off [default]
colvars:   # outputCenters = off [default]
colvars:   # forceConstant = 1000
colvars:   # targetForceConstant = -1 [default]
colvars:   The force constant for colvar "dist" will be rescaled to 1000 according to the specified width (1).
colvars: ----------------------------------------------------------------------
colvars: Collective variables biases initialized, 1 in total.
colvars: ----------------------------------------------------------------------
colvars: Collective variables module (re)initialized.
colvars: ----------------------------------------------------------------------
colvars: Re-initialized atom group for variable "dist":0/0. 1 atoms: total mass = 16, total charge = -0.6318.
colvars: Re-initialized atom group for variable "dist":0/1. 1 atoms: total mass = 16, total charge = -0.6549.
colvars: The restart output state file will be "md.restart.colvars.state".
colvars: The final output state file will be "md.colvars.state".
colvars: Opening trajectory file "md.colvars.traj".
Back Off! I just backed up md.colvars.traj to ./#md.colvars.traj.1#
colvars: Error: trying to allocate the collective variable module twice.
colvars: If this error message is unclear, try recompiling with -DCOLVARS_DEBUG.

-------------------------------------------------------
Program:     gmx mdrun, version 2018.8-dev
Source file: src/gromacs/colvars/colvarproxy_gromacs.cpp (line 338)
MPI rank:    0 (out of 6)

Fatal error:
Error in collective variables module.

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

1093

帖子

6

威望

6269

eV
积分
7482

Level 6 (一方通行)

22#
 楼主 Author| 发表于 Post on 2021-7-22 16:41:15 | 只看该作者 Only view this author
HZW 发表于 2021-7-22 11:15
付博, 前天就发现并改正了错误,但是后面还是错了。

colvar.dat 如下:

看起来文件没有问题,你试试加上SMP off还会出错吗

120

帖子

0

威望

655

eV
积分
775

Level 4 (黑子)

23#
发表于 Post on 2021-7-22 20:48:20 | 只看该作者 Only view this author
fhh2626 发表于 2021-7-22 16:41
看起来文件没有问题,你试试加上SMP off还会出错吗

还是一样报错,我把错误信息和colvars.dat发给 Ph.D Jérôme Hénin了,他说叫我在Git-Hub上提交问题

6

帖子

0

威望

35

eV
积分
41

Level 2 能力者

24#
发表于 Post on 2021-11-23 14:46:07 | 只看该作者 Only view this author
本帖最后由 天黑打烊 于 2021-11-23 16:26 编辑

老师,请问metadynamic中的hillwidth该如何选择呢?看到一篇文章讲高斯宽度和网格间距的比率最好为1.25,请问这里的网格间距指的是width吗?This keyword sets the Gaussian width 2σξi for all colvars, expressed innumber of grid points, with the grid spacing along each colvarξdetermined by the respective value of width.手册里对hillwidth的注释是这样的,但是我不太懂“以网格点的数量表示”这句话该如何理解?

1093

帖子

6

威望

6269

eV
积分
7482

Level 6 (一方通行)

25#
 楼主 Author| 发表于 Post on 2021-11-23 17:25:41 | 只看该作者 Only view this author
天黑打烊 发表于 2021-11-23 14:46
老师,请问metadynamic中的hillwidth该如何选择呢?看到一篇文章讲高斯宽度和网格间距的比率最好为1.25,请 ...

一般设3-5都行

6

帖子

0

威望

35

eV
积分
41

Level 2 能力者

26#
发表于 Post on 2021-11-23 19:28:00 | 只看该作者 Only view this author

Warning: gaussianSigmas is too narrow for the grid spacing along distZ.老师,按照3-5设置之后出现这种提示是为什么呢?

1093

帖子

6

威望

6269

eV
积分
7482

Level 6 (一方通行)

27#
 楼主 Author| 发表于 Post on 2021-11-24 12:56:29 | 只看该作者 Only view this author
天黑打烊 发表于 2021-11-23 19:28
Warning: gaussianSigmas is too narrow for the grid spacing along distZ.老师,按照3-5设置之后出现 ...

你设置的是hillWidth吧?别设置gaussianSigmas

6

帖子

0

威望

35

eV
积分
41

Level 2 能力者

28#
发表于 Post on 2021-11-30 16:01:02 | 只看该作者 Only view this author
老师您好,请问跑完mtd得到的PMF曲线如何判断其收敛呢?

1093

帖子

6

威望

6269

eV
积分
7482

Level 6 (一方通行)

29#
 楼主 Author| 发表于 Post on 2021-12-1 11:51:18 | 只看该作者 Only view this author
天黑打烊 发表于 2021-11-30 16:01
老师您好,请问跑完mtd得到的PMF曲线如何判断其收敛呢?

你可以看看不同时刻输出的PMF,看看是否还有变化

6

帖子

0

威望

35

eV
积分
41

Level 2 能力者

30#
发表于 Post on 2021-12-1 15:32:21 | 只看该作者 Only view this author
fhh2626 发表于 2021-12-1 11:51
你可以看看不同时刻输出的PMF,看看是否还有变化

好的,谢谢老师!

本版积分规则 Credits rule

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

GMT+8, 2024-11-23 01:13 , Processed in 0.196683 second(s), 26 queries , Gzip On.

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