# 10. Excitation energies: linear-response TDDFT The `tddft:` section solves the Casida equations ([Casida 1995](#ref-casida95)) after the SCF: the lowest excitation energies, oscillator strengths and dominant transitions. `method: tda` is the Tamm–Dancoff approximation ([Hirata and Head-Gordon 1999](#ref-tda99)). On a Hartree–Fock reference (no `functional:` section) the same section gives TDHF (`casida`) or CIS (`tda`). ```{literalinclude} ../tutorials/05_tddft/files/h2co_tddft.yaml :language: yaml :start-at: "coulomb:" :end-before: "cube:" ``` | Key (`tddft:`) | Default | Meaning | |---|---|---| | `nroots` | 10 | number of lowest roots | | `method` | `casida` | `casida` (full RPA) or `tda` | | `multiplicity` | `singlet` | `singlet` or `triplet` (closed-shell reference); open-shell references give all excitations at once | | `solver` | `dense` | `dense` (small systems) or `davidson` ([Davidson 1975](#ref-davidson75), matrix-free) | | `coulomb` | `ri` | Hartree part of the response: `ri` (fast; needs `coulomb: aux_basis_file`), `eri`, `analytic`, `poisson` | | `exchange` | `auto` | exact-exchange part of hybrids: `ri`, `eri` or `cosx` | | `frozen_core` | `false` | freeze the atomic cores (all-electron atoms, Z ≤ 54) | ## Practical advice - **Scope:** collinear DFT reference with `moment_mode: fixed`; LDA, GGA, global and range-separated hybrids. Meta-GGAs, composed functionals and SIC are refused. - **Auxiliary basis:** for hybrids use a JK-fitting set (`basis/def2-universal-JKFIT.nw`). - **Converge the SCF tightly** (`conv_tol` ≤ 10⁻⁸) and use a fine grid when comparing absolute energies with other programs; the default grid leaves about 3×10⁻⁵ Ha in ω. Valence states are insensitive, Rydberg states are not. - **Basis:** Rydberg and charge-transfer states need diffuse functions (aug-pc-1 or similar). ## Example: formaldehyde Lowest singlet states in eV ({doc}`Tutorial 5 <../tutorials/05_tddft/index>`, aug-pc-1, experimental geometry): | | n→π* | n→3s | |---|---|---| | PBE | 3.84 | 5.79 | | PBE0 | 3.98 | 6.69 | | LC-ωPBE | 3.96 | 7.29 | | experiment | about 4.07 | 7.09 | The valence state hardly depends on the functional; the Rydberg state moves by 1.5 eV, as expected for a semilocal functional with too weak an asymptotic potential. For charge-transfer states see the perturbative ΔSCF method ({doc}`scf`). Related tutorials: {doc}`../tutorials/05_tddft/index`, {doc}`../tutorials/06_rttddft/index`; real-time propagation: {doc}`rt_tddft`.