 VibrationalSpectroscopy-PES - Maple Help

Home : Support : Online Help : Toolboxes : Quantum Chemistry : Courses : Lessons : VibrationalSpectroscopy-PES

Vibrational Spectroscopy: Calculating the Rovibrational Spectrum of a Diatomic Molecule Overview In this exercise, you will calculate the rovibrational spectrum of a diatomic molecule of interest (e.g.HCl) using different levels of theory: a normal mode analysis and ab initio methods.     Normal Mode Analysis:     As a first approximation, you will use the harmonic oscillator / rigid rotor approximation to calculate the fundamental vibrational frequency, ${v}_{0},$ and rotational energies. In this approximation,  the total rovibrational energy is given by Eq. (1):        (1)     where n = 0, 1, 2, ... is the vibrational quantum number, l = 0, 1, 2, ... is the rotational quantum number, ${R}_{0}$is the equilibrium bond distance, and μ is the reduced mass of the diatomic.   Using the Bohr correspondence principle, one can calculate a given transition between any two rovibrational states.  However, selection rules for a rotating/vibrating heteronuclear diatomic are Δl = ±1 and Δn = ±1.  Therefore, the (0,0) --> (1,0) fundamental transition would not be observed. What would be observed are the P-branch (corresponding to all transitions with Δl = -1) and the R-branch (all transitions corresponding to Δl = +1):   P-branch:    = (2) R-branch:    = (3) Transition energies are typically expressed in wavenumbers (${\mathrm{cm}}^{-1}$):   .        (4)    You will use the GeometryOptimization function to calculate ${R}_{0}$ for the diatomic of interest and then use the VibrationalModes function to calculate the fundamental frequency, $\stackrel{~}{v}$You will then calculate the rotational energies given by the second term in Eq. (1) for l = 0, 1, ..., ${l}_{\mathrm{max}}$.  You will then calculate P- and R-branches according to Eqs. (2) and (3) and compare to experimental values.       Ab Initio Calculations   While the above approximation is simple, more sophisticated methods can be used to capture the inherent anharmonicity in the system. In the second portion of this activity, you will calculate the potential energy surface (PES) for the diatomic molecule of interest using different levels of electronic structure theory. To assess the accuracy of each PES, you will calculate the corresponding rovibrational motion and compare with experimental observations.  In doing so, you will make use of the Born Oppenheimer approximation to separate the electronic and rovibrational degrees of freedom.  To this end, you will first calculate electronic energies by solving the electronic Schrodinger equation for a range of nuclear separations (R) to construct a 'potential energy surface' (PES), V(R).   You will explore different levels of theory, including Hartree-Fock (HF), many-body perturbation theory (MP2), coupled cluster (CC), and density functional theory (DFT) as well as different atomic basis sets, including STO-3G, 6-31G, cc-pVDZ, and cc-pVTZ.     Once V(R) has been constructed, the nuclear Schrodinger equation is given by   $\stackrel{\wedge }{H}$ (R) =  (R).           (5)   where is the corresponding rovibrational wavefunction, and the Hamiltonian, $\stackrel{\wedge }{H}$, is given by $\stackrel{\wedge }{H}$ = -(6)   While the details of how one solves Eq. (5) are beyond the scope of this exercise, the variational principle is used:  represent Eq. (5) in an underlying basis representation for Ψ and diagonalize the resulting matrix to get energy eigenvalues, ${E}_{n,l}$ .  (For more on matrix representations and the variational principle, see Variational Theorem exercise).  Once ${E}_{n,l}$ values have been calculated, the transition frequencies can again be calculated using the appropriate selection rules and Eqs. (2) and (3), and the results can be compared to experiment. Initialize

 > Input Parameters

We begin by specifying the atoms in our diatomic.  Note that the energy levels and spacings will depend on the isotopes we specify!  The variables elementA and elementB are the element symbols for the atoms in our diatomic, and MassNumberA and MassNumberB are their respective mass numbers (integers).    The variables Rmin and Rmax define the range over which the PES is computed and determine the level of accuracy of the vibrational calculation. The smaller the range, the quicker the calculation but the less accurate the results.  Start with a reasonable guess and proceed through each step to calculate the fundamental frequency.  Vary Rmin and Rmax until some acceptable level of convergence has been reached.  Once this has been done, Rmin and Rmax remain fixed for the different electronic structure methods and basis sets.

Finally, we specify the electronic structure method and basis set here.  Begin with ESmethod = HartreeFock and AObasis = "sto-3g" and proceed.  Once the fundamental has been calculated, repeat each step with a new basis and/or method.

 > $\mathrm{elementA}≔H:\mathrm{MassNumberA}≔1:$
 > $\mathrm{elementB}≔\mathrm{Cl}:\mathrm{MassNumberB}≔35:\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}$
 > $\mathrm{wavenum_observed}≔2885.8:$
 >
 >
 >
 > Normal Mode Analysis

