|
本帖最后由 冰释之川 于 2024-11-3 08:03 编辑
之前看到了社长写的一键把所有gjf文件转成xyz文件、把所有Gaussian输出文件转成gjf文件的脚本:
http://sobereva.com/530(http://bbs.keinsci.com/thread-16161-1-1.html)
于是乎本人心血来潮,基于Multiwfn编写了多种常用量子化学程序间I/O文件转换的脚本包:
1 Convert [*.gjf/*.xyz/*.fchk/*.fch/*.out/*.log] files to [*.gjf/*.inp/*.mop/*.xyz] files by Multiwfn
2 Convert [*.fchk/*.fch] files to [*.mkl] files by Multiwfn
3 Interconvert between [*.fchk/*.fch] and [*.molden] files by Multiwfn
4 Interconvert between [*.fchk] and [*.chk] Gaussian checkpoint files by formchk/unfchk tool
5 Interconvert between [*.gbw] and [*.mkl] ORCA files by orca_2mkl tool
6 Convert [*.gbw] files to [*.molden] files by orca_2mkl tool
Conversion_Scripts.sh
(17.08 KB, 下载次数 Times of downloads: 366)
另外附上提取ORCA和Gaussian输出文件信息,利用freqchk重新计算热力学量的提取脚本:
1 Extract single point energy (SPE) of DFT and HF from Gaussian16 output files
2 Extract Zero-point energy (ZPE) and thermal correction to G, H and U (Gcorr, Hcorr, and Ucorr) from Gaussian16 output files
3 Extract TDDFT information from Gaussian16 output files
4 Extract SPE from ORCA-4.2.1 output files
5 Extract Zero-point energy (ZPE) and thermal correction to G, H and U (Gcorr, Hcorr, and Ucorr) from ORCA-4.2.1 output files [ updated on 2020.04.03 ]
6 Recalculate Gcorr and Hcorr by using freqchk tool and Gaussian16 [*.fchk] files
7 Detect the status of Gaussian optimization outputs (imaginary frequency, opt/SCF convergency, etc.)
8 Extract SPE from xtb-6.3(pre) output files [ updated on 2020.04.07 ]
9 Calculate ZPE, Gcorr, Hcorr, and Ucorr by using Shermo 2.0 [ updated on 2020.05.12 ]
P.s. Shermo 2.0 下载地址为: http://sobereva.com/soft/shermo/
在~/.bashrc中设置Shermo 2.0的环境变量:
- export Shermopath=/sob/Shermo_2.0
- export PATH=$PATH:/sob/Shermo_2.0
复制代码
Extraction_Scripts.sh
(28.99 KB, 下载次数 Times of downloads: 241)
#PS 感谢Jingdan Chen同学对Extraction_Scripts.sh脚本进行修订,修订日志如下:
- ```ORCA version 6.0.0
- Line 272-289, Function extr_thermal_orca_process
- 1. 如果ORCA的优化任务包含Calc_Hess或Recalc_Hess关键词,与Gaussian不同,在每次频率分析后ORCA都会以相同格式输出热力学量,因此原脚本会出现拉出不止一个数值的情况,导致拿到的数值异常且有报错信息(但程序会正常跑完)。修改: awk 加入END机制,
- 2. 修改: printf 补充 \n换行
- Line 74-75
- 1. 修改: 补充mainchoice == 5 的分析结束后的信息输出
- ```
复制代码
Extraction_Scripts_rev.sh
(29.15 KB, 下载次数 Times of downloads: 11)
(Jingdan Chen修订版)
批量删除文件脚本 [ added on 2020.02.10 ]
Files_Cleaner.sh
(2.72 KB, 下载次数 Times of downloads: 92)
批量为*.gjf/*.inp/*.xyz/*.mop生成PBS作业提交文件的脚本(请酌情修改PBS模板文件)[ updated on 2022.06.23 ]
PBS模板文件为:Gaussian.pbs, ORCA.pbs, MOPAC.pbs, xtb.pbs, xtb_md.pbs和xtb_md_temp_search.pbs
其中folder_qsub_all.sh为批量提交PBS任务的脚本
Scripts_PBS_Allocation.zip
(18.74 KB, 下载次数 Times of downloads: 130)
具体使用方法:
(1) 把*.sh脚本放到工作目录下
(2) 用bash命令 运行之
(3) 脚本会深度遍历该目录下所有的子目录,并处理目标文件。
如果发现Bug,烦请邮箱联系本人
|
评分 Rate
-
查看全部评分 View all ratings
|