Using a Spreadsheet to Solve the Schrödinger Equations for Small

advertisement
Using a Spreadsheet to Solve the
Schrödinger Equations for Small
Molecules: An Undergraduate
Quantum Chemistry Lab
Jacob Buchanan, Benjamin Livingston, Yingbin Ge*
Department of Chemistry
Central Washington University
“I think you should be more explicit here in Step Two.”
By Sidney Harris, Copyright 2007, The New Yorker
Goals
Better understanding of quantum chemistry
• by visualizing quantum phenomena on a spreadsheet
• by solving Schrödinger equation for molecules by
hand
• by breaking the total energy into pieces
– Potential energy: N-N repulsion, e-e repulsion, e-N
attraction.
– Kinetic energy of each electron.
• by hand calculating exchange and correlation energy
on a spreadsheet.
3
Prior Knowledge
• Multivariable differential and integral calculus
• Quantum mechanical postulates:
𝑂ψ = oψ
ψ𝑂ψ𝑑τ
<o> =
(when ψ is a real function.)
ψψ𝑑τ
• Linear algebra and differential equations are
not required
• Experience with Excel or Google spreadsheet
4
Quantum chemistry exercises on a spreadsheet
Ex. 1. Visualization of tunneling effect in a H atom
Ex. 2. Visualization of particle-like properties of waves
Ex. 1-2 help students better understand abstract QM concepts
and gain experience with spreadsheet calculations.
Ex. 3. Solving the Schrödinger equation for H2+ and H2
Ex. 4. Exchange energy in H2*: first singlet vs triplet excited states
Ex. 5. Correlation energy in H2: a 2-determinant wave function
5
Ex. 1. Visualization of tunneling effect in a H atom
−1 2
1
𝛻 πœ“ − πœ“ = πΈπœ“
2
π‘Ÿ
1
2
Students can easily verify that πœ“ = 𝑒 −π‘Ÿ is an eigenfunction with 𝐸 = − .
Radius
(r)
…
Total E Potential E Kinetic E
= -1/2 = -1/r
=1/r – 1/2
0.5
-0.5
-2.0
1.5
0.6
-0.5
-1.7
1.2
0.7
-0.5
-1.4
0.9
…
…
…
1.5
Total E
Potential E
Kinetic E
1.0
0.5
0.0
-0.5
-1.0
-1.5
-2.0
0.5
1.5
2.5
3.5
Radius
6
Ex. 2. Visualization of particle-like properties of waves
Double-slit diffraction patterns of electrons visually illustrate the wave-like
properties of particles.
Photoelectric effects illustrate (less visually) the particle-like property of light.
Visualization of the particle-like property of waves on a spreadsheet:
Ψ =[ cos θ + cos 2θ + cos 3θ + cos(4θ) ] / 4
θ cos(θ) cos(2θ) cos(3θ) cos(4θ)
Ψ
-3 -0.99
0.96 -0.91
0.84 -0.02
-2 -0.42 -0.65
0.96 -0.15 -0.06
-1
0.54 -0.42 -0.99 -0.65 -0.38
0
1.00
1.00
1.00
1.00 1.00
1
0.54 -0.42 -0.99 -0.65 -0.38
2 -0.42 -0.65
0.96 -0.15 -0.06
3 -0.99
0.96 -0.91
0.84 -0.02
Ψ2
0.00
0.00
0.14
1.00
0.14
0.00
0.00
1
Ψ2
0
-3
0
3
7
Combination of many waves exhibit particle-like property
𝑁
Ψ=
cos 𝑛θ /𝑁
𝑛=1
𝑁=1
𝑁 = 100
𝑁 = 10
Ψ2
-4
0
4 -4
0
wave
# of values the momentum (p = h/λ) may have:
1
10
4 -4
0
4
particle
100
Uncertainty of momentum
Uncertainty of position
8
Ex. 3. Solving the Schrödinger equation for H2+ and H2
H2 +
• Introduction to solving problems without analytical
solutions.
• Nucleus positions fixed with a bond length of 1.5 a.u.
• Calculate every potential and kinetic energy
component approximately.
• Need to evaluate integrals on a spreadsheet.
9
Integral calculation on a spreadsheet
• Using a spreadsheet to estimate the value of an integral:
𝐿
𝐿
𝑓(π‘₯)𝑑π‘₯ ≅
−𝐿
𝑓 𝑖
𝑖=−𝐿
• For a fast decaying function f(x,y,z), the function value at
several thousand randomly selected data points are
calculated within a given volume.
• The product of the volume and the average function
value is approximately the integral.
10
H2+
e- (x, y, z)
rA
HA
Y
rB
HB
RAB = 1.5
X
Z
∞
Ψ𝑂Ψ𝑑τ ≅ 𝑉
−∞
𝑁
𝑖=1 Ψ
πœπ‘– π‘‚Ψ πœπ‘–
𝑁
11
1
2
1
π‘Ÿ
1
2
− 𝛻 2 (𝑒 −π‘Ÿ ) = ( − ) 𝑒 −π‘Ÿ
Random
coordinates
x
y
0.3
-1.6
0.7
-0.5
-0.5
-0.4
1.5
-0.6
1.2
-1.6
1.8
-1.7
0.0
…
z
-0.5
1.7
1.0
1.2
-1.6
-0.8
1.2
1.2
-1.8
0.2
1.4
-0.8
-1.2
…
𝑒 −π‘Ÿπ΄ 𝑒 −π‘Ÿπ΅ φA+φB
rA
-2.4
0.5
1.4
-1.8
0.8
3.0
-0.7
0.8
-2.2
0.4
2.9
0.5
-1.9
…
rB
1.5
2.4
1.9
2.2
1.9
3.1
2.0
1.5
3.1
1.7
3.7
2.0
2.3
…
φA
φB
σ
2.4 0.226 0.088
2.4 0.089 0.089
1.9 0.152 0.152
2.2 0.115 0.115
1.9 0.154 0.154
3.1 0.045 0.045
2.0 0.139 0.139
1.5 0.213 0.213
3.1 0.046 0.046
1.7 0.192 0.192
3.7 0.026 0.026
2.0 0.142 0.142
2.3 0.104 0.104
…
…
…
Attraction
Kinetic E
σ2
-σ2/rA -σ2/rB σ[(1/rA-1/2)φA+(1/rB-1/2)φB]
0.314 0.099 0.067 0.041
0.010
0.178 0.032 0.013 0.013
-0.003
0.305 0.093 0.049 0.049
0.003
0.229 0.053 0.024 0.024
-0.002
0.309 0.095 0.051 0.051
0.003
0.091 0.008 0.003 0.003
-0.001
0.278 0.077 0.039 0.039
0.001
0.425 0.181 0.117 0.117
0.026
0.093 0.009 0.003 0.003
-0.002
0.384 0.147 0.089 0.089
0.016
0.052 0.003 0.001 0.001
-0.001
0.285 0.081 0.042 0.042
0.001
0.208 0.043 0.019 0.019
-0.003
…
…
…
…
…
H2
e1-
HA
r12
e2-
Y
HB
X
Z
Nucleus positions fixed with a bond length of 1.5 a.u.
No exchange energy between electrons with opposite spin.
Hartree product wave function ψ = σ(1)σ(2) is used.
13
There are more columns but calculations can still be done
conveniently on a spreadsheet.
x1
…
y1
…
z1
…
φ1A φ1B
…
…
-ψ2/r
…
1A
y2
…
φ2A φ2B
…
…
-ψ2/r
…
x2
…
1B
-ψ2/r
…
z2
…
r1A
…
σ1
…
σ2
…
2A
-ψ2/r
…
r1B
…
r2A
…
r2B
…
r12
…
Ψ
Ψ2
σ1σ2 …
2B
ψ2/r
…
1
12
-2ψ𝛻 2 ψ
…
14
Average of 10 runs (each contains 8000 sampling)
2
H2+
H2
Kinetic E
Kinetic E
e-e repulsion
0
a. u.
Total E
Total E
Potential E
Attraction
-2
Spreadsheet
HF/STO-3G
Potential E
Attraction
-4
15
Range and standard deviation of 10 runs
2
H2+
H2
Kinetic E
Kinetic E
e-e repulsion
0
Total E
a. u.
Potential E
Total E
Attraction
-2
Potential E
Attraction
-4
16
Ex. 4. Exchange energy in H2*:
first singlet vs. triplet excited states
No 2 electrons can have the same set of quantum numbers.
Electrons with same spin can better avoid each other than
electrons with opposite spin, which reduces the e-e repulsion.
Hartree product and determinantal wave functions can be used
to estimate the e-e repulsion for the S1 (w/o exchange) state
and T1 state (w/exchange).
1
< >
π‘Ÿ12
=
ψπ‘Ÿ1 ψd𝜏
ψ2/r12
12
≅
ψψd𝜏
ψ2
ψ𝐻𝑃 = σ1σ∗2 (S1)
ψ𝑑𝑒𝑑 = (σ1σ∗2- σ2σ∗1) 𝛼1 𝛼2 (T1)
17
Difference between S1 and T1 excited states:
σ*
σ
σα1σ*β1 (S1)
w/o exchange
Use Hartree product ψ𝐻𝑃 = σ1σ*2
σα1σ*α1 (T1)
w/ exchange
Use determinantal ψ𝑑𝑒𝑑
18
Exchange energy is the essentially the difference
between repulsion of electrons with same spin vs.
repulsion of electrons with opposite spin.
ψ𝐻𝑃
σ1σ*2
ψ𝑑𝑒𝑑
ψ𝐻𝑃 2
σ1σ∗2 - σ2σ∗1 …
Exchange E ≅
ψ𝑑𝑒𝑑 2
ψ𝐻𝑃 2/r12
ψ𝑑𝑒𝑑 2/r12
…
…
…
ψ𝑑𝑒𝑑 2/r12
−
2
ψ𝑑𝑒𝑑
ψ𝐻𝑃 2/r12
ψ𝐻𝑃 2
19
Ex. 5. Correlation energy in H2: ψ𝑔𝑠 + C𝑒π‘₯ ψ𝑒π‘₯
Hartree-Fock energy (1 determinant)
E
Correlation energy
Exact energy (infinite # of determinants)
• 2-determinant wave function that includes a parametric
constant Cex for the excited state determinant.
• Variational method to minimize Ecorr.
• Minimum energy using the 2-determinant wave function
compared to the HF energy with Cex = 0.
20
Ex. 5. Correlation energy in H2: ψ𝑔𝑠 + C𝑒π‘₯ ψ𝑒π‘₯
Hartree-Fock energy (1 determinant)
E
Correlation energy from double excitation
CID energy (2 determinants)
Using Hartree product functions to calculate correlation
energy approximately for a H2 molecule:
ψ𝑔𝑠 = σ1σ2
w/o correlation
ψπ‘π‘œπ‘Ÿπ‘Ÿ = σ1σ2 + Cexσ∗1σ∗2
w/ correlation
Ecorr ≅
(ψπ‘π‘œπ‘Ÿπ‘Ÿ 2/r12)
ψπ‘π‘œπ‘Ÿπ‘Ÿ2
−
(ψ𝑔𝑠 2/r12)
ψ𝑔𝑠2
21
Acknowledgements
• Central Washington University (CWU) College of the
Sciences Summer Writing Grant & Faculty
Development Fund
• CWU Office of Graduate Studies & Research Faculty
Travel Fund
• CWU Department of Chemistry
• Dr. Robert Rittenhouse for helpful discussion
22
Questions, comments, & suggestions?
23
−1 πœ•
πœ•
1 πœ•
πœ•
1
πœ•2
2
π‘Ÿ
+
π‘ π‘–π‘›πœƒ
+
2π‘Ÿ 2 πœ•π‘Ÿ
πœ•π‘Ÿ
π‘ π‘–π‘›πœƒ πœ•πœƒ
πœ•πœƒ
𝑠𝑖𝑛2 πœƒ πœ•πœ™ 2
−1 πœ•
2π‘Ÿ 2 πœ•π‘Ÿ
πœ•
π‘Ÿ2
πœ•π‘Ÿ
+
=
−1 πœ•
2π‘Ÿ 2 πœ•π‘Ÿ
π‘Ÿ2
=
1
πœ•
2π‘Ÿ 2 πœ•π‘Ÿ
π‘Ÿ 2 𝑒 −π‘Ÿ
=
1
(2π‘Ÿπ‘’ −π‘Ÿ
2
2π‘Ÿ
=
1
(
π‘Ÿ
−
1
)
2
πœ•
πœ•π‘Ÿ
1 πœ•
π‘ π‘–π‘›πœƒ πœ•πœƒ
πœ•
π‘ π‘–π‘›πœƒ
πœ•πœƒ
+
1
πœ“ − πœ“ = πΈπœ“
π‘Ÿ
1
πœ•2
𝑠𝑖𝑛2 πœƒ πœ•πœ™2
𝑒 −π‘Ÿ
𝑒 −π‘Ÿ
− π‘Ÿ 2 𝑒 −π‘Ÿ )
𝑒 −π‘Ÿ
24
H atom calculations
• Familiarize students with spreadsheet format.
• Calculation of kinetic energy and potential
energy.
• Comparison to analytical solution.
25
Compilation
• Results from each student compiled using
Google spreadsheet
• Results averaged and compared to HF/STO-3G
calculations and experimental data.
26
Download