Introduction to first-principles modelling and CASTEP

Similar documents
Electronic structure, plane waves and pseudopotentials

Density Functional Theory

Fundamentals and applications of Density Functional Theory Astrid Marthinsen PhD candidate, Department of Materials Science and Engineering

Pseudo potential exercises

Geometry Optimisation

Project: Vibration of Diatomic Molecules

Physics 541: Condensed Matter Physics

VALENCE Hilary Term 2018

DFT: Exchange-Correlation

Intro to ab initio methods

DFT / SIESTA algorithms

Three Most Important Topics (MIT) Today

Density Functional Theory

Introduction to Parallelism in CASTEP

References. Documentation Manuals Tutorials Publications

Key concepts in Density Functional Theory (I) Silvana Botti

Practical Guide to Density Functional Theory (DFT)

Example questions for Molecular modelling (Level 4) Dr. Adrian Mulholland

Band Structure Calculations; Electronic and Optical Properties

Algorithms and Computational Aspects of DFT Calculations

Practical calculations using first-principles QM Convergence, convergence, convergence

The electronic structure of materials 2 - DFT

Introduction to Electronic Structure Theory

3: Many electrons. Orbital symmetries. l =2 1. m l

Lecture 4: Basic elements of band theory

Ch 125a Problem Set 1

Computational Methods. Chem 561

Self Consistent Cycle

CE 530 Molecular Simulation

Structure of Cement Phases from ab initio Modeling Crystalline C-S-HC

Pseudopotentials for hybrid density functionals and SCAN

DENSITY FUNCTIONAL THEORY FOR NON-THEORISTS JOHN P. PERDEW DEPARTMENTS OF PHYSICS AND CHEMISTRY TEMPLE UNIVERSITY

Geometry Optimisation with CASTEP

Electrochemistry project, Chemistry Department, November Ab-initio Molecular Dynamics Simulation

Electron States of Diatomic Molecules

1. Hydrogen atom in a box

Models in condensed matter physics

Atoms, Molecules and Solids (selected topics)

Bonding in solids The interaction of electrons in neighboring atoms of a solid serves the very important function of holding the crystal together.

Quantum Mechanical Simulations

An Introduction to Quantum Chemistry and Potential Energy Surfaces. Benjamin G. Levine

An Example of Using CASTEP-NMR from the beginning

(1/2) M α 2 α, ˆTe = i. 1 r i r j, ˆV NN = α>β

Chapter 3. The (L)APW+lo Method. 3.1 Choosing A Basis Set

Introduction to Density Functional Theory

13. Basic Nuclear Properties

Lecture 6. Tight-binding model

The Plane-Wave Pseudopotential Method

Quantum Condensed Matter Physics

23 The Born-Oppenheimer approximation, the Many Electron Hamiltonian and the molecular Schrödinger Equation M I

Introduction to Density Functional Theory with Applications to Graphene Branislav K. Nikolić

Integrated Computational Materials Engineering Education

Quantum Condensed Matter Physics Lecture 4

Chemistry 3502/4502. Final Exam Part I. May 14, 2005

Introduction to Computational Chemistry

Welcome to the Solid State

1 Density functional theory (DFT)

Ab Initio modelling of structural and electronic. Matt Probert University of York

Chemistry 3502/4502. Final Exam Part I. May 14, 2005

Lecture contents. A few concepts from Quantum Mechanics. Tight-binding model Solid state physics review

DFT calculations of NMR indirect spin spin coupling constants

Key concepts in Density Functional Theory

1. Thomas-Fermi method

Electronic energy optimisation in ONETEP

Ab initio calculations for potential energy surfaces. D. Talbi GRAAL- Montpellier

20 The Hydrogen Atom. Ze2 r R (20.1) H( r, R) = h2 2m 2 r h2 2M 2 R

Electronic Structure Methodology 1

MODERN ELECTRONIC STRUCTURE THEORY: Basis Sets

CHEM6085: Density Functional Theory

Charge Analysis: Atoms in Molecules

Electrons in periodic potential

Electronic structure of solids: basic concepts and methods

NH 3 H 2 O N 2. Why do they make chemical bonds? Molecular Orbitals

The Overhauser Instability

2. The Schrödinger equation for one-particle problems. 5. Atoms and the periodic table of chemical elements

Before we start: Important setup of your Computer

r R A 1 r R B + 1 ψ(r) = αψ A (r)+βψ B (r) (5) where we assume that ψ A and ψ B are ground states: ψ A (r) = π 1/2 e r R A ψ B (r) = π 1/2 e r R B.

