Useful utilities to use Gaussian09/16 software
Project description
Gaussian Utility
The Gaussian Utility is a Python package that provides useful utilities for working with Gaussian 09/16 software.
Gaussian is a computer program used by chemists, chemical engineers, biochemists, physicists, and other scientists for performing quantum chemistry calculations.
The Gaussian Utility package offers several functionalities to enhance the usage of Gaussian software. Especially, this package can address ONIOM-type Gaussian input/output files, which is not widely available in ASE.
Most of the scripts that work on a Gaussian output file are written based Density Functional Theory calculations. Hence, the compatibility with different types of calculations, e.g., coupled cluster, Hartree-Fock, semi-empirical, and Møller–Plesset perturbation methodes has not been confirmed yet.
The package includes the following scripts:
-
Convert input structure file type:
com2vasp
: Converts Gaussian input file (.com) to VASP input file (.vasp).com2xyz
: Converts Gaussian input file (.com) to XYZ coordinate file (.xyz).vasp2com
: Converts VASP input file (.vasp) to Gaussian input file (.com).xyz2com
: Converts XYZ coordinate file (.xyz) to Gaussian input file (.com).
-
Extract structure from output file:
out2com
: Generate Gaussian input file (.com) from Gaussian output file (.out).out2xyz
: Generate XYZ coordinate file (.xyz) from Gaussian output file (.out).
-
Spectrum utilities:
spectrum
: Produces Normal-IR, Raman, or UV-Vis spectra from Gaussian output file (.out).
-
Other utilities:
gibbsTemp
: Calculates the Gibbs free energies at given temperatures from a Gaussian output file with frequency calculation.printE
: Prints the energy from a Gaussian output file.freezeLayer
: Freezes a specific ONIOM layer of atoms in a Gaussian input file with ONIOM formulation.sortInput
: Sorts the atoms in a Gaussian input file based on their atomic numbers, x, y, or z coordiate, or ONIOM layer.
Installation
Gaussian Utility is a pip installable package:
pip install gaussianutility
Alternatively, it can be installed from GitHub following these steps:
-
Clone the GitHub repository:
git clone https://github.com/Sungil-Hong/gaussianutility.git
-
Navigate to the cloned repository:
cd gaussianutility
-
Install the package using
setuptools
:pip install .
Dependencies
The Gaussian Utility package has the following dependencies:
- numpy>=1.17.2
- pandas>=1.1.0
- periodictable>=1.6.1
- ase
- argparse>=1.1
- matplotlib>=3.5.1
- mendeleev>=0.9.0
These dependencies will be automatically installed when you install the package using setuptools
.
Usage
The Gaussian Utility package provides command-line utilities that can be accessed by running the corresponding command. Here are some examples of how to use the utilities:
-
Convert a structure file format:
com2vasp structure.com com2xyz structure.com vasp2com structure.vasp xyz2com structure.xyz
-
Extract optimized geometry from a Gaussian output file:
out2com output.out out2xyz output.out
-
Produce a spectrum from a Gaussian output file:
spectrum type file_name1 [ratio1 [file_name2 ratio2 ...]]
-
Freeze a specific ONIOM layer of atoms in a Gaussian input file:
freezeLayer [-i [layer index]] file_name
-
Calculate the Gibbs free energy at a given temperature:
gibbsTemp file_name temp1 [temp2 [step_number]]
-
Print the energy of a Gaussian output file:
printE file_name
-
Sort the atoms in a Gaussian input file based on their atomic numbers:
sortInput [-s [sort index]] [-o [order index]] file_name
Test
In the test folder, you'll find files for testing each command with the naming convention "command_structure.extension". For example, to test the "com2vasp" command, follow these steps:
- Navigate to the test directory:
cd test
- Run the desired command with the corresponding test file. For example, to test the "com2vasp" command with the file "com2vasp_ZSM5.com", use the following command:
com2vasp com2vasp_ZSM5.com
- Verify that the command executes as expected and produces the correct output.
Authors
The Gaussian Utility package was developed by Sungil Hong. For any inquiries or issues, you can contact Sungil Hong via email at s.hong@pitt.edu.
License
The Gaussian Utility package is distributed under the MIT License. Please refer to the LICENSE file for more information.
Additional Information
For more information about the Gaussian Utility package, you can visit the GitHub repository. The repository contains the source code, documentation, and examples of usage for the package.
Acknowledgment
The Gaussian Utility package has developed over multiple computational chemistry research projects conducted in the Computer-Aided Nano and Energy Lab (CANELa), led by Prof. Mpourmpakis at the University of Pittsburgh. The projects have been financially supported by U.S. Department of Energy Nuclear Energy University Program (DOE-NEUP) (18-15496), and National Science Foundation (NSF) (1920623), and computationally supported by the Center for Research Computing (CRC) at the University of Pittsburgh for performing DFT calculations.
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
Built Distribution
Hashes for gaussianutility-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c006ef206dcfa2a9ad712de25a39e05efead733e23a45cbeb06d44997868ee9a |
|
MD5 | fa9e07c0d8f1bab85a74efa988fdfe77 |
|
BLAKE2b-256 | a0861576fc26bcd45b97a45045597f0bf9f86a162dd4d4fe8b4ea9adc6f3a124 |