Optical spectra from Casida

In this tutorial we will again calculate the absorption spectrum of methane, but this time using Casida’s equations.

Ground-state

Once again our first step will be the calculation of the ground state. We will use the following input file:


CalculationMode = gs
UnitsOutput = eV_angstrom

Radius = 6.5*angstrom
Spacing = 0.24*angstrom

CH = 1.097*angstrom
%Coordinates
 "C" |           0 |          0 |           0
 "H" |  CH/sqrt(3) | CH/sqrt(3) |  CH/sqrt(3)
 "H" | -CH/sqrt(3) |-CH/sqrt(3) |  CH/sqrt(3)
 "H" |  CH/sqrt(3) |-CH/sqrt(3) | -CH/sqrt(3)
 "H" | -CH/sqrt(3) | CH/sqrt(3) | -CH/sqrt(3)
%
          

Note that we are using the values for the spacing and radius that were found in the Convergence_of_the_optical_spectra tutorial to converge the absorption spectrum.

Unoccupied States

The Casida equation is a (pseudo-)eigenvalue equation written in the basis of particle-hole states. This means that we need both the occupied states – computed in the ground-state calculation – as well as the unoccupied states, that we will now obtain, via a non-self-consistent calculation using the density computed in gs. The input file we will use is


CalculationMode = unocc
UnitsOutput = eV_angstrom

Radius = 6.5*angstrom
Spacing = 0.24*angstrom

CH = 1.097*angstrom
%Coordinates
 "C" |           0 |          0 |           0
 "H" |  CH/sqrt(3) | CH/sqrt(3) |  CH/sqrt(3)
 "H" | -CH/sqrt(3) |-CH/sqrt(3) |  CH/sqrt(3)
 "H" |  CH/sqrt(3) |-CH/sqrt(3) | -CH/sqrt(3)
 "H" | -CH/sqrt(3) | CH/sqrt(3) | -CH/sqrt(3)
%
          
ExtraStates = 10

Here we have changed the CalculationMode to unocc and added 10 extra states by setting the ExtraStates input variable.

By running Octopus, you will obtain the first 10 unoccupied states (do not forget to run the ground-state calculation first). The solution of the unoccupied states is controlled by the variables in section Eigensolver. You can take a look at the eigenvalues of the unoccupied states in the file static/eigenvalues :



All states converged.
Criterion =      0.100000E-06

Eigenvalues [eV]
 #st  Spin   Eigenvalue      Occupation     Error
   1   --   -16.787661       2.000000      ( 3.8E-08)
   2   --    -9.464316       2.000000      ( 6.5E-08)
   3   --    -9.464316       2.000000      ( 6.5E-08)
   4   --    -9.464316       2.000000      ( 6.5E-08)
   5   --    -0.287381       0.000000      ( 8.2E-08)
   6   --     0.822569       0.000000      ( 9.2E-08)
   7   --     0.822569       0.000000      ( 7.7E-08)
   8   --     0.822569       0.000000      ( 5.5E-08)
   9   --     1.599944       0.000000      ( 3.0E-08)
  10   --     1.599944       0.000000      ( 1.7E-08)
  11   --     1.599944       0.000000      ( 2.1E-08)
  12   --     1.813271       0.000000      ( 3.5E-08)
  13   --     1.813271       0.000000      ( 6.8E-08)
  14   --     2.309409       0.000000      ( 7.6E-08)

Casida calculation

Now modify the CalculationMode to casida and rerun Octopus. Note that by default Octopus will use all occupied and unoccupied states that it has available.

Sometimes, it is useful not to use all states. For example, if you have a molecule with 200 atoms and 400 occupied states ranging from -50 to -2 eV, and you are interested in looking at excitations in the visible, you can try to use only the states that are within 10 eV from the Fermi energy. You could select the states to use with CasidaKohnShamStates or CasidaKSEnergyWindow.