CHEMISTRY Topic #1: Bonding What Holds Atoms Together? Spring 2012 Dr. Susan Lait

Density Functional Theory (DFT)

1.1 The Fundamental Chemistry of life

How to run SIESTA. Introduction to input & output files

ECE 487 Lecture 6 : Time-Dependent Quantum Mechanics I Class Outline:

Earth Solid Earth Rocks Minerals Atoms. How to make a mineral from the start of atoms?

Exchange Correlation Functional Investigation of RT-TDDFT on a Sodium Chloride. Dimer. Philip Straughn

Session 1. Introduction to Computational Chemistry. Computational (chemistry education) and/or (Computational chemistry) education

Introduction to density functional perturbation theory for lattice dynamics

CLIMBING THE LADDER OF DENSITY FUNCTIONAL APPROXIMATIONS JOHN P. PERDEW DEPARTMENT OF PHYSICS TEMPLE UNIVERSITY PHILADELPHIA, PA 19122

Lecture 10. Born-Oppenheimer approximation LCAO-MO application to H + The potential energy surface MOs for diatomic molecules. NC State University

1. For the case of the harmonic oscillator, the potential energy is quadratic and hence the total Hamiltonian looks like: d 2 H = h2

Electronic Structure Theory for Periodic Systems: The Concepts. Christian Ratsch

Structural Bioinformatics (C3210) Molecular Mechanics

Multi-Scale Modeling from First Principles

Phonons and lattice dynamics

Table of Contents. Table of Contents Spin-orbit splitting of semiconductor band structures

GIPAW: A solid-state theory for NMR

On-the-fly pseudopotential generation in CASTEP

Machine learning the Born-Oppenheimer potential energy surface: from molecules to materials. Gábor Csányi Engineering Laboratory

Orbital approximation

Geometry Optimization

Pseudopotential generation and test by the ld1.x atomic code: an introduction

Transcription:

to first-principles modelling and Phil Hasnip to +

Atomistic Simulations If we know what the bonding in a material is beforehand, then we can often find good expressions for the forces between atoms, e.g. Ionic electrostatic potentials Covalent directional potentials, e.g. Stillinger-Weber Metallic Bond Order Potentials, EAM... Van der Waals Born-Mayer, Lennard-Jones... These potentials can do a good job of computing the mechanical properties of materials.

Atomistic Simulations These forcefield potentials do have s: Usually parameterised for bulk equilibrium behaviour Parameterised for particular class of materials Cannot handle bond breaking or formation Cannot provide electronic information, so no predictions of Resistance Thermal conductivity Colour

First Principles Simulations We want to be able to predict what atoms will do from first principles, without needing to know what they ll do beforehand! We can do this using quantum mechanics. Unfortunately, quantum mechanics is difficult!

