Raman spectra

In this tutorial

You compute the Raman spectra of water, CO\(_2\) and methane. You read the Raman block of the output line by line, plot IR and Raman spectra side by side, see the selection rules appear (CO\(_2\): no mode is both IR and Raman active; CH\(_4\): the totally symmetric mode has depolarization ratio 0), compare with gas-phase experiment, and check what the functional, the polarizability method and the laser wavelength change. Time: 5 s (water), 38 s (CO\(_2\)), 24 s (CH\(_4\)) with 16 cores, about 20 s for the exercises. Files: h2o.yaml, co2.yaml, ch4.yaml, h2o.out (reference output), h2o_ff.yaml, h2o_pbe0.yaml, h2o_hf.yaml, h2o_785.yaml, run.sh.

The method

A vibrational mode \(k\) is Raman active when the polarizability changes along it. In the double-harmonic, non-resonant approximation the activity is

\[ S_k = 45\,\bar a_k'^2 + 7\,\gamma_k'^2 ,\qquad \bar a_k' = \tfrac13\,\mathrm{tr}\,\frac{\partial\alpha}{\partial Q_k}, \qquad \gamma_k'^2 = \tfrac12\left[(a'_{xx}-a'_{yy})^2+(a'_{yy}-a'_{zz})^2+(a'_{zz}-a'_{xx})^2\right] +3\left(a'^2_{xy}+a'^2_{yz}+a'^2_{xz}\right), \]

with \(Q_k\) the mass-weighted normal coordinate. The depolarization ratio of a mode is \(\rho_k = 3\gamma_k'^2/(45\bar a_k'^2+4\gamma_k'^2)\): between 0 (totally symmetric) and \(3/4\) (all other modes). The relative intensity at laser wavenumber \(\tilde\nu_0\) and temperature \(T\) is proportional to \((\tilde\nu_0-\tilde\nu_k)^4\,/\,[\tilde\nu_k\,(1-e^{-hc\tilde\nu_k/k_BT})]\;S_k\).

DFTSW27 does the following:

  1. It optimizes the geometry (opt_raman; raman starts from your geometry).

  2. It computes the Hessian and the IR intensities, analytically where possible. This gives the normal modes.

  3. For every mode above 50 cm\(^{-1}\) it displaces the molecule by \(\pm0.01\) bohr along the mode and computes the static polarizability \(\alpha\) at both geometries. With the default raman: polarizability: auto this is the analytic coupled-perturbed response (one SCF and one CPHF per geometry) whenever the analytic Hessian is available, and finite fields otherwise.

  4. It forms \(\partial\alpha/\partial Q_k\) by a central difference and prints the activities.

The input file

system:
  charge: 0
  unpaired_electrons: 0
  units: angstrom

functional:
  exchange: pbe
  correlation: pbe

basis:
  name: aug-pc-1
  file: basis/aug-pc-1.nw

scf:
  conv_tol: 1.0e-10

job:
  task: opt_raman

optimization:
  max_force: 1.0e-5

raman:
  file: h2o_raman.dat

atoms:
  - element: O
    position: [0.000000, 0.000000, 0.117300]
  - element: H
    position: [0.000000, 0.757200, -0.469200]
  - element: H
    position: [0.000000, -0.757200, -0.469200]
job: task: opt_raman

Optimize, then frequencies, then Raman. raman alone skips the optimization; use it only at a stationary point, because frequencies of a non-stationary geometry are not physical.

optimization: max_force: 1.0e-5

Tight convergence. Raman needs a well-optimized geometry, since the frequencies of soft modes are sensitive to residual forces.

scf: conv_tol: 1.0e-10

Tight SCF convergence, because \(\partial\alpha/\partial Q\) is a difference of two polarizabilities.

raman: keys (all optional)

file writes a table of the modes. mode_step (0.01 bohr) is the displacement along each mode. laser_nm (532) and frequencies: temperature set the relative intensities. min_frequency (50 cm\(^{-1}\)) skips the lowest modes. polarizability is auto, analytic or finite_field; field_step (0.002 a.u.) belongs to the last.

The Coulomb method defaults to eri for this task, which is what the analytic Hessian needs.

Running

OMP_NUM_THREADS=16 ./run_dft tutorials/19_raman/files/h2o.yaml > h2o.out

or run everything with tutorials/19_raman/run.sh. The geometry is optimized in four gradient evaluations; the whole job takes 5 s.

Reading the output

After the optimization and the SCF, the frequency block comes first. It is the same as in Vibrational frequencies and IR spectrum; read it there. The Raman part follows the thermochemistry:

 Raman: analytic (coupled-perturbed) polarizability along the normal modes (step  1.00E-02 bohr, 6 displaced geometries)
   SCF converged in 9 iterations, E =       -76.3395058922
   SCF converged in 9 iterations, E =       -76.3395058569
   SCF converged in 9 iterations, E =       -76.3394845336
   SCF converged in 9 iterations, E =       -76.3394840631
   SCF converged in 9 iterations, E =       -76.3394816866
   SCF converged in 9 iterations, E =       -76.3394816866
   SCF converged in 3 iterations, E =       -76.3395109971
   SCF converged in 3 iterations, E =       -76.3395109971
Raman: analytic ... 6 displaced geometries

The method that was chosen and the number of geometries: two per mode (+ and −). With finite fields the line reads Raman: finite-field polarizability (field step ...) and gives the number of field SCFs, 12 per mode.

The six SCF converged lines

One SCF per displaced geometry, with the CPHF solved after each. The energies are those of the displaced geometries, two per mode, + then −. For the asymmetric stretch (mode 3) the two energies are identical, because the displacements are mirror images; for modes 1 and 2 they differ by \(4\times10^{-8}\) and \(5\times10^{-7}\) Ha, the anharmonicity of the surface.

The last two lines (3 iterations)

The reference geometry is recomputed after the displacements, once to get \(\alpha\) at the minimum and once to restore the reference state, so that everything printed afterwards belongs to the reference geometry. The last printed energy equals the optimized energy, \(-76.3395109971\) Ha.

 Raman spectrum (static polarizability; laser   532.00 nm, T =  298.15 K)
 equilibrium polarizability, diagonal (a.u.):      10.6375     10.8612     10.5287
    mode   freq (cm^-1)   activity (A^4/amu)   depol. ratio   rel. intensity
      1       1581.41              0.6619         0.6680             2.39
      2       3673.90            108.2086         0.0469           100.00
      3       3785.07             25.7853         0.7500            22.46
 Raman table written to h2o_raman.dat
equilibrium polarizability, diagonal

\(\alpha_{xx}\), \(\alpha_{yy}\), \(\alpha_{zz}\) at the optimized geometry, in atomic units. The molecule lies in the \(yz\) plane, so \(\alpha_{xx}\) (out of plane) is the smallest of the first two.

mode, freq

The mode number and the harmonic frequency, the same as in the frequency table above.

activity

\(S_k\) in Å\(^4\)/amu. The symmetric stretch (mode 2) is by far the strongest, 108 against 26 for the asymmetric stretch and 0.66 for the bend.

depol. ratio

0.047 for the symmetric stretch: nearly 0, because the polarizability ellipsoid of water mainly breathes. The asymmetric stretch gives exactly 0.75, as every non-symmetric mode must. The bend is totally symmetric (\(a_1\)) too, but its ratio is high, 0.67, because it changes the anisotropy of the polarizability more than its average.

rel. intensity

The activity multiplied by the frequency and temperature factor above and scaled so that the strongest mode is 100. The bend drops from 0.66/108 = 0.6 % of the activity to 2.4 % of the intensity: the frequency factor favors low-frequency modes.

Raman table written

The file named by raman: file, with the same numbers in columns, for your own plotting.

Plotting the spectra

python3 tutorials/tools/dftsw27plot.py raman h2o.out co2.out ch4.out \
    --label 'H$_2$O' 'CO$_2$' 'CH$_4$' -o spectra.png

IR and Raman spectra of water, CO2 and methane

Top: the IR spectrum (frequencies and IR intensities from the frequency block). Bottom: the Raman spectrum from the Raman block. Degenerate modes are drawn as one line with their summed intensity; lines are broadened with a Lorentzian of 20 cm\(^{-1}\) width (--fwhm).

Results and selection rules

CO\(_2\) is the textbook case of the rule of mutual exclusion. In the output:

mode

cm\(^{-1}\)

IR (km/mol)

Raman (Å\(^4\)/amu)

bend (2×)

643.4

21.18

\(8\times10^{-17}\)

symmetric stretch

1323.3

0.0000

22.43

asymmetric stretch

2362.4

553.6

\(6\times10^{-16}\)

The symmetric stretch is Raman active and IR silent; the other two modes are the opposite, and the “zero” entries are numerical zeros, \(10^{-16}\). In methane, the totally symmetric C–H stretch (A\(_1\), 2970 cm\(^{-1}\)) has depolarization ratio \(0.00000\) exactly, and all other modes have 0.75000 exactly. The \(T_2\) modes are IR active (12.7 and 17.8 km/mol); the \(E\) bend and the A\(_1\) stretch are IR silent.

Compared with the gas-phase fundamentals (NIST WebBook, from Shimanouchi’s tables; for CO\(_2\) the 1388 cm\(^{-1}\) line is the upper component of the Fermi dyad 1285/1388), PBE/aug-pc-1 harmonic frequencies are:

molecule, mode

PBE (cm\(^{-1}\))

experiment (cm\(^{-1}\))

H\(_2\)O bend

1581

1595

H\(_2\)O sym. stretch

3674

3657

H\(_2\)O asym. stretch

3785

3756

CO\(_2\) bend

643

667

CO\(_2\) sym. stretch

1323

1388

CO\(_2\) asym. stretch

2362

2349

CH\(_4\) \(T_2\) bend

1270

1306

CH\(_4\) \(E\) bend

1497

1534

CH\(_4\) A\(_1\) stretch

2970

2917

CH\(_4\) \(T_2\) stretch

3101

3019

Differences of up to 80 cm\(^{-1}\) come from anharmonicity, the functional and the Fermi resonance. They are not Raman-specific.

Things to try

1. Analytic against finite fields. h2o_ff.yaml adds polarizability: finite_field:

raman:
  file: h2o_ff_raman.dat
  polarizability: finite_field

The activities are 0.6616, 108.2393 and 25.7909 Å\(^4\)/amu, against 0.6619, 108.2086 and 25.7853 for the analytic route: they agree to \(3\times10^{-4}\) relative. The finite-field run needs 36 field SCFs (12 per mode) instead of 6 geometries, and the polarizability at the minimum differs by \(2\times10^{-3}\) a.u. (10.6395 against 10.6375): that is the field-step error of the two-point difference, which analytic derivatives avoid. For water the two cost the same (5.3 s against 6.6 s in total); the difference grows with the number of modes.

2. Functional. h2o_pbe0.yaml (PBE0) and h2o_hf.yaml (Hartree–Fock) change the water activities of the symmetric stretch to 97.49 and 85.01 Å\(^4\)/amu (PBE: 108.21), and the frequencies to 3837 and 4113 cm\(^{-1}\). The activity falls as exact exchange rises, and Hartree–Fock overestimates the frequencies by 12 %.

3. Laser wavelength. h2o_785.yaml sets laser_nm: 785. The activities do not change (they are static), but the relative intensity of the bend rises from 2.39 to 3.26 and that of the asymmetric stretch drops from 22.46 to 22.02 relative to the symmetric stretch: the \((\tilde\nu_0-\tilde\nu_k)^4\) factor weights the modes differently at other wavelengths.

Limits

  • The polarizability is static: no resonance Raman and no frequency dispersion. Absolute intensities are therefore not compared with experiment here; the pattern (which modes, relative activities, depolarization ratios) is.

  • Plain collinear HF and DFT only (no SIC). The analytic route covers the same functionals and Coulomb methods as the analytic Hessian; other combinations fall back to finite fields with a printed message, or stop with an error when you ask for analytic.

  • The cost grows with the number of modes: two geometries per mode, each an SCF plus a CPHF.

Sources: NIST Chemistry WebBook (Shimanouchi’s tables) for water and methane, https://webbook.nist.gov/cgi/cbook.cgi?ID=C7732185&Mask=800 and https://webbook.nist.gov/cgi/cbook.cgi?ID=C74828&Mask=800; the CO\(_2\) fundamentals and the Fermi dyad from https://www.sshade.eu/data/specie/MOLEC_CO2.