In this section, calculate the fundamental mode of the diatomic using a normal mode analysis, which approximates the vibration of the diatomic as a harmonic oscillator.  First define the molecule with a bond length of 1 Angstrom and then use the GeometryOptimization function to redefine the molecule with the optimum bond length for the desired method and basis. Then use the VibrationalModes function to determine the energy (in wavenumbers) of the fundamental.  Calculate the percent error.

 > $\mathrm{molec}≔\left[\left[\mathrm{convert}\left(\mathrm{elementA},\mathrm{string}\right),0,0,0\right],\left[\mathrm{convert}\left(\mathrm{elementB},\mathrm{string}\right),0,0,1.2\right]\right];$
 ${\mathrm{molec}}{≔}\left[\left[{"H"}{,}{0}{,}{0}{,}{0}\right]{,}\left[{"Cl"}{,}{0}{,}{0}{,}{1.20000000}\right]\right]$ (4.1)
 > $\mathrm{molec},\mathrm{data}≔\mathrm{GeometryOptimization}\left(\mathrm{molec},\mathrm{ESmethod},\mathrm{basis}=\mathrm{AObasis}\right);$ > $\mathrm{emodes},\mathrm{vmodes}≔\mathrm{VibrationalModes}\left(\mathrm{molec},\mathrm{ESmethod},\mathrm{basis}=\mathrm{AObasis}\right);$
 ${\mathrm{emodes}}{,}{\mathrm{vmodes}}{≔}\left[\begin{array}{c}{1858.31771126}\end{array}\right]{,}\left[\begin{array}{c}{-0.14115696}\\ {0.16595895}\\ {-0.79310771}\\ {-0.01550302}\\ {0.11375757}\\ {0.55707394}\end{array}\right]$ (4.2)
 > $\mathrm{PercentError}≔\frac{\left(\mathrm{emodes}\left[1\right]-\mathrm{wavenum_observed}\right)}{\mathrm{wavenum_observed}}\cdot 100;$
 ${\mathrm{PercentError}}{≔}{-35.60476432}$ (4.3)

Now, consider the rovibrational transitions allowed for a heteronuclear diatomic AB.   The vibrational selection rules are Δv = Δ±1,  Δl = ±1. Therefore, for transitions between v = 0 --> v = 1, there is a manifold of Δl = ±1 lines.

 > $\mathrm{mA}≔\mathrm{evalf}\left(\mathrm{Element}\left(\mathrm{elementA}\left[\mathrm{MassNumberA}\right],\mathrm{atomicmass},\mathrm{system}=\mathrm{SI}\right)\right);\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{mB}≔\mathrm{evalf}\left(\mathrm{Element}\left(\mathrm{elementB}\left[\mathrm{MassNumberB}\right],\mathrm{atomicmass},\mathrm{system}=\mathrm{SI}\right)\right);$
 ${\mathrm{mA}}{≔}{1.67353398}{}{{10}}^{{-27}}$
 ${\mathrm{mB}}{≔}{5.80671857}{}{{10}}^{{-26}}$ (4.4)
 > $\mathrm{lmax}≔5;$
 ${\mathrm{lmax}}{≔}{5}$ (4.5)
 >
 ${\mathrm{R0}}{≔}{1.32081083}{}{{10}}^{{-10}}$ (4.6)
 > $\mathrm{reduced_mass}≔\frac{\mathrm{mA}\cdot \mathrm{mB}}{\mathrm{mA}+\mathrm{mB}};$
 ${\mathrm{reduced_mass}}{≔}{1.62665279}{}{{10}}^{{-27}}$ (4.7)
 > $\mathrm{moment_inertia}≔\mathrm{reduced_mass}\cdot {\mathrm{R0}}^{2};$
 ${\mathrm{moment_inertia}}{≔}{2.83776291}{}{{10}}^{{-47}}$ (4.8)
 >
 ${{\mathrm{Erot}}}_{{0}}{≔}{0.}$
 ${{\mathrm{Erot}}}_{{1}}{≔}{19.72874569}$
 ${{\mathrm{Erot}}}_{{2}}{≔}{59.18623706}$
 ${{\mathrm{Erot}}}_{{3}}{≔}{118.37247413}$
 ${{\mathrm{Erot}}}_{{4}}{≔}{197.28745688}$
 ${{\mathrm{Erot}}}_{{5}}{≔}{295.93118532}$ (4.9)
 > 
 > $#\mathrm{Calculate P- and R-branches for l = 0, 1, 2, ..., lmax}$

P-branch: Dl = -1

 >
 ${P}{≔}{1838.58896557}$
 ${P}{≔}{1818.86021988}$
 ${P}{≔}{1799.13147419}$
 ${P}{≔}{1779.40272850}$
 ${P}{≔}{1759.67398282}$ (4.10)

