forked from wmfschneider/CBE60547
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab4.tex
More file actions
558 lines (429 loc) · 20 KB
/
lab4.tex
File metadata and controls
558 lines (429 loc) · 20 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
% Created 2019-11-12 Tue 10:25
% Intended LaTeX compiler: pdflatex
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[version=3]{mhchem}
\usepackage[numbers,super,sort&compress]{natbib}
\usepackage{natmove}
\usepackage{url}
\usepackage{minted}
\usepackage{underscore}
\usepackage[linktocpage,pdfstartview=FitH,colorlinks,
linkcolor=blue,anchorcolor=blue,
citecolor=blue,filecolor=blue,menucolor=blue,urlcolor=blue]{hyperref}
\usepackage{attachfile}
\usepackage[left=1in, right=1in, top=1in, bottom=1in, nohead]{geometry}
\usepackage{hyperref}
\usepackage{setspace}
\usepackage[labelfont=bf]{caption}
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage[parfill]{parskip}
\author{Prateek Mehta, William F. Schneider}
\date{\textit{<2015-03-24 Tue>}}
\title{Computational Chemistry Laboratory IV (CBE 60547)}
\begin{document}
\maketitle
\section{Bulk Systems}
\label{sec:org4bd13a9}
\subsection{Creating a bulk system}
\label{sec:orgc57fa20}
There are a few different functions built into ase that let's you create simple bulk systems. The one we will use is ase.build.bulk. Let us consider how to construct an fcc structure. You can either create the primitive cell (default), a orthorhombic cell, or a cubic cell. Note these will have different unit cell sizes and different number of atoms, which will affect the computational cost of your simulation.
\begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{python}
from ase.build import bulk
from vasp import *
import matplotlib.pyplot as plt
from ase.visualize import view
# a is the lattice constant in Angstroms
Pd_cubic = bulk('Pd', 'fcc', a = 3.89, cubic = True)
view(Pd_cubic)
print(Pd_cubic)
Pd_ortho = bulk('Pd', 'fcc', a = 3.89, orthorhombic = True)
view(Pd_ortho)
print(Pd_ortho)
Pd_primitive = bulk('Pd', 'fcc') # if a is not specified, default experimental value is used.
view(Pd_primitive)
print(Pd_primitive)
\end{minted}
\begin{verbatim}
Atoms(symbols='Pd4', positions=..., cell=[3.89, 3.89, 3.89],
pbc=[True, True, True])
Atoms(symbols='Pd2', positions=..., cell=[2.75064537881567,
2.75064537881567, 3.89], pbc=[True, True, True])
Atoms(symbols='Pd', positions=..., cell=[[0.0, 1.945, 1.945], [1.945,
0.0, 1.945], [1.945, 1.945, 0.0]], pbc=[True, True, True])
\end{verbatim}
Calculations can be done in a similar way to what we performed in the last lab and homework, with a few additional parameters. The most important of these is the \emph{k}-point grid.
\subsection{A little bit about \emph{k}-points}
\label{sec:orgc6193d4}
For modeling bulk systems/surfaces, we need to specify a \emph{k}-point mesh. A few things to note:
\begin{itemize}
\item The accuracy (and cost) of your simulation usually goes up with increasing the \emph{k}-point grid used.
\item In this lab (for demonstrative purposes only) a k-point grid of (8x8x8) has been used. We typically need to do a convergence study for \emph{k}-points, similar to the one we did for the planewave cutoff.
\item The number of \emph{k}-points required scales inversely with the size of the unit cell.
\item We will usually specify a parameter \texttt{kpts=(k1,k2,k3)} in \texttt{vasp}, which creates a \texttt{KPOINTS} file that tells \texttt{VASP} to \href{http://cms.mpi.univie.ac.at/vasp/vasp/Automatic\_k\_mesh\_generation.html}{automatically create a Monkhorst-Pack k-mesh.}
\item Metals (conductors) generally require more \emph{k}-points than insulators to reach the same level of convergence.
\end{itemize}
\subsection{Optimizing lattice constants - Equations of State}
\label{sec:org48e7e1b}
\subsubsection{Energies vs. Lattice Constants}
\label{sec:org66d6f3b}
\texttt{ase} by default uses the experimental lattice constants (if known). Our computationally calculated lattice constants will usually be slightly different, depending on the exchange-correlation functional used. Let us consider a series of lattice constants, to find out which one minimizes the total energy.
\begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{python}
import numpy as np
from ase.utils.eos import EquationOfState
from vasp.vasprc import VASPRC
VASPRC['queue.q'] = '*long'
VASPRC['queue.nprocs'] = 24
VASPRC['queue.pe'] = 'mpi-24'
# Generate an array of 7 points 10% around 3.89 angstroms
A = np.linspace(3.89 * 0.9, 3.89 * 1.1, 7)
energies = []
volumes = []
ready = True
for a in A:
# We will use the cubic cell for simplicity
Pd_cubic = bulk('Pd', 'fcc', a = a, cubic = True)
calc = Vasp('EOS/Pd-a-{0:1.2f}'.format(a),
xc = 'PBE',
encut = 400,
ismear = 1, # Use MP smearing for metlas
kpts = [8,8,8],
atoms = Pd_cubic)
calc.calculate()
energies.append(Pd_cubic.get_potential_energy())
volumes.append(Pd_cubic.get_volume())
if None in energies:
ready = False
if ready == True:
plt.plot(A, energies, 'bo-')
plt.xlabel('Lattice constant ($\AA$)')
plt.ylabel('Total energy (eV)')
plt.savefig('images/Pd-fcc-lattice.png')
plt.show()
\end{minted}
\begin{center}
\includegraphics[width=.9\linewidth]{./images/Pd-fcc-lattice.png}
\end{center}
\subsubsection{Fitting to an Equation of State}
\label{sec:org5d39fc3}
To find the 'optimal' lattice constant we need to fit our data to an \href{https://wiki.fysik.dtu.dk/ase/tutorials/eos/eos.html?highlight=equation\%20state}{equation of state}, which describes the energy as a function of volume. The Murnaghan or Birch-Murnaghan EOS is commonly used. Let us use ase.eos.EquationOfState to fit the data we calculated above to the Birch-Murnaghan EOS.
\begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{python}
# Lets fit this to an equation of state
eos = EquationOfState(volumes, energies, eos='birchmurnaghan')
v0, e0, b = eos.fit()
a0 = v0 **(1/3)
eos.plot(filename='images/Pd-EOS.png', show=True)
print('Minimum Energy = {0:1.3f} eV'.format(e0))
print('Optimal Volume = {0:1.3f} cubic angstroms'.format(v0))
print('Optimal lattice constant = {0:1.3f} angstroms'.format(a0))
\end{minted}
\begin{verbatim}
Minimum Energy = -20.933 eV
Optimal Volume = 60.782 cubic angstroms
Optimal lattice constant = 3.932 angstroms
\end{verbatim}
\begin{center}
\includegraphics[width=.9\linewidth]{./images/Pd-EOS.png}
\end{center}
\section{Surfaces}
\label{sec:orgf6e02e0}
\subsection{Creating a surface}
\label{sec:org4702d43}
\texttt{ase} provides functions to create surfaces too. Surfaces are layers of atoms formed by cleaving the bulk structure in a given direction. In our models, we add vacuum in the direction perpendicular to the surface. Thus, the atoms are finite in the direction perpendicular to the surface, but infinite in the other two directions. Here is an example of how to make a surface.
\begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{python}
from ase.build.surface import fcc111
from ase.constraints import FixAtoms
from ase.io import write
a = 3.932 # Optimal lattice constant from EOS
# Create a surface with 3 unit cells in x and y
# 3 layers deep
atoms = fcc111('Pd', size=(2,2,3), vacuum=10.0, a=a)
view(atoms)
for atom in atoms:
print(atom.symbol, atom.tag)
write('images/Pd-slab.png', atoms, rotation='90x', show_unit_cell=2)
\end{minted}
\begin{verbatim}
Atom('Pd', [1.3901719318127526, 0.8026161390519545, 10.0], tag=3, index=0)
Atom('Pd', [4.1705157954382575, 0.8026161390519545, 10.0], tag=3, index=1)
Atom('Pd', [2.7803438636255051, 3.210464556207818, 10.0], tag=3, index=2)
Atom('Pd', [5.5606877272510102, 3.210464556207818, 10.0], tag=3, index=3)
Atom('Pd', [0.0, 1.605232278103909, 12.270141258453609], tag=2, index=4)
Atom('Pd', [2.7803438636255051, 1.605232278103909, 12.270141258453609], tag=2, index=5)
Atom('Pd', [1.3901719318127523, 4.013080695259772, 12.270141258453609], tag=2, index=6)
Atom('Pd', [4.1705157954382575, 4.013080695259772, 12.270141258453609], tag=2, index=7)
Atom('Pd', [0.0, 0.0, 14.540282516907219], tag=1, index=8)
Atom('Pd', [2.7803438636255051, 0.0, 14.540282516907219], tag=1, index=9)
Atom('Pd', [1.3901719318127526, 2.4078484171558636, 14.540282516907219], tag=1, index=10)
Atom('Pd', [4.1705157954382575, 2.4078484171558636, 14.540282516907219], tag=1, index=11)
\end{verbatim}
The tag on the atom indicates which layer of the surface it is in.
\begin{center}
\includegraphics[width=205bp]{./images/Pd-slab.png}
\end{center}
We can see that there are actually two surfaces, one in the top layer and one at the bottom layer. Surface atoms will tend to contract toward the bulk due to decreased coordination.
To simulate bulk like behavior in regions away from the surface, we can do two things:
\begin{itemize}
\item increase the number of layers in the slab (requires many atoms, large cost)
\item Constrain(freeze) the the bottom layer(s) in their bulk positions (common, lower cost). The bottom layer is now representative of bulk behavior.
\end{itemize}
\subsection{Surface calculations}
\label{sec:orgc1e7db6}
Let us now optimize the geometry of our surface. \textbf{Note that only one \emph{k}-point is required in the direction perpendicular to the surface.}
\begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{python}
from ase.lattice.surface import fcc111
a = 3.9322 # Optimal lattice constat from EOS
atoms = fcc111('Pd', size = (2,2,3), vacuum = 10.0, a=a)
constraint = FixAtoms(mask = [atom.tag >= 3 for atom in atoms])
atoms.set_constraint(constraint)
calc = Vasp('surfaces/Pd-slab-relaxed',
xc = 'PBE',
ismear = 1,
kpts = [8,8,1],
encut = 400,
ibrion = 2,
nsw = 20,
atoms = atoms)
calc.calculate()
print(calc)
\end{minted}
\begin{verbatim}
: -----------------------------
VASP calculation from /afs/crc.nd.edu/user/p/pmehta1/computational-chemistry/Lab4/surfaces/Pd-slab-relaxed
converged: True
Energy = -58.019294 eV
Unit cell vectors (angstroms)
x y z length
a0 [ 5.561 0.000 0.000] 5.561
a1 [ 2.780 4.816 0.000] 5.561
a2 [ 0.000 0.000 24.540] 24.540
a,b,c,alpha,beta,gamma (deg):5.561 5.561 24.540 90.0 90.0 90.0
Unit cell volume = 657.154 Ang^3
Stress (GPa):xx, yy, zz, yz, xz, xy
0.012 0.012 0.000-0.000 -0.000 -0.000
Atom# sym position [x,y,z]tag rmsForce constraints
0 Pd [1.390 0.803 10.000] 3 0.00 F F F
1 Pd [4.171 0.803 10.000] 3 0.00 F F F
2 Pd [2.780 3.210 10.000] 3 0.00 F F F
3 Pd [5.561 3.210 10.000] 3 0.00 F F F
4 Pd [5.561 1.605 12.270] 2 0.04 T T T
5 Pd [2.780 1.605 12.270] 2 0.04 T T T
6 Pd [6.951 4.013 12.270] 2 0.04 T T T
7 Pd [4.171 4.013 12.270] 2 0.04 T T T
8 Pd [0.000 0.000 14.548] 1 0.02 T T T
9 Pd [2.780 0.000 14.548] 1 0.02 T T T
10 Pd [1.390 2.408 14.548] 1 0.02 T T T
11 Pd [4.171 2.408 14.548] 1 0.02 T T T
--------------------------------------------------
INCAR Parameters:
-----------------
nbands: 72
ismear: 1
nsw: 20
ibrion: 2
encut: 400.0
magmom: None
kpts: (8, 8, 1)
reciprocal: False
xc: PBE
txt: -
gamma: False
Pseudopotentials used:
----------------------
Pd: potpaw_PBE/Pd/POTCAR (git-hash: 04426435b178dfad58ed91b470847d50ff70b858)
\end{verbatim}
Note that Vasp is a little unintuitive. The constraint 'F' means frozen.
We can go back to the calculation directory and see how our surface relaxed with \texttt{jaspsum -t}.
\subsection{Adding an Adsorbate}
\label{sec:org754c198}
Now let us add an adsorbate on our surface. There are multiple places where it could adsorb. Here is a picture of a fcc(111) gold surface, showing the possible adsorption sites.
\begin{center}
\includegraphics[width=.9\linewidth]{./images/Au-slab-sites.png}
\end{center}
Let's go back to our Pd surface and perform a calculation with an Oxygen adsorbate at the fcc site.
\begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{python}
from ase.build.surface import fcc111, add_adsorbate
a = 3.932 # Optimal lattice constant from EOS
atoms = fcc111('Pd', size=(2,2,3), vacuum=10.0)
add_adsorbate(atoms, 'O', height=1.2, position='fcc')
# Note that constraints only work after adding the adsorbate
constraint = FixAtoms(mask=[atom.tag >= 3 for atom in atoms])
atoms.set_constraint(constraint)
view(atoms)
calc = Vasp('surfaces/O-on-Pd-fcc',
xc='PBE',
ismear=1,
kpts=[8, 8, 1],
encut=400,
ibrion=2, # Conjugate Gradient
nsw=20, # relaxation steps
atoms=atoms)
calc.calculate()
print(calc)
write('images/Pd-slab-O-fcc.png', atoms, show_unit_cell=2)
\end{minted}
\begin{verbatim}
: -----------------------------
VASP calculation from /afs/crc.nd.edu/user/p/pmehta1/computational-chemistry/Lab4/surfaces/O-on-Pd-fcc
converged: True
Energy = -64.436725 eV
Unit cell vectors (angstroms)
x y z length
a0 [ 5.501 0.000 0.000] 5.501
a1 [ 2.751 4.764 0.000] 5.501
a2 [ 0.000 0.000 24.492] 24.492
a,b,c,alpha,beta,gamma (deg):5.501 5.501 24.492 90.0 90.0 90.0
Unit cell volume = 641.919 Ang^3
Stress (GPa):xx, yy, zz, yz, xz, xy
0.004 0.004 0.002-0.000 -0.000 -0.000
Atom# sym position [x,y,z]tag rmsForce constraints
0 Pd [1.375 0.794 10.000] 3 0.00 F F F
1 Pd [4.126 0.794 10.000] 3 0.00 F F F
2 Pd [2.751 3.176 10.000] 3 0.00 F F F
3 Pd [5.501 3.176 10.000] 3 0.00 F F F
4 Pd [5.505 1.586 12.288] 2 0.02 T T T
5 Pd [2.747 1.586 12.288] 2 0.02 T T T
6 Pd [6.877 3.970 12.405] 2 0.03 T T T
7 Pd [4.126 3.975 12.288] 2 0.02 T T T
8 Pd [-0.031 -0.018 14.660] 1 0.01 T T T
9 Pd [2.782 -0.018 14.660] 1 0.01 T T T
10 Pd [1.375 2.418 14.660] 1 0.01 T T T
11 Pd [4.126 2.382 14.541] 1 0.01 T T T
12 O [1.375 0.794 15.820] 0 0.02 T T T
--------------------------------------------------
INCAR Parameters:
-----------------
nbands: 80
ismear: 1
nsw: 20
ibrion: 2
encut: 400.0
magmom: None
kpts: (8, 8, 1)
reciprocal: False
xc: PBE
txt: -
gamma: False
Pseudopotentials used:
----------------------
O: potpaw_PBE/O/POTCAR (git-hash: 592f34096943a6f30db8749d13efca516d75ec55)
Pd: potpaw_PBE/Pd/POTCAR (git-hash: 04426435b178dfad58ed91b470847d50ff70b858)
\end{verbatim}
\begin{center}
\includegraphics[width=2in]{./images/Pd-slab-O-fcc.png}
\end{center}
\subsection{Calculating adsorption energies}
\label{sec:org51c12fe}
The adsorption energy is given by \(E_{ads} = E_{surface+O} - E_{surface} - 0.5 E_{O_{2}}\). This can easily be calculated from the two calculations we performed and the O\(_{\text{2}}\) calculation from the last homework.
\section{Density of States}
\label{sec:orgb34bf42}
It is possible to plot out the density of states (DOS) from \texttt{VASP} calculations. The density of states describes the number of states per interval of energy at each energy level that are available to be occupied (Wikipedia).
\subsection{Total density of States}
\label{sec:org662f757}
We can get the total density of states from an old DFT calculation without having to run a new calculation (Though the \texttt{VASP} manual recommends an additional run at ismear=-5). The DOS depends on the \emph{k}-point grid you choose.
Let's read in our calculation from our bulk Pd lattice constant studies.
\begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{python}
from ase.dft.dos import DOS
calc = Vasp('./EOS/Pd-a-3.89')
dos = DOS(calc, width = 0.2)
energies = dos.get_energies()
dos = dos.get_dos()
plt.plot(energies, dos, linewidth = 2)
# Add a vertical line at the fermi level
plt.axvline(x=0, color = 'r', linestyle='--', linewidth = 2)
plt.ylim(0,12)
plt.xlim(-10,10)
plt.xlabel('energy (eV)')
plt.ylabel('DOS (arb. units)')
plt.savefig('images/Pd-bulk-dos.png')
plt.show()
\end{minted}
\begin{center}
\includegraphics[width=.9\linewidth]{./images/Pd-bulk-dos.png}
\end{center}
States to the left of the fermi level (indicated by the red line) are the occupied states.
\subsection{Atom-projected density of states}
\label{sec:org39fcc69}
To figure out which density of states belong to which atoms in a molecule, we need to perform an additional calculation. We can compute the atom-projected density of states (ADOS), which is done by projecting the wave function onto localized atomic orbitals. These are only a qualitative representation of the orbitals, because the atoms will often form molecular orbitals, hybridize, etc.
In \texttt{VASP} we can specify an RWIGS parameter, which is the radius around the atom at which to cutoff the projection. The choice of RWIGS is somewhat arbitrary, one can choose the ionic radius of an atom, or a value that minimizes overlap of neighboring spheres. Another way to calculate the ADOS is by specifying the \href{http://cms.mpi.univie.ac.at/vasp/vasp/LORBIT.html}{LORBIT} parameter to be 10 or 11, but this only works for PAW potentials (this is what we will use).
In transition metals, the s and p states are dispersed, and the only states that matter in terms of bonding are the d-states. Here is an example to plot the DOS projected on to the d states for clean Pd surface atoms.
\begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{python}
# get the geometry the previous calculation
calc = Vasp('surfaces/Pd-slab-relaxed')
atoms = calc.get_atoms()
#Now submit a calculation for the ados
calc = Vasp('surfaces/Pd-ados',
xc='PBE',
ismear=1,
kpts=[8, 8, 1],
encut=400,
lorbit=10,
atoms=atoms)
calc.calculate()
# Atom index 10 is a surface atom (tag=1)
print(atoms[10])
energies, d_dos = calc.get_ados(10, 'd')
plt.plot(energies, d_dos, lw=2)
plt.axvline(lw=2, ls='--', color='r')
plt.xlabel('energy (eV)')
plt.ylabel('DOS (arb. units)')
plt.savefig('images/Pd-ados.png')
plt.show()
\end{minted}
\begin{verbatim}
Atom('Pd', [1.3901719318127526, 2.4078484171558636, 14.548402978407839], tag=1, index=10)
\end{verbatim}
\begin{center}
\includegraphics[width=.9\linewidth]{./images/Pd-ados.png}
\end{center}
\subsection{Adsorbate density of states}
\label{sec:org4a61df7}
Now let us plot the density of states for the adsorbed O atom.
\begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{python}
calc = Vasp('surfaces/O-on-Pd-fcc')
atoms = calc.get_atoms()
calc = Vasp('surfaces/O-on-Pd-fcc-ados',
xc = 'PBE',
ismear = 1,
kpts = [8,8,1],
encut = 400,
lorbit = 10,
atoms = atoms)
calc.calculate()
s_energies, s_dos = calc.get_ados(12,'s')
p_energies, p_dos = calc.get_ados(12,'p')
plt.plot(s_energies, s_dos, label='O$_{s}$', lw=2)
plt.plot(p_energies, p_dos, label='O$_{p}$', lw=2)
# Now plot the clean surface ados for comparison
calc = Vasp('surfaces/Pd-ados')
clean_energies, d_dos = calc.get_ados(11,'d')
plt.plot(clean_energies, d_dos, label='Pd$_{d}$', lw=2)
plt.xlim(-20,8)
plt.axvline(ls='-.', color='k', lw=2)
plt.xlabel('energy (eV)')
plt.ylabel('DOS (arb.units)')
plt.legend()
plt.savefig('images/adsorbate-dos.png')
plt.show()
\end{minted}
\begin{center}
\includegraphics[width=.9\linewidth]{./images/adsorbate-dos.png}
\end{center}
The blue line indicates the Oxygen s-states. The two peaks of the green line left and right of the Pd d-band are the bonding and antibonding Oxygen p-states. Note that the antibonding peak is to the right of the fermi level, meaning that the antibonding states are unoccupied.
\end{document}