计算化学公社

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

[辅助/分析程序] autoMECP自动工作流

[复制链接 Copy URL]

347

帖子

1

威望

1798

eV
积分
2165

Level 5 (御坂)


把easyMECP
jaimergp/easymecp: Python utilities for performing MECP (Minimum Energy Crossing Point) with Gaussian
EasyMECP - 量子化学 (Quantum Chemistry) - 计算化学公社


进一步做了傻瓜式的优化,将fortran部分的MECP代码用Python实现了,现在是一个纯Python的代码,不再需要fortran编译。

  1. usage: automecp [-h] [-V] -f INPUTFILE [--max_steps MAX_STEPS]
  2.                 [--energy_parser {cis,dft,mp2,td}]
  3.                 [--gaussian_exe GAUSSIAN_EXE] [--fresh] [--TDE TDE]
  4.                 [--TDXMax TDXMAX] [--TDXRMS TDXRMS] [--TGMax TGMAX]
  5.                 [--TGRMS TGRMS]

  6. optional arguments:
  7.   -h, --help            show this help message and exit
  8.   -V, --version         show program's version number and exit
  9.   -f INPUTFILE, --inputfile INPUTFILE
  10.                         Gaussian template .gjf with {A,B} fields
  11.   --max_steps MAX_STEPS
  12.   --energy_parser {cis,dft,mp2,td}
  13.   --gaussian_exe GAUSSIAN_EXE
  14.   --fresh               Start from scratch inside the workdir
  15.   --TDE TDE
  16.   --TDXMax TDXMAX
  17.   --TDXRMS TDXRMS
  18.   --TGMax TGMAX
  19.   --TGRMS TGRMS
复制代码

使用方式就是python automecp.py -f ****.gjf --energy_parser ***

Gaussian输入的模板和easymecp保持一致
  1. %chk={Singlet,Triplet}.chk
  2. #n PBE1PBE/6-31G** force guess(read)

  3. {Singlet,Triplet} State

  4. 1 {1,3}
  5.    C    0.00000000    1.29390795    0.00000000
  6.    C    1.26894294    0.69491769    0.00000000
  7.    C    1.25319073   -0.68704191    0.00000000
  8.    C    0.00000000   -1.37652121    0.00000000
  9.    C   -1.25319073   -0.68704191    0.00000000
  10.    C   -1.26894294    0.69491769    0.00000000
  11.    H    2.18616903    1.27569862    0.00000000
  12.    H    2.18025862   -1.25246238    0.00000000
  13.    H    0.00000000   -2.46323577    0.00000000
  14.    H   -2.18025862   -1.25246238    0.00000000
  15.    H   -2.18616903    1.27569862    0.00000000

复制代码

现在会自动计算初始的初猜文件,断点自动续算。如果要强制从头开始(清空工作目录内旧文件),可以添加--fresh参数:
  1. python automecp.py -f Pyrrole_A2-3B2.gjf --energy_parser td --fresh
复制代码


脚本会自动创建工作目录:
工作目录名 = 模板文件名去后缀 + .mecp
例如模板文件是: /home/work/Pyrrole_A2-3B2.gjf
工作目录为: /home/work/Pyrrole_A2-3B2.mecp/
所有计算都在该目录内进行。

automecp.py (28 KB, 下载次数 Times of downloads: 0)
C6H5 .gjf (604 Bytes, 下载次数 Times of downloads: 0)
Pyrrole_A2-3B2.gjf (561 Bytes, 下载次数 Times of downloads: 0)


本版积分规则 Credits rule

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

GMT+8, 2026-3-3 16:45 , Processed in 0.190621 second(s), 23 queries , Gzip On.

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