11. Optical spectra: real-time TDDFT¶
rt_tddft: propagates the Kohn–Sham density matrix in time after the ground-state SCF of the
same run (Runge and Gross 1984; real-time approach: Yabana and Bertsch 1996,
Gaussian-basis implementation: Lopata and Govind 2011). A weak delta kick excites all
transitions at once; the Fourier transform of the induced dipole \(\mu(t)\) is the absorption spectrum.
Unlike 10. Excitation energies: linear-response TDDFT it gives the whole spectrum, also in the nonlinear regime and with strong fields.
coulomb:
method: density_fitting
aux_basis_file: basis/def2-universal-JFIT.nw
rt_tddft:
field: kick
kick: 1.0e-3
axis: xyz
dt: 0.1
steps: 5000
corrector_iterations: 2
wmax_ev: 15
output: h2co
Key ( |
Default |
Meaning |
|---|---|---|
|
|
|
|
0.05, 1000 |
time step and number of steps (atomic units) |
|
1 |
self-consistent mid-point Fock matrix; 2 to 3 conserve the energy |
|
|
|
|
1e-3, … |
field parameters (a.u.) |
|
|
|
|
|
damped Fourier transform ( |
|
|
line fit with oscillator strengths, transition densities, MO-pair assignment |
|
|
complex absorbing potential for ionization |
|
|
time-resolved charges and MO occupations |
|
|
prefix of |
Requirements and tips¶
Converged collinear DFT ground state,
moment_mode: fixed, no level shift;coulomb: methodiseri,density_fitting,poissonoranalytic. Global hybrids needdensity_fitting.The run prints the energy drift, the change of the electron number and the idempotency error at the end; with
corrector_iterations: 2and a weak kick these should be negligible.The spectral resolution is set by the total time: 100 a.u. resolves about 1.7 eV, 500 a.u. about 0.34 eV.
Keep the kick weak (10⁻³ a.u.) for linear response; the spectrum is then identical to the Casida one.
tools/rt_spectrum.pypost-processes the dipole files (windows, padding, Padé, overlay with a linear-response spectrum).Nuclei are fixed here; moving nuclei are treated with
job: task: mdandmd: method: ehrenfest.
Example: formaldehyde¶
In Tutorial 6 the RT-TDDFT peaks at 5.77, 6.63 and 10.22 eV agree with the linear-response roots at 5.79, 6.60 and 10.21 eV (PBE/aug-pc-1); the dark n→π* state at 3.84 eV gives no peak. The tutorial also shows a laser pulse tuned to the 10.2 eV peak with the time-dependent populations.
Related tutorials: Optical spectra from real-time TDDFT, Excitation energies (linear-response TDDFT).