-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d73e4e
commit ecd1a64
Showing
1 changed file
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
# Gaussian_output_to_xyz | ||
Python3 converted from Gaussian *.log file to *.xyz format file | ||
# Gaussian to XYZ Converter | ||
|
||
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. | ||
|
||
## Features | ||
|
||
- **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. | ||
|
||
## Usage | ||
|
||
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. | ||
|
||
### Step-by-Step Instructions | ||
|
||
1. Ensure that you have Python3 installed on your system. You can download Python from [here](https://www.python.org/downloads/). | ||
2. Place the `gaussian2xyz.py` script in the directory containing your Gaussian `.log` files. | ||
3. Open a terminal or command prompt. | ||
4. Navigate to the directory containing the script and log files. | ||
5. Run the script: | ||
```bash | ||
python gaussian2xyz.py | ||
6. Check the directory for the 'output.xyz' file, which will contain the converted coordinates. | ||
|
||
## Requirements | ||
|
||
- Python 3.x | ||
|
||
## License | ||
|
||
This project is open source and available under the MIT License. | ||
|
||
## Contact | ||
|
||
If you have any questions or feedback regarding this script, please feel free to open an issue in this repository. |