This repository contains a Python script (gaussian2xyz.py
) that is designed to read Gaussian output files (.log
files) and extract the geometrically optimized structure, writing it to a standard XYZ format file.
- Read Gaussian Output: Automatically finds and reads the Gaussian output file in the current directory.
- Extract Optimized Geometry: Parses the 'Standard orientation' section from the Gaussian output.
- Write to XYZ Format: Outputs the atomic coordinates in the widely-supported XYZ format.
To use this script, simply place it in the same directory as your Gaussian .log
files and run it using Python. The script will automatically detect the .log
file, extract the optimized geometry, and write it to an output.xyz
file.
- Ensure that you have Python3 installed on your system. You can download Python from here.
- Place the
gaussian2xyz.py
script in the directory containing your Gaussian.log
files. - Open a terminal or command prompt.
- Navigate to the directory containing the script and log files.
- Run the script:
python gaussian2xyz.py
- Check the directory for the 'output.xyz' file, which will contain the converted coordinates.
- Python 3.x
This project is open source and available under the MIT License.