GithubHelp home page GithubHelp logo

mizu-bai / gaussian-mokit-molpro Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 2.0 753 KB

Gaussian-MOKIT-Molpro

Home Page: http://bbs.keinsci.com/thread-33837-1-1.html

License: BSD 2-Clause "Simplified" License

Python 50.54% Roff 15.02% DIGITAL Command Language 34.44%
gaussian mokit molpro python

gaussian-mokit-molpro's Introduction

Gaussian-MOKIT-Molpro

Gaussian-MOKIT-Molpro is a solution for invoking Molpro from Gaussian, which means one can do optimization, frequencies, or even irc tasks using the algorithms from Gaussian and at the levels supported by Molpro.

Usage

To use this script gmm.py, you must have the following softwares installed.

And you need to prepare a configuration file named gmm.json, which looks like:

{
    "Gaussian": {
        "nproc": 4,
        "memory": "4GB",
        "level": "#p rohf aug-cc-pvdz nosymm int=(nobasistransform)"
    },
    "Molpro": {
        "nproc": 8,
        "memory": "200M",
        "commands": [
            "basis=avdz",
            "{rhf;}",
            "{ccsd(t)-f12a;}"
        ]
    }
}

In the json file, resources and calculation levels must be specified.

Remember that we will invoke Molpro from Gaussian, so the input file we need to write is in Gaussian format instead of Molpro format. Here comes an example:

%nproc=1
%chk=CH3F.chk
#p external="python3 -u /path/to/gmm.py"

Generated by Multiwfn

  0  1
F      0.00000000    0.00000000   -0.75831500
C      0.00000000    0.00000000    0.62637300
H      0.00000000    1.03330000    0.97660900
H      0.89486400   -0.51665000    0.97660900
H     -0.89486400   -0.51665000    0.97660900


This is almost a standard Gaussian single point energy calculation file, while we do not call the inside methods Gaussian provides. The external command external="python -u /path/to/gmm.py" indicates that Gaussian will invoke the script gmm.py, and gmm.py will first generate a Gaussian ROHF calculation input file, for most Post-HF methods in MOlpro can only start from ROHF orbitals. Another Gaussian will be started to run this ROHF task, and fch2com from MOKIT will be used to pass the ROHF orbitals to Molpro. The commands section in gmm.json will be appended to the Molpro input file generated by fch2com, and Molpro will be called to do Post-HF tasks. When Molpro task done, results will be feedback to Gaussian and written to Gaussian output file.

This script only implements energy and gradients parsing. In order to do frequencies tasks, write freq=num in route section please.

Examples

Opt + Freq

%nproc=1
%chk=CH3F.chk
#p opt=nomicro external="python3 -u /path/to/gmm.py"

Generated by Multiwfn

  0  1
F      0.00000000    0.00000000   -0.75831500
C      0.00000000    0.00000000    0.62637300
H      0.00000000    1.03330000    0.97660900
H      0.89486400   -0.51665000    0.97660900
H     -0.89486400   -0.51665000    0.97660900


--link1--
%nproc=1
%chk=CH3F.chk
#p freq=num external="python3 -u /path/to/gmm.py" geom=allcheck


Opt TS + Freq

%nproc=1
%chk=TS.chk
#p freq=num external="python3 -u /path/to/gmm.py"

Title Card Required

0 1
 C                  0.56314246   -0.57635434    0.00000000
 N                 -0.37519999    0.35694724    0.00000000
 H                 -0.79524238   -1.09345422    0.00000000


--link1--
%nproc=1
%chk=TS.chk
#p opt=(rcfc,noeigen,nomicro,ts) external="python3 -u /path/to/gmm.py" geom=allcheck


--link1--
%nproc=1
%chk=TS.chk
#p freq=num external="python3 -u /path/to/gmm.py" geom=allcheck


IRC

%nproc=1
%oldchk=TS.chk
#p irc=(rcfc,gradientonly) external="python3 -u /path/to/gmm.py" geom=allcheck


Results

Here is a simple test on HCN isomerization reaction.

Acknowledgements

This script is inspired by Tian Lu's work.

Bug Report

Citation

If Gaussian-MOKIT-Molpro is invoked in your work, please cite this repo as

Junhong Li, Gaussian-MOKIT-Molpro, https://github.com/mizu-bai/Gaussian-MOKIT-Molpro (accessed month day, year)

Please also cite Gaussian, MOKIT, and Molpro. For citation info, refer to their websites.

gaussian-mokit-molpro's People

Contributors

mizu-bai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gaussian-mokit-molpro's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.