Set up and submit the combined gas-phase workflow jobs in scratch.
In scratch, create a working directory for this tutorial and then create one subfolder for each molecule.
Suggested layout:
scratch/
GasPhaseTutorial/
NO/
H2/
H2O/
CO2/
HNO2/
NO2/
CO/
HNO3/
For each molecule:
- Copy in or create the needed files.
- Rename or copy the molecule structure file to
molecule.traj. - Update
dft_run.py. - Update
job.slurm. - Confirm molecule-specific names, paths, and job settings.
- Submit one job that runs geometry optimization first and then the vibrational / thermochemistry step in the same directory.
molecule.trajdft_run.pyjob.slurm
dft_run.pyhandles the full workflow in one directory.- Make sure the input structure file is correctly edited in
dft_run.pyinstead ofmolecule.traj. - Update the thermochemistry settings near the top for each molecule:
- You have to change geometry, symmetrynumber, and spin
GEOMETRY = "nonlinear"
SYMMETRY_NUMBER = 1
SPIN = 0- Luckily their pretty simple to figure out, and because they are post-processing functions it doesn't affect your calculation results
- Cramer's Computational Chemistry Book Table 10.1 has the symmetry number (or search it up based on the molecular point group)
- spin is the number of unpaired electrons in your molecule
- Make sure the virtual environment path is correct:
# Activate your virtualenv
source /home/your_path/virtenv/bin/activate- The combined workflow needs enough walltime for both geometry optimization and the frequency / thermochemistry stage. If more time is needed change it here:
#SBATCH --time=5:00:00Submit each job with:
sbatch job.slurmCheck queue status with:
sqAfter a successful run, check for:
dft.energyrelaxed.trajCONTCAROUTCARfinal.energy
final.energy should contain:
- DFT Energy
- ZPE
- Entropy
- Enthalpy
- Thermal correction
H-TS - Gibbs Free Energy
- N/A so far