huckel_mo
Hueckel molecular-orbital theory for a conjugated pi system given as atoms and bonds (heteroatom h and k optional): orbital energies alpha + x beta, coefficients, pi-electron energy, delocalisation energy against a localised structure, HOMO-LUMO gap, pi charges, bond orders and free valences. Optional beta in eV turns the gap into eV and a wavelength.
- Field
- Chemistry
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 0.02 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001ethylene: exact 2x2 roots x = +-1, E = 2 alpha + 2 beta, bond order 1, gap 2|beta|; with beta = -2.7 eV the gap wavelength is hc/(5.4 eV) = 229.600367 nm from exact SI h, c, e (closed form, rel 1e-6)passed
orbital_x.0{"value": 1.0, "rel_tol": 1e-06}orbital_x.1{"value": -1.0, "rel_tol": 1e-06}pi_energy_beta2 ± 2e-062lockedunder 0.01 % of the tolerance usedbond_orders.0{"value": 1.0, "rel_tol": 1e-06}homo_lumo_gap_beta2 ± 2e-062lockedunder 0.01 % of the tolerance useddelocalisation_energy_beta0 ± 1e-090lockedunder 0.01 % of the tolerance usedgap_wavelength_nm229.6 ± 0.00023229.6lockedunder 0.01 % of the tolerance usedr0002butadiene (Coulson, linear chain x = 2cos(k pi/5)): x = +-1.618034, +-0.618034; E = 4 alpha + 2 sqrt5 beta = 4.472136; delocalisation 2 sqrt5 - 4; bond orders 2/sqrt5 and 1/sqrt5; gap sqrt5 - 1 (closed form, rel 1e-6)passed
orbital_x.0{"value": 1.618033988749895, "rel_tol": 1e-06}orbital_x.1{"value": 0.6180339887498949, "rel_tol": 1e-06}orbital_x.2{"value": -0.6180339887498949, "rel_tol": 1e-06}orbital_x.3{"value": -1.618033988749895, "rel_tol": 1e-06}pi_energy_beta4.47214 ± 4.5e-064.47214lockedunder 0.01 % of the tolerance useddelocalisation_energy_beta0.472136 ± 4.7e-070.472136lockedunder 0.01 % of the tolerance usedbond_orders.0{"value": 0.8944271909999159, "rel_tol": 1e-06}bond_orders.1{"value": 0.4472135954999579, "rel_tol": 1e-06}homo_lumo_gap_beta1.23607 ± 1.2e-061.23607lockedunder 0.01 % of the tolerance usedr0003benzene (ring x = 2cos(2 pi k/6)): x = 2, 1, 1, -1, -1, -2; E = 6 alpha + 8 beta; delocalisation 2 beta; every bond order 2/3; no pi charge (closed form, rel 1e-6)passed
orbital_x.0{"value": 2.0, "rel_tol": 1e-06}orbital_x.1{"value": 1.0, "rel_tol": 1e-06}orbital_x.2{"value": 1.0, "rel_tol": 1e-06}orbital_x.3{"value": -1.0, "rel_tol": 1e-06}orbital_x.5{"value": -2.0, "rel_tol": 1e-06}pi_energy_beta8 ± 8e-068lockedunder 0.01 % of the tolerance useddelocalisation_energy_beta2 ± 2e-062lockedunder 0.01 % of the tolerance usedbond_orders.0{"value": 0.6666666666666666, "rel_tol": 1e-06}bond_orders.2{"value": 0.6666666666666666, "rel_tol": 1e-06}bond_orders.5{"value": 0.6666666666666666, "rel_tol": 1e-06}largest_charge0 ± 1e-090lockedunder 0.01 % of the tolerance usedhomo_lumo_gap_beta2 ± 2e-062lockedunder 0.01 % of the tolerance usedclosed_shell= truetruelockedexact matchr0004allyl radical (chain x = 2cos(k pi/4)): x = sqrt2, 0, -sqrt2; E = 3 alpha + 2 sqrt2 beta; delocalisation 2 sqrt2 - 2; one unpaired electron; no pi charge (Coulson-Rushbrooke, alternant) (closed form, rel 1e-6)passed
orbital_x.0{"value": 1.4142135623730951, "rel_tol": 1e-06}orbital_x.1{"value": 0.0, "abs_tol": 1e-09}orbital_x.2{"value": -1.4142135623730951, "rel_tol": 1e-06}pi_energy_beta2.82843 ± 2.8e-062.82843lockedunder 0.01 % of the tolerance useddelocalisation_energy_beta0.828427 ± 8.3e-070.828427lockedunder 0.01 % of the tolerance usedbond_orders.0{"value": 0.7071067811865476, "rel_tol": 1e-06}unpaired_electrons= 11lockedexact matchlargest_charge0 ± 1e-090lockedunder 0.01 % of the tolerance usedr0005allyl cation (charge +1): two electrons in the sqrt2 orbital (1/2, 1/sqrt2, 1/2) give +1/2 on each end, 0 in the middle, bond order 1/sqrt2, gap sqrt2 (closed form, rel 1e-6)passed
charges.0{"value": 0.5, "rel_tol": 1e-06}charges.1{"value": 0.0, "abs_tol": 1e-09}charges.2{"value": 0.5, "rel_tol": 1e-06}bond_orders.0{"value": 0.7071067811865476, "rel_tol": 1e-06}homo_lumo_gap_beta1.41421 ± 1.4e-061.41421lockedunder 0.01 % of the tolerance usedclosed_shell= truetruelockedexact matchr0006cyclobutadiene (ring x = 2cos(2 pi k/4)): x = 2, 0, 0, -2, a degenerate non-bonding pair holding two electrons (two unpaired, Hund), E = 4 alpha + 4 beta, delocalisation 0, every bond order 1/2 (closed form, rel 1e-6)passed
orbital_x.0{"value": 2.0, "rel_tol": 1e-06}orbital_x.1{"value": 0.0, "abs_tol": 1e-09}orbital_x.2{"value": 0.0, "abs_tol": 1e-09}orbital_x.3{"value": -2.0, "rel_tol": 1e-06}pi_energy_beta4 ± 4e-064lockedunder 0.01 % of the tolerance useddelocalisation_energy_beta0 ± 1e-090lockedunder 0.01 % of the tolerance useddegenerate_frontier= truetruelockedexact matchunpaired_electrons= 22lockedexact matchbond_orders.0{"value": 0.5, "rel_tol": 1e-06}bond_orders.1{"value": 0.5, "rel_tol": 1e-06}r0007two-centre C=X heteroatom bond, h = 1, k = 1 (secular equation x^2 - x - 1 = 0): x = (1 +- sqrt5)/2; pi charge -1/sqrt5 on X and +1/sqrt5 on C; bond order 2/sqrt5; delocalisation 0 against its own double bond (closed form, rel 1e-6)passed
orbital_x.0{"value": 1.618033988749895, "rel_tol": 1e-06}orbital_x.1{"value": -0.6180339887498949, "rel_tol": 1e-06}charges.0{"value": 0.4472135954999579, "rel_tol": 1e-06}charges.1{"value": -0.4472135954999579, "rel_tol": 1e-06}bond_orders.0{"value": 0.8944271909999159, "rel_tol": 1e-06}delocalisation_energy_beta0 ± 1e-090lockedunder 0.01 % of the tolerance used
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
atoms | 1 | The pi centres: a count of carbons (6), or a list where each item is a label ("C") or {"label": "N", "h": 0.5, "electrons": 1}. h sets the Coulomb integral alpha_X = alpha + h beta (carbon 0); electrons is what the atom gives to the pi system (0, 1 or 2). 1 to 80 centres. | |
bonds | 1 | Bonds as [i, j] with atoms numbered from 1, or [i, j, k] where beta_ij = k beta (carbon-carbon 1). Each bond once. | |
charge | 1 | 0 | Net charge of the pi system in elementary charges: 1 for a cation (one electron fewer), -1 for an anion. |
double_bonds | 1 | Optional: the double bonds of the localised reference structure, as [[1,2],[3,4]]. Left out, a maximum matching of the bonds between one-electron atoms is used. | |
beta_eV | Optional: the resonance integral beta in eV (negative, typically -2.4 to -3 for C-C). Gives the gap in eV and its wavelength. Left out, everything stays in units of beta. |
Readings
| Name | Unit | Meaning |
|---|---|---|
atoms | 1 | |
bonds | 1 | |
pi_electrons | 1 | |
orbital_x | 1 | orbital energies E = alpha + x beta, most bonding first (beta < 0, so larger x is lower in energy) |
occupancy | 1 | |
pi_energy_alpha | 1 | the alpha part of the pi energy: the number of pi electrons |
pi_energy_beta | 1 | the beta part of the pi energy, in units of beta |
reference_energy_beta | 1 | |
delocalisation_energy_beta | 1 | pi energy minus the localised reference, in units of beta (positive is stabilising) |
delocalisation_energy_per_electron_beta | 1 | |
homo_x | 1 | |
lumo_x | 1 | |
homo_lumo_gap_beta | 1 | x_HOMO - x_LUMO, in units of |beta|; 0 for an open shell (the SOMO is both) |
unpaired_electrons | 1 | |
densities | 1 | |
charges | 1 | pi charge per atom in elementary charges: electrons given minus pi density |
largest_charge | 1 | |
bond_orders | 1 | Coulson pi bond orders, in the order of the bond list |
max_bond_order | 1 | |
min_bond_order | 1 | |
free_valences | 1 | |
fragments | 1 | |
beta_eV | the resonance integral as given, in eV (eV is not in the kernel unit table, so no unit is declared) | |
delocalisation_energy_eV | delocalisation energy in eV (stabilisation, positive) (eV is not in the kernel unit table, so no unit is declared) | |
pi_energy_beta_part_eV | the beta part of the pi energy in eV (eV is not in the kernel unit table, so no unit is declared) | |
homo_lumo_gap_eV | HOMO-LUMO gap in eV (eV is not in the kernel unit table, so no unit is declared) | |
gap_wavelength_nm | nm | h c / (gap in eV), from the exact SI values of h, c and e |
orbitals | ||
atom_table | ||
bond_table |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.