Skip to main content

A script to run Gaussian automatically.

Project description

GaussianRunner

python version PyPI Coverage Status codecov Codacy Badge

A Python script to run Gaussian automatically and in batches.

Author: Jinzhe Zeng

Email: jzzeng@stu.ecnu.edu.cn

Research Group

Requirements

Installation

Before you use GaussianRunner, please install Gaussian and OpenBabel 3.0 first.

With pip

$ pip install gaussianrunner

Build from source

$ git clone https://github.com/njzjz/GaussianRunner.git
$ cd GaussianRunner/
$ pip install .

You can test whether the program is running normally:

% python setup.py pytest

Examples

Simple example

>>> from gaussianrunner import GaussianRunner,GaussianAnalyst
>>> logfiles=GaussianRunner(keywords='opt freq b3lyp/6-31g(d,p)').runGaussianInParallel('SMILES',['C','C=C','CC','CO','OCCO','C=O','CN','O=O','O'])
>>> GaussianAnalyst(properties=['free_energy']).readFromLOGs(logfiles)
[{'name': 'C.log', 'free_energy': -40.49868}, {'name': 'C=C.log', 'free_energy': -78.563562}, {'name': 'CC.log', 'free_energy': -79.786915}, {'name': 'CO.log', 'free_energy': -115.69529}, {'name': 'OCCO.log', 'free_energy': -230.198798}, {'name': 'C=O.log', 'free_energy': -114.498144}, {'name': 'CN.log', 'free_energy': -95.822381}, {'name': 'O=O.log', 'free_energy': -150.272624}, {'name': 'O.log', 'free_energy': -76.416031}]

Running across nodes with MPI

First, install MPI4PY and MPICH 2:

$ conda install mpi4py

Then run mpiexample.py with MPI:

$ mpirun -n 9 --hostfile hostfile python mpiexample.py

There should be hostfile in the folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gaussianrunner-1.0.21.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

gaussianrunner-1.0.21-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file gaussianrunner-1.0.21.tar.gz.

File metadata

  • Download URL: gaussianrunner-1.0.21.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.0

File hashes

Hashes for gaussianrunner-1.0.21.tar.gz
Algorithm Hash digest
SHA256 b3f4261cf443355622a82e5c6700107c91fa9314e28545c163ebf14f2f653573
MD5 b6841b180702ceceef845896c9880d2c
BLAKE2b-256 d44553dba4ae58db1575cfd1c7e3f2c082995b7c3b1be06721c32da0408ec044

See more details on using hashes here.

File details

Details for the file gaussianrunner-1.0.21-py3-none-any.whl.

File metadata

  • Download URL: gaussianrunner-1.0.21-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.0

File hashes

Hashes for gaussianrunner-1.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 851b5653c17be5265f502eb75bb87b314f402e9615a6e2275947cd2ebd75ae86
MD5 8e1c6e54bf05358d03c7693b954974f7
BLAKE2b-256 d55501ca98952e3413803fdee7f28fafc499e1355fbf516a0d9bd85ad8fbc4b9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page