Excited-state geometry optimization (formaldehyde S₁)
Relaxation of formaldehyde in its first excited singlet state with analytic TDDFT gradients. jobex -ex replaces the ground-state gradient program by egrad: each cycle runs ridft for the ground state, egrad for the excitation energy and the gradient of the chosen state, and statpt for the new structure.
$coord file=coord, $atoms with basis =def2-SVP and $dft with functional pbe0 define the ground state; RI-J is switched on by ridft and used by egrad. $scfinstab rpas requests singlet excitations, $soes with a 1 the lowest state in the only irrep of C₁, and $exopt 1 selects this state for the gradient; with more states in $soes, $exopt keeps the optimization on the chosen root. $symmetry c1 removes the point-group constraint, since the S₁ minimum of formaldehyde is pyramidal and has lower symmetry than the planar C₂ᵥ ground state. For the same reason the oxygen atom in coord starts slightly out of the molecular plane: from an exactly planar structure the out-of-plane gradient vanishes by symmetry, and the optimization would stop at the planar saddle point.
Convergence is signaled by GEO_OPT_CONVERGED, and the final structure overwrites coord. job.last holds the output of the last cycle, in which egrad prints Total energy: and Excitation energy: of the optimized state; the difference to the energy of the relaxed ground state is the adiabatic excitation energy.
Run
In the directory that holds the files below:
jobex -ri -ex -c 50 > jobex.log
control
$coord file=coord
$symmetry c1
$atoms
basis =def2-SVP
$dft
functional pbe0
$scfinstab rpas
$soes
a 1
$exopt 1
$end
coord
$coord
0.00000000000000 0.00000000000000 -1.00798463087847 c
0.00000000000000 0.60000000000000 1.27270107604447 o
1.76164193706295 0.00000000000000 -2.10595902361852 h
-1.76164193706295 0.00000000000000 -2.10595902361852 h
$end