R-branch: Dl = +1

 >
 ${R}{≔}{1878.04645694}$
 ${R}{≔}{1897.77520263}$
 ${R}{≔}{1917.50394832}$
 ${R}{≔}{1937.23269401}$
 ${R}{≔}{1956.96143969}$ (4.11)

What do you notice about the spacing between lines in the P-branch?  in the R-branch? Are these observations consistent with an experimental IR spectrum of the diatomic AB? Answer There is equal spacing between lines in both P and R branches. This is consistent with a rigid rotor approximation! Construct Potential Energy Surface

In this section, use electronic structure methods to solve for the potential energy surface of diatomic AB.  We begin by using the ScientificConstants package to get the mass of each of our elements A and B. Once the method and basis have been chosen, then we use the QuantumChemistry package to calculate the PES for a range of separation values between Rmin and Rmax.     (Note, you may notice that the ESmethod may not converge for smaller basis sets at larger values of R.)

 > $\mathrm{mA}≔\mathrm{evalf}\left(\mathrm{Element}\left(\mathrm{elementA}\left[\mathrm{MassNumberA}\right],\mathrm{atomicmass},\mathrm{system}=\mathrm{Atomic}\right)\right):\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{mB}≔\mathrm{evalf}\left(\mathrm{Element}\left(\mathrm{elementB}\left[\mathrm{MassNumberB}\right],\mathrm{atomicmass},\mathrm{system}=\mathrm{Atomic}\right)\right):$
 > $\mathrm{mA}≔\mathrm{evalf}\left(\mathrm{Element}\left(\mathrm{elementA},\mathrm{atomicweight},\mathrm{system}=\mathrm{Atomic}\right)\right);\mathrm{mB}≔\mathrm{evalf}\left(\mathrm{Element}\left(\mathrm{elementB},\mathrm{atomicweight},\mathrm{system}=\mathrm{Atomic}\right)\right);$
 ${\mathrm{mA}}{≔}{1837.36350387}$
 ${\mathrm{mB}}{≔}{64626.91063223}$ (5.1)
 >  Calculate Vibrational Energy Levels

Once we have a PES (in a given basis for a given level of electronic structure theory), we can solve the vibrational Schrodinger equation.  We will calculate the energies for a range of angular momentum values and calculate the P- and R-branches.   This may take a few minutes!

 > $n≔\mathrm{trunc}\left(20\cdot \left(\mathrm{Rmax}-\mathrm{Rmin}\right)\right):\mathrm{lmax}≔5:$
 >
 >
 > Results Fundamental Transition Frequency

We can now calculate the fundamental frequency ( in wavenumbers, 1/cm). This number can be compared to the experimental value for the AB diatomic of interest.  Enter the results into Table 1 below!

 > $\mathrm{wavenum}≔\left(\mathrm{Evl}\left[2,1\right]-\mathrm{Evl}\left[1,1\right]\right)\cdot 219476.329478$
 ${\mathrm{wavenum}}{≔}{2916.05626091}$ (7.1.1)
 > $\mathrm{PercentError}≔\frac{\left(\mathrm{wavenum}-\mathrm{wavenum_observed}\right)}{\mathrm{wavenum_observed}}\cdot 100$
 ${\mathrm{PercentError}}{≔}{1.04845315}$ (7.1.2)

Table 1: Fundamental  Frequencies for Diatomic AB   (v0 = 2872.3 cm-1 for HCl.)

 ESMethod AObasis Fundamental Frequency v0 (cm-1) %Error Hartree-Fock STO-3G  6-31G  cc-pVDZ  cc-pVTZ  MP2 STO-3G  6-31G  cc-pVDZ  cc-pVTZ Parametric2RDM STO-3G  6-31G  cc-pVDZ  cc-pVTZ Density Functional Theory STO-3G  6-31G  cc-pVDZ  cc-pVTZ P-Branch and R-Branch

As a final exercise, we consider the rovibrational transitions allowed for a heteronuclear diatomic AB using the method / basis that gave the best results in Table 1.   If necessary, recompute the rovibrational eigenvalues for this combination before proceeding.

P-branch: DJ = -1

 >
 ${P}{≔}{2843.17588300}$
 ${P}{≔}{2768.33714588}$
 ${P}{≔}{2691.68880667}$
 ${P}{≔}{2613.37999119}$
 ${P}{≔}{2533.55957404}$ (7.2.1)

R-branch: DJ = +1

 >
 ${R}{≔}{2986.83042273}$
 ${R}{≔}{3055.35185488}$
 ${R}{≔}{3121.47573937}$
 ${R}{≔}{3185.05920428}$
 ${R}{≔}{3245.96146160}$ (7.2.2)

What do you notice about the spacing between lines in the P-branch?  in the R-branch? Are these observations consistent with an experimental IR spectrum of the diatomic AB? Answer P-branch: spacing increases as J increases. R-branch: spacing decreases as J increases. Appendix References J. C.Light, I. P.Hamilton, and J. V. Vill, J. Chem. Phys. 82 ,1400 (1985).