Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hydroxyl radical — inspect an unrestricted solution

See shared setup for STO-3G installation and output paths.

This tutorial uses unrestricted Hartree–Fock (UHF) for open-shell OH and exports the converged alpha and beta orbitals for inspection.

Create a directory named oh with an inputs subdirectory. Save the geometry as oh/oh.xyz.

2
Hydroxyl radical
O 0.0 0.0 0.000
H 0.0 0.0 0.970

Save the runfile as oh/inputs/calculation.toml. Its geometry path resolves relative to the TOML file, one directory up.

[basis]
name = "sto-3g"

[molecule]
geometry = "../oh.xyz"
charge = 0
multiplicity = 2

[method.hf]
method = "Auto"
convergence_threshold = 1e-5

[method.hf.guess]
type = "CoreHamiltonian"

[method.hf.diis]
enabled = true
max_history = 6

Neutral OH has nine electrons. Doublet multiplicity gives one more alpha electron than beta electrons, so five are alpha and four are beta. With method = "Auto", this open-shell input selects UHF and allows the two spin channels to have different spatial orbitals.

From inside oh, run HF and export the converged orbitals.

rustiq run inputs/calculation.toml --artifact hf.rustiq --format json > hf.json
rustiq artifact export hf.rustiq --format molden -o oh.molden

The total HF energy is −74.3626692217 Hartree. In the JSON report, calculation.hf.spin.s_squared is 0.75326194, about 0.00326 above the ideal doublet value of 0.75. This excess is spin contamination, indicating a small contribution from higher-spin components in the UHF determinant. SCF convergence measures numerical self-consistency and does not guarantee a spin eigenstate. See Hartree–Fock diagnostics. Open hf.json in a text editor to inspect calculation.hf.converged, calculation.hf.total_energy, and calculation.hf.spin.s_squared. For independent checks of this calculation, see reference checks.

Under [MO] in oh.molden, each orbital has a Spin= Alpha or Spin= Beta label. Count five alpha and four beta records with occupation

  1. The virtual orbitals in each channel have occupation 0.