|
本帖最后由 北大-陶豫 于 2021-5-4 20:30 编辑
https://github.com/Tao-Yu-Chem/GaussianScripts/ 里的 Converge_Reader.cpp(或最后的附件)
(2021年3月6日更新:添加了对双杂化泛函的支持,为说明添加了英文版。)(Update on March 6, 2021: Added support for double-hybrid functionals, and added an English version for the description.)
这是本人写的监督高斯结构优化进度的脚本,能显示出每步的能量、受力、位移等信息,如果受力、位移等达到了收敛标准会加上下划线,十分直观。
This is a script I wrote to monitor the progress of Gaussian structure optimization. It can display the energy, force, displacement and other information of each step. If the force and displacement reach the convergence standard, they will be underlined, which is very intuitive.
下面是一个 opt freq job 的使用效果:
Below is the use effect of an opt freq job:
(2021年3月6日新增)对双杂化泛函也支持得很好,能给出加入了 MP2 关联能的正确能量(而 GView 会给出错误的能量,即 SCF Done 的能量,详见 http://bbs.keinsci.com/thread-13450-1-1.html):(Added on March 6, 2021) It also supports double hybrid functionals very well (While GView will give the wrong energy, i. e. , the energy of "SCF Done", see http://bbs.keinsci.com/thread-13450-1-1.html for details):
会自动找出受力、位移最小的步,因此可以帮助判断结构优化是否发生了振荡。比如下面就是一个发生振荡的例子:
It will automatically find the step with the smallest force and displacement, so it can help determine whether the structure optimization had an oscillation. Below is an example of oscillation:
当前已经走了 184 步,但能量最低的是第 147 步,受力最小的是第 85 步,位移最小的是第 36 步,因此显然发生了振荡。
At present, 184 steps have been taken, but the lowest energy is on step 147, the lowest force is on step 85, and the lowest displacement is on step 36, so it is obvious that there is an oscillation.
会自动检测 scan job,并给出 scan summary:
It can automatically detect a scan job and give a scan summary:
有时 scan job 未完成,或结构优化走步太多(发生振荡、未能收敛),会给对应的能量显示警告信息:
Sometimes the scan job is not completed, or the structure optimization takes too many steps (oscillation, failure to converge), a warning message will be displayed for the corresponding energy:
(注意,对于 scan job 中结构优化发生振荡的情况,我的脚本会给出最低能量,而不是像 GView 一样给出最后一个结构的能量。)
(Note that for the oscillation of structure optimization in scan job, my script will give the lowest energy instead of giving the energy of the last structure like GView does.)
能自动检测错误并显示出来:(但是还不太支持 IRC job)
It can also automatically detect and display errors: (but IRC jobs are poorly supported)
现在已知的缺点:
Currently known disadvantages:
(1)基本只支持 sp,opt,freq 等 job type,尚不支持 IRC 等 job type。
(1) Basically, only job types such as sp, opt, freq are supported, while job types such as IRC are not yet supported.
(2)能量读取是从有 "SCF Done" 的一行中读取,因此对涉及 MPn 的任务,如 MPn、CCSD 等任务无法得到正确的能量(但已经支持双杂化泛函得到正确能量了)。
(2) The energy read is read from the line with "SCF Done", so for tasks involving MPn, such as MPn, CCSD and other tasks, the correct energy cannot be obtained (But double hybrid functional has been supported to obtain the correct energy).
|
评分 Rate
-
查看全部评分 View all ratings
|