从Gaussian 09的Hartree-Fock计算的fchk文件转换到Columbus的mocoef文件的脚本

该脚本旨在将Gaussian 09的Hartree-Fock.fchk文件转化为Columbus软件兼容的mocoef文件。然而,由于测试阶段尚未完成,无法确保脚本的准确性。转换过程要求两软件的基组和对称性完全匹配。
摘要由CSDN通过智能技术生成

这个脚本用于将Gaussian 09的Hartree-Fock计算的.fchk文件转换到Columbus软件使用的mocoef文件。

需要说明的是,测试工作还不完善,不保证此脚本的正确性。

注意:两个软件所使用的基组以及对称性等等必须完全一致!

#! /usr/bin/perl

# code by luozhen

# ATTENTION: MAKE SURE that the SAME BASIS SET has been used in the two softwares.

# results saved in the file "mocoef"
# you MUST have the access to write in the work directory.
open (Columbus, ">mocoef") or die "Can not create file \"mocoef\"!";

# read input data
# use command as "./hfg09tocol.pl inputfile" in bash shell.
while (<>) {
	push @lines, $_;
}

# check necessary info
while ($id < @lines) {
        if ($lines[$id] =~ m/Number of electrons.*([0-9][0-9]+)/) {
                $count_electrons = $1;
        } elsif ($lines[$id] =~ m/basis functions.*([0-9][0-9]+)/) {
		$count_basis_func = $1;
	} elsif ($lines[$id] =~ m/independent function
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值