Electronic Structure Simulations We want to solve the Schrödinger equation. For 1-particle it s: ) ( 2 2m 2 + ˆV Ψ (r, t) Ψ (r, t) = i t Now we just have to solve it for a real material. How hard can it be?

The horror... the horror... For M nuclei and N electrons: { ( 2 2 n1 +... + 2 nm, 2 e1 2 m 1 m M m + ˆV } (R 1,..., R M, r 1,..., r N, t) How big are M and N? +... + 2 en m ) Ψ (R 1,..., R M, r 1,..., r N, t) = i Ψ (R 1,..., R M, r 1,..., r N, t) t

The horror... the horror... For M nuclei and N electrons: { ( 2 2 n1 +... + 2 nm, 2 e1 2 m 1 m M m + ˆV } (R 1,..., R M, r 1,..., r N, t) +... + 2 en m ) Ψ (R 1,..., R M, r 1,..., r N, t) = i Ψ (R 1,..., R M, r 1,..., r N, t) t How big are M and N? For a few grams of material: M 100, 000, 000, 000, 000, 000, 000, 000 N 1000, 000, 000, 000, 000, 000, 000, 000

The horror... the horror... For M nuclei and N electrons: { ( 2 2 n1 +... + 2 nm, 2 e1 2 m 1 m M m + ˆV } (R 1,..., R M, r 1,..., r N, t) +... + 2 en m ) Ψ (R 1,..., R M, r 1,..., r N, t) = i Ψ (R 1,..., R M, r 1,..., r N, t) t How big are M and N? For a few grams of material: M 100, 000, 000, 000, 000, 000, 000, 000 N 1000, 000, 000, 000, 000, 000, 000, 000 Oh dear.

Electronic Structure Simulations How can we make quantum mechanics easier for ourselves?

Electronic Structure Simulations How can we make quantum mechanics easier for ourselves? Only use QM for the electrons

Electronic Structure Simulations How can we make quantum mechanics easier for ourselves? Only use QM for the electrons Concentrate on the groundstate

Electronic Structure Simulations How can we make quantum mechanics easier for ourselves? Only use QM for the electrons Concentrate on the groundstate Exploit periodicity of crystals

Electronic Structure Simulations How can we make quantum mechanics easier for ourselves? Only use QM for the electrons Concentrate on the groundstate Exploit periodicity of crystals Get a computer to do it

Electronic Structure Simulations How can we make quantum mechanics easier for ourselves? Only use QM for the electrons Concentrate on the groundstate Exploit periodicity of crystals Get a computer to do it

QM for the electrons Nuclei are heavy, slow and boring no QM for nuclei Electrons are light, quick and interesting Nuclei appear static No explicit time-dependence for electrons This is the Born-Oppenheimer approximation. Ψ (R 1,..., R M, r 1,..., r N, t) ψ (r 1,..., r N ) Now we can solve the time-independent Schrödinger equation.

Electronic Structure Simulations { 2 ( ) } 2 1 2m +... + 2 N + ˆV (R 1,..., R M, r 1,..., r N ) ψ (r 1,..., r N ) = Eψ (r 1,..., r N ) Hmm, looks a bit like an eigenvalue... Still have N 10 23 though.

Electronic Structure Simulations How can we make quantum mechanics easier for ourselves? Only use QM for the electrons Concentrate on the groundstate Exploit periodicity of crystals Get a computer to do it

Concentrate on the groundstate Materials properties are dominated by the groundstate For the groundstate we can use a different form of QM Density Functional Theory

Density Functional Theory The groundstate energy E and density ρ (r) of electrons are exactly the same as those of non-interacting particles in a specially modified potential.

Density Functional Theory Solve N non-interacting Schrödinger equations: } { 2 2m 2 + V [ρ] (r) ψ j (r) = ɛ j ψ j (r) V [ρ] is a density functional. ρ(r) = N ψ j (r) 2 j=1 We don t know V [ρ] exactly, but there are reasonable approximations available.

Density Functional Theory We know the classical contributions to V [ρ], e.g. E H [ρ] (r) = 1 ρ (r) ρ (r ) 2 r r but what about QM exchange and electron correlation? We have to approximate this exchange-correlation functional: Local density approximation (LDA) Tends to over-bind. In your param file use xc_functional : LDA Generalised gradient approximations (GGAs) PBE is the most popular. Tends to under-bind. In your param file use xc_functional : PBE These approximations do not handle dynamic correlation well, e.g. no van der Waal s or Cooper pairs...

The story so far... Started with time-dependent 10 23 -electron-nuclear wavefunction Born-Oppenheimer approximation time-independent, 10 23 -electron wavefunction 10 23 1-electron wavefunctions

Electronic Structure Simulations How can we make quantum mechanics easier for ourselves? Only use QM for the electrons Concentrate on the groundstate Exploit periodicity of crystals Get a computer to do it

Crystals and Unit Cells In the solid state, most materials like to have their atoms arranged in some kind of regular, repeating pattern, e.g.

Crystals and Unit Cells In the solid state, most materials like to have their atoms arranged in some kind of regular, repeating pattern, e.g.

If the nuclei are arranged in a periodically repeating pattern, their potential acting on the electrons must also be periodic. where L is any lattice vector. V (r + L) = V (r) What does this mean for the density and wavefunction?

If the potential is periodic, then so is the density: ρ(r + L) = ρ(r) What about the wavefunction?

If the potential is periodic, then so is the density: ρ(r + L) = ρ(r) What about the wavefunction? ρ(r) = ψ(r) 2 i.e. if ρ(r) is periodic, so is the magnitude of the wavefunction. Remember wavefunctions are complex; their magnitude is periodic, but their phase can be anything.

theorem: in a periodic potential, the density has the same periodicity. The possible wavefunctions are all quasi-periodic : ψ k (r) = e ik.r u k (r), where u k (r + L) = u k (r), and e ik.r is an arbitrary phase factor.

Brillouin zone sampling There are solutions for any k general solution is integral over Brillouin zone. We approximate this integral by a sum over discrete k; these k-points form a regular 3D grid in reciprocal space. In your cell file use one of: kpoint_mp_grid 5 5 5 kpoint_mp_spacing 0.04 Always need to ensure we have enough k-points to approximate the integral well.

k-point convergence

Exploiting periodicity Only compute ψ j (r) and ρ(r) in a single unit cell No longer have 10 23 wavefunctions, more like 10 2 Now computing energy per unit cell In fact because we ve exploited the periodicity, in some ways we re now calculating for an infinite number of electrons!

Electronic Structure Simulations How can we make quantum mechanics easier for ourselves? Only use QM for the electrons Concentrate on the groundstate Exploit periodicity of crystals Get a computer to do it

Basis sets We need to choose a suitable basis set to represent our wavefunctions, but what should we choose... Points on a grid? Polynomials? Gaussians? Atomic orbitals? None of these reflect the periodicity of our.

Since ψ(r) is periodic, we express it as a 3D Fourier series ψ(r) = G c G e ig.r where c G are complex Fourier coefficients, and the sum is over all wavevectors (spatial frequencies) with the right periodicity. Each ψ is now a vector of coefficients c G.

Cut-off Energy e ig.r is a plane-wave travelling perpendicular to G There are an infinite number of allowed G As G, c G 0 can truncate the Fourier expansion safely In your param file: cut_off_energy : 420 ev

Cut-off Energy

An Eigenvalue Problem } { 2 2m 2 + V [ρ] (r) ψ j (r) = ɛ j ψ j (r) ψ j is a vector of num_pw Fourier coefficients The {...} is a num_pw num_pw matrix just an eigenvalue! Hψ j = ɛ j ψ j

A Large Eigenvalue Problem Solve using the variational principle: The groundstate energy E 0 is the lowest possible energy Any wavefunction has energy E E 0 guess a wavefunction ψ (c G ) compute E = ψ Hψ tweak c G to lower E When we can t lower E any more, ψ is the groundstate!

Steepest Descent Diagonalisation Starting with ψ j, compute ɛ j δɛ j Compute the gradient δψ j This is the change to c G that increases ɛ j quickest We want to decrease ɛ j, so use δɛ j. δψ j Make a new guess eigenstate, ψ new j = ψ j λ δɛ j δψ j Vary λ until we ve found the lowest ɛ j in this direction. This procedure is often called a line search. There are better methods than steepest descent, e.g. conjugate gradients.

Finding the Groundstate

Sample output

Valence electrons and pseudopotentials Core electrons do not affect material s properties. Compute core electronic states for isolated atom Treat nucleus and core electrons as single ion replace nuclear potential with ionic pseudopotential. In your cell file: %block species_pot Co Co_00.usp Mn Mn_00.usp Si Si_00.usp %endblock species_pot

Fame and fortune Now have all the tools we need Can find solve eq. for lowest N eigenstates get energy and electron density Can now predict: Crystal and molecular structure Bond breaking and formation IR spectra Reactivities Colour, X-ray absorption, NMR spectra... and much more!

Predictive materials simulations need QM calculations reduces QM to a large, simple eigenvalue Use periodicity and pseudopotentials to improve speed Need to converge wrt k-points and cut-off energy With these tools we can predict a vast range of properties for all kinds of materials and chemicals.

cell file Your simulation system; important keywords are: Lattice %block lattice_abc 2.4 2.4 3.5 90 90 120 %endblock lattice_abc or specify fully (as row vectors) %block lattice_cart 1.2000000-2.0784610 0.0000000 1.2000000 2.0784610 0.0000000 0.0000000 0.0000000 3.0000000 %endblock lattice_cart

cell file Atomic positions %block positions_frac C 0.000000 0.00000 0.5 C 0.333333 0.66667 0.5 %endblock positions_frac (or %block positions_abs for absolute Cartesian coordinates; length units specified on 1st line) Pseudopotentials %block species_pot C C_00.recpot %endblock species_pot

cell file k-points kpoint_mp_grid nkx nky nkz or kpoint_mp_spacing k-dist unit or %block kpoint_mp_list kx ky kz weight %endblock kpoint_mp_list

cell file Symmetry symmetry_generate snap_to_symmetry Geometry optimisation fix_all_ions : false Do not fix the ionic positions. fix_all_cell : false Do not fix the cell lattice parameters.

param file What you want to do. Important keywords are: Task task: energy task: geometryoptimisation task: elnes Calculation spin_polarized : true nextra_bands : 25 Approximations xc_functional : lda cut_off_energy : 500 ev

More information http://www.castep.org Lots of information including talks, tutorials and documentation. http://www.jiscmail.ac.uk/lists/.html The email list (website includes archives). castep -help <castep keyword> Returns information about that particular keyword (if it exists). castep -help search <any word> Searches the keyword descriptions for all occurrences of the word.