<> Navigation: * [[https://wiki.ph.qmul.ac.uk/ccmmp/ajm/start|AJM Main]] (needs credentials) * [[AJMPublic/camcasp|CamCASP]] = Electronic Structure Methods = == Lecture notes for 2020 == These are on [[http://qmplus.qmul.ac.uk/|QM+ at the SPA7008 course listing (search for 'SPA7008')]]. The homework sets are also located there Here are copies of the lecture notes: * [[attachment:elecstruc_introduction.pdf|Introduction]] * [[attachment:elecstruc_theory_overview.pdf|Theory overview]] * [[attachment:elecstruc_exact_results.pdf|Exact properties of the wavefunction]] * [[attachment:elecstruc_approximate_methods.pdf|Approximate Methods]] * [[attachment:elecstruc_h2_minimal_basis.pdf|Model system: H$_2$]] * [[attachment:elecstruc_huckel_theory.pdf|Huckel Theory (Tight binding)]] * [[attachment:elecstruc_hf.pdf|Hartree-Fock Theory]] * [[attachment:elecstruc_basissets.pdf|Basis Sets]] * [[attachment:elecstruc_posthf.pdf|Post HF]] * [[attachment:elecstruc_dft-1.pdf|DFT (1)]] * [[attachment:elecstruc_dft-2.pdf|DFT (2)]] * [[attachment:functionals_svetitsky.pdf|Notes on Functional Derivatives (Svetitsky)]] Hand-written notes that accompany the above and the screen-casts on [[https://www.youtube.com/channel/UCkFa8FHpsjmvm3pEJFUEpGQ|my Youtube channel]]: * [[attachment:esm_asymptotic_form_of_wf.pdf|Asymptotic form of the wave-function]]. See [[attachment:elecstruc_exact_results.pdf|Exact properties of the wavefunction]]. * [[attachment:esm-e-nuc_cusp.pdf|Kato cusp conditions: e-e and e-nuc cusps]]. See [[attachment:elecstruc_exact_results.pdf|Exact properties of the wavefunction]]. * [[attachment:esm_uniform_scaling.pdf|Uniform scaling of electronic coordinates]]. See [[attachment:elecstruc_dft-1.pdf|DFT (1)]]. * [[attachment:esm_useful_results.pdf|Many useful results and derivations]]. See mainly [[attachment:elecstruc_dft-1.pdf|DFT (1)]]. * [[attachment:esm_hf_functional.pdf|The Hartree-Fock functional]]. See [[attachment:elecstruc_dft-1.pdf|DFT (1)]]. Additional notes from colleagues and friends: * Dr Janos Angyan has some very good, but perhaps somewhat technical [[attachment:janos_angyan_hf_methods_of_quantum_chemistry.pdf|notes on electronic structure methods.]] These were delivered at Université de Nancy. * Dr Patrick Rinke used to be at the Max Planck institute in Berlin. [[attachment:electronic_structure_rinke.pdf|These notes on electronic structure techniques]] were delivered there. They are less technical and more accessible than the notes from Janos. They cover many of the topics we cover in ESM so I recommend using them. * Janos also taught Intermolecular Interactions at Nancy and I recommend these lecture ([[attachment:intermolecular_forces_angyan_part1.pdf|Janos-part-1]], [[attachment:intermolecular_forces_angyan_part2.pdf|Janos-part-2]]) notes if you'd like to learn more about this topic. Past examination papers: * [[attachment:electronicstructure-2014.pdf|2014]] * [[attachment:electronicstructure-2015-v2.pdf|2015]] * [[attachment:electronicstructure-2016-may.pdf|2016]] * [[attachment:electronicstructure-2017-may-v1.pdf|2017]] * 2018 * [[attachment:slater_condon_rules_for_exam.pdf|Slater-Condon rules that will be provided in the exams.]] And here are papers we will use: * [[attachment:electronic-structure:ammonia_monohydrate_high_pressure_phases_griffithsmfpn12_jcp137.pdf|AMH paper]]: G. Griffiths, A. J. Misquitta, R. J. Needs, C. J. Pickard and A. D. Fortes //Theoretical study of ammonia monohydrate at pressures up to 12 GPa// J. Chem. Phys. '''137''', 064506 (2012). * [[attachment:asympcorr_xcpot_tddft_casida_salahub_jcp113.pdf|Asymptotic correction]]: M. Casida and D. Salahub, //Asymptotic correction approach to improving approximate exchange–correlation potentials: Time-dependent density-functional theory calculations of molecular excitation spectra//, J. Chem. Phys. '''113''', 8918 (2000). * [[attachment:lbfunc_vanleeuwen_baerends_pra49.pdf|LB94 functional]]: R. van Leeuwen and E. J. Baerends, //Exchange-correlation potential with correct asymptotic behaviour//, Phys. Rev. A, '''49''', 2421 (1994). And here is a very useful book: * [[attachment:ideas_of_quantum_chemistry_piela_2nd_ed.pdf|Ideas of Quantum Chemistry by Lucjan Piela]] == Overleaf for writing your Thesis == Use this [[https://www.overleaf.com?r=3a2244d6&rm=d&rs=b|link to register for your Overleaf account]] to write collaborative Latex documents on the web. Overleaf removes a lot of the trouble you may encounter when trying to install Latex on your own. == Homework == The [[https://qmplus.qmul.ac.uk/course/view.php?id=9755 | homework set is on QM+ (valid for 2018-19).]] Make sure that this is the QM+ page for the current year! == Practicals for ESM == * Useful Stuff : [[AJMPublic/teaching/electronic-structure/useful_stuff|Copying data, and other useful things]] * Prac 1: [[AJMPublic/teaching/electronic-structure/practical1|Linux: Using Comanche]] * Prac 1.1: [[AJMPublic/teaching/electronic-structure/practical-graphical|Visualising the molecular orbitals]] * Prac 2: [[AJMPublic/teaching/electronic-structure/practical2|H$_2$: RHF, UHF, CI]] * Prac 3: [[AJMPublic/teaching/electronic-structure/practical3|H2O, Ar$_2$ : Optimization and the PES]] * Prac 4: [[AJMPublic/teaching/electronic-structure/practical-size-extensivity|Size-extensivity]] * Prac 5: [[AJMPublic/teaching/electronic-structure/practical-Ar2-dft| Ar$_2$ : DFT calculations of the PES]] * Prac 5.1: [[AJMPublic/teaching/electronic-structure/practical-dft-S66 | DFT calculations of the PES: The S66 database]] * Prac 6: [[AJMPublic/teaching/electronic-structure/practical4|Ammonia monohydrate crystal (1): MP2]] * Prac 7: [[AJMPublic/teaching/electronic-structure/practical5|Ammonia monohydrate crystal (2): DFT]] * [[AJMPublic/teaching/electronic-structure/report|Report: What goes in it?]] * Old stuff - Do not use!: [[AJMPublic/teaching/electronic-structure/nwchem-scripts|Scripts for setting up NWChem and cleaning jobs.]] == Practicals for CCMP == * [[AJMPublic/teaching/electronic-structure/getting-started|Getting started with NWChem]] * [[AJMPublic/teaching/electronic-structure/argon2-pes-hf-mp2|Interaction energies for Ar$_2$ with HF and MP2]] * [[AJMPublic/teaching/electronic-structure/argon2-pes-dft|Interaction energies for Ar$_2$ with DFT]] * [[AJMPublic/teaching/electronic-structure/psi4-argon2-pes-hf-mp2|Psi4 : Interaction energies for Ar$_2$ with HF and MP2]] * [[AJMPublic/teaching/electronic-structure/fitting-1d-pes-python|Fitting a 1-D PES using Python]] == Examples == == Linux, VIM & Python == Most electronic structure and modelling codes are run from the Linux [[http://en.wikipedia.org/wiki/Command-line_interface|command line]]. There is nothing very complicated about this; instead of using the mouse to access programs and commands, we will type out commands in what is known as the shell. Some of you will already be fairly familiar with the Linux environment, the command line, using non graphical editors and perhaps even programming. If so, the links provided here will lead you to pages/documents that could be a useful refresher. If this is all new to you, then you will learn enough about Linux, the VIM editor and programming in Python to get you going. === Linux === The best way to come to grips with an operating system like Linux is to get your hands dirty and interact with it. You should make sure you have access to the [[http://en.wikipedia.org/wiki/Linux_shell|Linux shell]] either through a native Linux workstation, or by logging onto one, or, if you prefer Windows, by using a shell like [[http://en.wikipedia.org/wiki/Cygwin|Cygwin]]. If you are unsure how to get this going, ask one of our Administrators. == Tutorials == * Start here: James Spencer (a colleague of mine, now at Imperial) has developed a series of tutorials that can be [[http://www.cmth.ph.ic.ac.uk/people/j.spencer/cdt.php|found here]]. We will use the [[http://www.cmth.ph.ic.ac.uk/people/j.spencer/cdt.php|Introduction to Unix/Linux/Bash tutorial]]. This tutorial comes with a series of exercises. Please do them. Solutions are provided on James' page. Use these links to find local copies of James' [[attachment:james-unix-2013.pdf|tutorials]] and [[attachment:james-unix-2013_answers.pdf|solutions]]. * Earlier versions of James' tutorials can be found at these links: 1. [[attachment:unix_session1.pdf|Linux1]] 1. [[attachment:unix_session2.pdf|Linux2]] 1. [[attachment:unix_session3.pdf|Linux3]] 1. [[attachment:unix_session4.pdf|Linux4]] * The University of Surrey has a nice and comprehensive [[http://www.ee.surrey.ac.uk/Teaching/Unix/|Linux tutorial]]. === VIM === The World is divided into those who use [[http://en.wikipedia.org/wiki/Emacs|Emacs]] and those who use [[http://en.wikipedia.org/wiki/Vim_(text_editor)|VIM]]. The others don't count. I will not force either of these on you, but if you use the Linux command line, you will need to learn to use one of these and I recommend VIM. == Tutorials == * The [[http://www.openvim.com/tutorial.html|OpenVIM project]] has a cool interactive tutorial. Begin here. * Vim comes with a built-in tutorial that can be accessed as follows: * At the command line (represented by a ''$'') type: ''$ vimtutor'' * This takes you directly into the tutor. You navigate the cursor using either the arrow keys or the letters ''h'', ''k'',''j'',''l''. * Vim has two modes: an ''EDIT'' mode and a ''COMMAND'' mode. The lesson explains it all, but bear in mind that the behaviour of the editor changes dramatically depending on which mode you are in. * Go through all lessons (it will take you a hour or so). I learnt how to use Vim through this tutor. = Old stuff: 2013-14 = == Lecture notes and homework for 2013 == The lecture notes for the Electronic Structure Methods course are here. * [[attachment:elecstruc_lec1_intro_psi_var_huckel.pdf|Lecture 1]]: Overview, Properties of the exact wavefunction, exact results, variational methods, Huckel theory. We have not covered all topics in these notes! {{{#!wiki important Important Homework: * Attempt the questions posed in the lecture notes. * Mathematical Review, Ch 1 of //Modern Quantum Chemistry// by Szabo & Ostlund. This chapter covers a number of results we need to have at our funger-tips for the rest of this course. Please go through this chapter and solve as many problems as you can. We will cover this in Lecture 2. }}} * [[attachment:elecstruc_lec2_recap_intro_hf_virial_huckel_problems.pdf|Lecture 2]]: Recap of some of the results we proved last time. The Hellmann-Feynmann theorem. Problems (not all in the lecture notes). We have not covered all the material in this lecture. {{{#!wiki important Important Homework: * Please go over the proof of the Hellmann-Feynmann theorem and try the proof of the extension of this theorem to variational wavefunctions. * Please complete all Szabo & Ostlund problems I set the last time. This is important! }}} * [[attachment:elecstruc_lec3_h2_minimal_basis.pdf|Lecture 3]]: We started off by having anothre look at the Hellmann-Feynmann theorem: how it can be used to calculate molecular propreties using the method of finite-differences, and how it can be generalised for varitional wavefunctions. Next we proved the molecular virial theorem. Then we developed 1-electron and N-electron wavefunctions. We focused on the H2 system in a minimal basis set and demonstrated how to calculate matrix elements of the 2-electron wavefunction. We finished by writing out the energy expression for a single determinant. {{{#!wiki important Important Homework: * Virial Theorem: Prove that $\psi_{\alpha}$ is normalized. * Virial Theorem: We proved the identity for $\langle \psi_{\alpha} | T | \psi_{\alpha} \rangle$. Use the techniques used here to prove the analogous identity for $\langle \psi_{\alpha} | V(R) | \psi_{\alpha} \rangle$. * Szabo & Ostlund: Exercises 2.3, 2.4, 2.5. * S & O: Please read 2.2.3 carefully, in particular the last bit on page 52 & 53 about the //exchange hole//. * S & O: In preparation for next week's lecture, please read 2.2.5 on minimal basis H2, 2.2.6 on Excited Determinants, and 2.3.1 on Matrix Elements. }}} {{{#!wiki warning Warning Remember that while the homework isn't marked, I will expect you to present your solutions in class! }}} * [[attachment:elecstruc_lec3_h2_minimal_basis.pdf|Lecture 4]]: '''Updated on 12 Feb 5pm. You may need to clear your browser's cache to see the new version.'''Here we will complete the H$_2$ problem using RHF, CI and (as homework) UHF wavefunctions. Also, in the lab we will replicate these calculations using NWChem. {{{#!wiki important Important The lecture notes contain a *lot* of questions and one very long problem at the end. These must be completed before next week and turned in to me at the next lecture. This is very important as these questions, particular the last on on UHF theory, cover pretty much everything we have done so far. If you can do them satisfactorially, you will have really understood the lecture material. }}} {{{#!wiki important Important Also, please attempt the [[ajm/teaching/electronic-structure/practical2|laboratory homework]]. This exercise very nicely complements what we covered in the lecture. It will also give you good experience using NWChem. I've modified the setup instructions based on what we learnt today. I've been told that the network probems we experienced today are because we have a pathetic network here (don't ask why). You may find that your connection from another machine will be better. If the problems persist please let me know and please describe the problem in detail. }}} * [[attachment:elecstruc_lec4_hf.pdf|Lectures 5 & 6]]: Hartree-Fock and Basis sets. Detailed derivation of the Fock equations, Koopman's and Brillouin's theorems, and basis sets. {{{#!wiki important Important There are questions included in the lecture notes. Please solve these and turn in the solutions next week. Please '''READ''' the lecture notes as well as sections 3.1, 3.2 and 3.3 in Szabo & Ostlund. If you want to learn more about basis sets, S&O discuss this topic in section 3.5. You should also complete the laboratory homework - in particular the effect of method (SCF and MP2) and basis set on the equilibrium geometry of H$_2$O. I'd like you to include your findings in the submitted homework. If you are still struggling with '''vim''' and the '''Linux Bash shell''' please go back and review the material. You should be fairly confident with using the Linux shell when we start on the practicals for the report next week. }}} * [[attachment:elecstruc_lec5_posthf.pdf|Lecture 7]]: Post-HF methods: CI, CC, MP2 {{{#!wiki important Important Homework: As usual there are problems included in the lecture notes. Please do these and submit them to me. I want to see clearer answers with a sensible discussion of the results or problems encountered. This is more for your benefit, but also for mine! Please work through the treatment of time-independent perturbation theory in Szabo & Ostund Sec. 6.1. This is very important, particularly if you are not too comfortable with the theory. Reading assignments from Szabo & Ostlund: * CI: ('''NOT OPTIONAL!!!''') Ch. 4: Secs. 4.1, 4.1.1. Sec 4.6 deals with size-consistency. * CC: (optional) Sec. 5.2.1 * MP2: ('''NOT OPTIONAL''') Ch 6: secs 6.1 and 6.5 '''Problem: CI size-consistency''': It is possible to analytically see how CID is not a size-consistent theory by solving for the correlation energy of the H2...H2 system at infinite separation. This is done on pages 262 to 266 of Szabo & Ostlund. Please solve this problem in detail (following S&O) and submit it to me. Make sure you understand all steps and if you do not, make it clear in your solution. }}} * [[attachment:elecstruc_lec6_dft_1.pdf|Lecture 8]]: Density functional theory (DFT). We have covered the two Hohenberg-Kohn theorems and Thomas-Fermi-Dirac theory. '''This file has been updated''' Please download the new version! * [[attachment:elecstruc_lec7_dft_2.pdf|Lecture 9]]: In this last lecture we investigate two of the biggest failings of DFT and see how these problems can be (partially) fixed. Please read [[attachment:functionals_svetitsky.pdf|this tutorial on functional derivatives by Svetitsky]]. We will need work through the basics of functional differentiation in the class, but this will help you recap what you have already covered in Mathematical Method. == Grad Modelling Course == These are old lecture notes. Please don't use these. * Lecture 1: [[attachment:modelling-lec1-hf.pdf|Introduction & Hartree-Fock]] * Lecture 2: [[attachment:modelling-lec2-basis-corr.pdf|Basis sets and Post-HF Methods]] == Exercises == You should complete the following exercises: 1. James' Linux tutorial and associated exercises 1. VIM tutorial (unless you use Emacs) Think you've got the hang of things, then try this... Get into your Linux shell. You should have a window with a prompt like ''$''. Commands will be typed at the prompt. After every command you hit ''''. We will take that for granted. Go to your home directory by typing ''cd'' without any arguments. Don't forget the '''': {{{ $ cd }}} Now make a directory in which we will work on the exercises for this course. Let's call it //Electronic_Structure//. If that is too long a name, choose something shorter, like, say, //AbInitio//. We do this using the ''mkdir'' command: {{{ $ mkdir AbInitio }}} To see what's in your directory use the ''ls'' command: {{{ $ ls AbInitio ... }}} In addition to the director //AbInitio// , other files/directories will be displayed. Now go into this directory: {{{ $ cd AbInitio }}} and create a file called //h-sto3g.nw// that contains the following {{{ Memory 500 mb charge 0 Geometry units bohr H 0.0 0.0 0.0 End Basis "ao basis" spherical H library STO-3G End Title "H STO-3G " scf uhf Doublet end task scf energy }}} If you have done this correctly then the ''ls'' command should result in: {{{ $ ls h-sto3g.nw }}} and if you use ''cat'' or ''less'' you should see: {{{ $ less Memory 500 mb charge 0 Geometry units bohr H 0.0 0.0 0.0 End ...etc etc etc... }}} Now do the following: - Copy this file to a file called //h-aTZ.nw// - Edit this file to change all references to //STO-3G// (this is the name of a basis set) to //aug-cc-pVTZ// (the name of a bigger and better basis set). - Save the result. - Does it look like [[ajm/teaching/electronic-structure/examples/h-atz.nw|this]]? We will use this example in a later lab session. It is the //NWChem// command file for an Hartree-Fock calculation on the hydrogen atom. = Previous Year's work = 6th March 2015: Work due on 11th March Solve questions included in lecture notes on HF theory. You will find these on pages 12, 24, 32, 34, 41, 44, 51, 80. These page numbers refer to the updated lecture notes. Complete the calculations for the Ar2 system. You will need to calculate and plot (nicely!) the interaction energy for this system using HF and MP2 with the cc-pVxZ and aug-cc-pVxZ (x = D,T,Q) basis sets. Do this with the CP correction. How would you calculate the corresponding energies without the CP? Can you see how this can be done without any additional calculations, using the above results and some energies you had calculated last week? Work out how this is possible and calculate and plot the no-CP interaction energies. 18th Feb 2015 : Homework due on 25th Feb Finish the UHF problem! From lecture notes on Exact Results: Show that the Hellmann-Feynman theorem is valid for linear variational wavefunctions. From lecture notes on HF theory: Solve questions on page 12. 12th Feb 2015 : Homework due on 18th of Feb Derive for yourself the one electron and two electron densities shown on page 31 of the lecture notes. You may do this for the g2 state only. Questions in lecture notes on pages 35, 36, 37, 43 (optional), 48. CI: Fill in the gaps in the derivation of the CI solution for H2. Present the full derivation and show in detail how CI wavefunction for H2 dissociates to two H atoms. UHF: at the very end of the lecture notes is an outline of the UHF problem for H2. The full derivation is in Szabo & Ostlund in sec. 3.8.7. This problem is long and may be submitted the week after. Parts 1, 2 and 3 are due next week. Part 4 may be submitted the week after. I'd rather you solved this properly rather than in a hurry. Reading assignment for this week and the next: Chapter 5 in Molecular Electronic Structure Theory. We have derived most, but not all of this chapter. Read secs. 5.2 (you may skip 5.2.6 and 5.2.7), 5.3. In sec. 5.4 the discuss Hartree-Fock - see what you can make of it. Pay particular attention to sec. 5.6 where CI is discussed. Here they discuss truncated CI methods. It's not something we have covered in the lectures, but you will find it useful as it involves the idea of size extensivity. 5th Feb 2015: Homework due on Wed 11th Feb Watch the lecture I sent you last time! Complete the RHF H2 dissociation problem using NWChem. Make a plot of your results and submit your plot and data table to me. Calculate the energy of H- (as described on the Wiki) and verify that using RHF, E(H2) -> E(H) + 1/2 E(H-) Solve problems 2.8 and 2.9 from Szabo & Ostlund. One more problem to come up soon. 30 Jan 2015 : Homework due on 4th Feb Read sec. 2.1 and sec. 2.2 from Szabo & Ostlund Solve exercises 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, and 2.7 from S&O. Run NWChem and obtain outputs for all examples in Practical 1 (on the Wiki) Watch the lecture on HF theory. Pay particular attention to first half of the lecture. HF Theory 26 Jan 2015 : Homework due on the 28th of Jan Complete last week's homework!!! In addition, solve exercises 1.21 and 1.22 from Szabo & Ostlund. Make sure you can login to your accounts on Poset & Comanche. Also, you should get familiar with the basics of Linux and editing using VIM. 14 Jan 2015 : Homework due on the 21st of Jan. Solve question and problems included in the lecture notes up to and including the section on the electron-nuclear cusp Lecture: Youtube lecture Watch this lecture on the Born-Oppenheimer approximation, antisymmetry, and the variational principle. Here you will be introduced to Slater determinants. We will be looking into this next week. Answer the following questions based on this lecture and today's lecture: Why use the Born-Oppenheimer approximation? When do we expect it to fail? Discuss: Would an N-particle fermionic system have a higher or lower energy than an N-particle bosonic system? Why use Slater determinants as model wavefunctions for electronic systems? Szabo & Ostlund: Chapter 1: reading assignment. Read the entire chapter and solve the following problems: 1.3, 1.4, 1.6, 1.8, 1.12, 1.14, 1.17 Pay particular attention to your notation. We will use the Dirac notation a lot, and if you are not already familiar it with, use the exercises to understand it.