Skip to main content

Module hydrogen

Module hydrogen 

Source

Structs§

HydrogenRenderer
Renderer for hydrogen orbitals as 2D glyph brightness.

Enums§

SlicePlane
Which plane to slice through for visualization.

Functions§

associated_legendre
Associated Legendre polynomial P_l^m(x) via recurrence. Uses the convention without the Condon-Shortley phase (it’s included in Y_l^m).
hydrogen_energy
Hydrogen atom energy levels: E_n = -13.6 / n^2 eV.
hydrogen_orbital
Full hydrogen orbital psi_nlm(r, theta, phi).
orbital_name
Human-readable orbital name.
probability_density_3d
Probability density |psi|^2 at a point.
radial_probability
Radial probability density r^2 |R_nl(r)|^2 (probability of finding electron at radius r).
radial_wavefunction
Radial wave function R_nl(r) for hydrogen atom. Uses Bohr radius a0 = 1 (atomic units).
render_orbital_slice
Render a 2D slice of an orbital.
spherical_harmonic
Spherical harmonic Y_l^m(theta, phi).