A minimal, high-performance pipeline for geometry optimisation and electronic structure analysis of neutral and protonated heterocycles using PySCF and the geomeTRIC solver environment. This repository provides standard, out-of-the-box notebooks optimised for GPU acceleration, seamlessly exporting standard .molden and .xyz files for downstream quantum chemical analysis.
The workflow is split into two hyper-focused notebooks to prevent environment clutter:
- notebook1.ipynb: Baseline gas-phase workflow. Handles neutral systems using a high-quality triple-zeta basis set with GPU acceleration.
- notebook2.ipynb: Cationic/protonated complex workflow. Integrates a custom analytical solvent force gradient loop (IEF-PCM) mapped directly onto the GPU solver framework.
- Functional/Dispersion: CAM-B3LYP-D3(BJ)
- Basis Set: def2-tzvpd (Triple-zeta with diffuse and polarisation functions)
- Optimisation Engine: geomeTRIC solver backend
- Solvation (Aqueous Notebook): IEF-PCM (Water, ε = 78.35) with a dense lebedev_order = 29 angular grid mesh to eliminate numerical noise during relaxation.
The scripts automatically output two universally accepted file formats:
- Strict .xyz Format: Coordinates are converted from Bohr back to Angstroms, with the final converged energy cleanly tracked in the standard second-line comment header to prevent parsing errors in strict visualisers.
- Standard .molden Format: Contains the molecular geometry, basis specifications, and molecular orbital (MO) coefficients.
The generated .molden file acts as a direct bridge into major post-processing ecosystems without requiring manual formatting tweaks:
- NBO / Firefly: Ready for secondary-perturbation donor-acceptor energy analysis (ideal for tracking stereoelectronic interactions, hyperconjugation, and anomeric effects). Solvent perturbations (e.g., CH₂Cl₂) can be evaluated via single-point calculations on the optimised structures.
- Wavefunction Topology (QTAIM): Seamlessly ingests into topology suites (like Multiwfn) for calculating bond critical points, electron density, and Laplacian (∇²ρ) distribution maps.
- Visualisers: Fully compliant with modern visualisers such as Avogadro, VMD, and Chemcraft for rendering journal-quality molecular orbital surfaces.
To run these notebooks in a GPU-enabled cloud environment (such as Google Colab), ensure the following core stacks are initialised:
- pyscf (with GPU-accelerated modules)
- geometric
- numpy
The final optimized .xyz coordinates, .molden wavefunction files, and useful logs for these pyran systems are permanently archived on Zenodo.
DOI: https://doi.org/10.5281/zenodo.24044748
To preserve the raw, unmanipulated spatial output of the geometric relaxation loops, the accompanying .xyz coordinate files maintain the default, software-generated text headers.
-
The Coordinates: The Cartesian array matrices (
$X, Y, Z$ ) are completely untouched and remain 100% identical down to the last decimal place across all.xyzstructural dumps,.moldenwavefunctions, and input decks. -
The Energy Placeholder: Because the native file-writer outputs a static
0.000000 Hartreecomment line by default (but optional for total energy in another code cell), the true, converged total electronic energies (CAM-B3LYP-D3(BJ)/def2-TZVPD/PCM) are archived separately in the master data tables of the manuscript and the automated summary printouts. -
Custom Baking Option: For users who require the explicit total energy strings baked directly into the second row of the
.xyzfile headers for third-party script parsing, an optional cleanup/patching code cell is provided in the notebook.
"My current independent research enhances automated computational chemistry pipelines to decode the exact quantum mechanical engines and real-space topological curvatures driving stereoelectronic effects that I previously exploited pragmatically at the bench during my doctoral work in complex synthetic organic methodology."
- Pedigree: Hybrid synthetic organic chemist & open-source computational developer.
- Current Focus: High-velocity open-science pipelines utilising GPU-accelerated electronic structure engines (pySCF-GPU), localised matrix perturbations (Firefly/GAMESS/NBO 5.9), and real-space quantum chemical topology (Multiwfn).
- Industrial Post-Doctoral Specialisation: Industrially sponsored post-doctoral fellowship focused on mercaptofuran synthetic chemistry. This extensive hand-on development of complex organosulfur methodology directly informs my active research interests in mapping the distinct electronic, polarisability, and stereoelectronic anomalies of third-row heterocycles.
- Foundational Hub: PhD in Synthetic Organic Chemistry
- Focus: Complex heterocyclic synthesis, methodology development, and pragmatic bench-scale application of anomeric and stereoelectronic control elements.
- 📦 Volume 1 Repository: Automated extraction workflows mapping the deactivation and masking of the classical exo-anomeric effect.
- 💾 Permanent Open Data Vault: Complete, uncorrupted electronic fingerprints (
.molden,.47,.log/.out, and.xyzcoordinates) archived transparently on Zenodo. - 📜 Preprint Stream: T.B.A.
If you need to reach me privately, you can email me at chemcode@://github.com.
📄 Preprint & Citation
A detailed discussion of the stereoelectronic effects, NBO interactions, and QTAIM topology of these substituted pyran/thiane variants can be found in the preprint on ChemRxiv:
👉 Read the Preprint on ChemRxiv
If you use these notebooks or workflows in your research, please cite:
Miller, J. P.; Author, Stereoelectronic Modulation of Hyperconjugative Networks in Saturated Heterocycles: Bridging Hilbert-Space NBO Perturbations with Real-Space QTAIM Electron Cloud Distortions. ChemRxiv. 2026. DOI: 10.26434/chemrxiv.15011920/v1.
This project is licensed under the MIT License - feel free to fork and adapt for your own molecular systems.