A script to run Gaussian automatically.
Project description
GaussianRunner
A Python script to run Gaussian automatically and in batches.
Author: Jinzhe Zeng
Email: jzzeng@stu.ecnu.edu.cn
Requirements
Installation
Before you use GaussianRunner, please install Gaussian and OpenBabel 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
Release history Release notifications | RSS feed
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.19.tar.gz
(7.7 kB
view details)
File details
Details for the file gaussianrunner-1.0.19.tar.gz
.
File metadata
- Download URL: gaussianrunner-1.0.19.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aff245dd682b6e513713167bf3f36624f9597bb990ecf169f41ebc50d89b31d7 |
|
MD5 | e0b56475e27a45fcf80c428af94238d8 |
|
BLAKE2b-256 | d9706a11a44c9a0f4f47f1571929fd87eaab5a89a27932a31ef04648b84b0401 |