A series of simple python batch files to create a 2-dimension gaussian PES scan of single atom's x and y coordiantes.
- A Gaussian job template file(see /example/template.gjf), in which the cartesian coordinates that you have to scan should be substituted with [$1] and [$2].
In this example, I want to change the x and y cartesian coordinates of the 6th atom, H.
- The coordinate range that you want to scan.
In this example, I want to scan the x coordinate from -1 to 4, with step size of 0.2; And the y coordinate from -2 to 3, with step size of 0.2.
- An output directory.
- Fill in the blank file path in:
template_path = ""
output_path = ""
-
Run this script, you'll be asked to type in the scanning range, as mentioned before.
-
It will automatically generate a series of .gjf files as Gaussian job input file into the given output directory. The file will be named as {xcoordinate}{ycoordinate}.gjf, like 1.00.4.gjf, -0.2-1.2.gjf.
-
This script is based on the macOS Ventura 13.6.1(Intel Chip) and with Gaussian09m installed. It's application on Linux or WSL hasn't been tested.
-
An input directory with all the input files generated from 'inputFileGenerator.py'.
-
An output directory.
- Fill in the blank file path in:
input_dir = ""
output_dir = ""
- Run the script, it will automatically run the Gaussian job and give the outputs. The output files will have the same name as the input files.
-
The output file directory that the script 'g09TaskSubmit.py' gives.
-
The Excel file's name and its path.
- Fill in the blank file path in:
input_directory = ""
output_file = ""
-
Run the sciript, it will automatically use the last energy in every output file(no matter if it is converged or not)
-
The Excel file it create will use the first and second column as the x and y coordinate, the third column as the energy given.
It's generally the same that you use either the 'neuroNetFit-3D.py' or 'neuroNetFit-3D-2.py', they're just using different NeuroNet fitting function and method. 'neuroNetFit-2D.py' is to give a 2-dimension contour graph.
- The Excel file that the 'fileToExcel.py' gives, which use the first and second column as the x and y coordinate, the third column as the energy given.
- Replace the blank file path in:
file_path = ""
-
JUST RUN IT.
-
Or you can moderate the parameter and the method use in NeuroNet Fit based on your own data.