A new directory will appear named casida , where you can find the file casida/casida :



                E [eV]          [A]          [A]          [A]             
     1  9.27293079E+00  9.39872808E-02 -1.31203266E-01 -3.02828864E-01  9.55312994E-02
     2  9.27293080E+00 -3.89525751E-02  3.08258631E-01 -1.45645252E-01  9.55312989E-02
     3  9.27293080E+00  3.27722924E-01  7.42667184E-02  6.95368008E-02  9.55312997E-02
     4  1.02426857E+01 -1.05006378E-09  3.98645761E-08 -5.51633920E-09  1.45236877E-15
     5  1.02426858E+01  3.27613949E-08  3.66743286E-08 -3.02341106E-08  2.98626962E-15
     6  1.02594277E+01 -1.16167616E-02  6.86394265E-02 -7.74816912E-02  9.73863340E-03
     7  1.02594277E+01  5.93361454E-02 -5.94710782E-02 -6.15804084E-02  9.73863474E-03
     8  1.02594277E+01 -8.48174851E-02 -5.10054232E-02 -3.24680465E-02  9.73863389E-03
...

The <x>, <y> and <z> are the transition dipole moments:

$$ <x> = <\Phi_0|x|\Phi_I> \,;\qquad <y> = <\Phi_0|y|\Phi_I> \,;\qquad <z> = <\Phi_0|z|\Phi_I> $$

where $\Phi_0$ is the ground state and $\Phi_I$ is the given excitation. The oscillator strength is given by:

$$ f_I = \frac{2 m_e}{3 \hbar^2} \omega_I \sum_{n\in x,y,z} |<\Phi_0|n|\Phi_I>|^2\, $$

as the average over the three directions. The optical absorption spectrum can be given as the “strength function”, which is

$$ S(\omega) = \sum_I f_I \delta(\omega-\omega_I)\, $$

Note that the excitations are degenerate with degeneracy 3. This could already be expected from the $T_d$ symmetry of methane.

Note that within the degenerate subspaces, there is some arbitrariness (possibly dependent on the details of your compilation and machine) in the linear combinations of transitions. Therefore, you should not be concerned if you do not have the same results for the components of the transition dipole moments (above) and analysis of the excitations (below). However, the energies and resulting spectra should agree.

Further information concerning the excitations can be found in the directory casida/casida_excitations . For example, the first excitation at 9.27 eV is analyzed in the file casida/casida_excitations/00001 :



# Energy [eV] =    9.27293E+00
#  [A] =    9.39873E-02
#  [A] =   -1.31203E-01
#  [A] =   -3.02829E-01
           1           5           1  -4.9627120795392112E-011
           2           5           1 -0.10060193954656528     
           3           5           1  0.84016806041904479     
           4           5           1 -0.52996241131409205     
           1           6           1  -4.5672052380012191E-004
...

These files contain basically the eigenvector of the Casida equation. The first two columns are respectively the index of the occupied and the index of the unoccupied state, the third is the spin index (always 1 when spin-unpolarized), and the fourth is the coefficient of that state in the Casida eigenvector. This eigenvector is normalized to one, so in this case one can say that 74.7% (0.8642) of the excitation is from state 3 to state 5 (one of 3 HOMO orbitals->LUMO) with small contribution from some other transitions.

Absorption spectrum

Absorption spectrum of methane calculated with time-propagation and with the Casida equation.
Absorption spectrum of methane calculated with time-propagation and with the Casida equation.

To visualize the spectrum, we need to broaden these delta functions with the utility oct-casida_spectrum (run in your working directory, not in casida ). It convolves the delta functions with Lorentzian functions. The operation of oct-casida_spectrum is controlled by the variables CasidaSpectrumBroadening (the width of this Lorentzian), CasidaSpectrumEnergyStep, CasidaSpectrumMinEnergy, and CasidaSpectrumMaxEnergy. If you run oct-casida_spectrum you obtain the file casida/spectrum.casida . It contains all columns of casida broadened. If you are interested in the total absorption spectrum, then you should plot the first and fifth columns. You should obtain a picture like the one on the right.

Comparing the spectrum obtained with the time-propagation in the Convergence of the optical spectra tutorial with the one obtained with the Casida approach using the same grid parameters, we can see that

You probably noticed that the Casida calculation took much less time than the time-propagation. This is clearly true for small or medium-sized systems. However, the implementation of Casida in Octopus has a much worse scaling with the size of the system than the time-propagation, so for larger systems the situation may be different. Note also that in Casida one needs a fair amount of unoccupied states which are fairly difficult to obtain.

If you are interested, you may also compare the Casida results against the Kohn-Sham eigenvalue differences in casida/spectrum.eps_diff and the Petersilka approximation to Casida in casida/spectrum.petersilka .