Presentation is loading. Please wait.

Presentation is loading. Please wait.

30 January 20014471 Solid-State Physics1 4471 Session 4: Numerical Simulations Introduction to simulations Potential functions and inter-atomic interactions.

Similar presentations


Presentation on theme: "30 January 20014471 Solid-State Physics1 4471 Session 4: Numerical Simulations Introduction to simulations Potential functions and inter-atomic interactions."— Presentation transcript:

1 30 January 20014471 Solid-State Physics1 4471 Session 4: Numerical Simulations Introduction to simulations Potential functions and inter-atomic interactions [Break] How to simulate on the atomic scale: Monte Carlo and Molecular Dynamics approaches Contact details: Andrew Fisher, UCL x1378, email andrew.fisher@ucl.ac.uk

2 30 January 20014471 Solid-State Physics2 The idea of (atomistic) simulation This course is about structureof materials and its relationship to properties The simulation approach: start from atoms and the interactions between them + Interactions

3 30 January 20014471 Solid-State Physics3 The idea of (atomistic) simulation Deduce the equilibrium structure of the system, and other properties: –Macroscopic variables (e.g. pressure, volume) –Measurable structural parameters for comparison with experiment (e.g. structure factor for a liquid, lattice vectors for a crystal) –Quantities not directly related to structure (e.g. electrical properties) + Interactions Properties e.g. S(q,  ), p(V,T),  Structure

4 30 January 20014471 Solid-State Physics4 Why do this? Point is not (just) to reproduce the results of experiments Aim to –Gain confidence to calculate quantities that cannot easily be measured –Gain understanding of relationships between physical quantities in situations too complicated to treat by analytical theory

5 30 January 20014471 Solid-State Physics5 Warnings Simulation can be deceptively easy to do; they are not a substitute for experiment or understanding Results are entirely dependent on –Choosing a good enough form for the interatomic interactions –Using a suitable simulation algorithm to extract the physics one is interested in Garbage in, garbage out!

6 30 January 20014471 Solid-State Physics6 Inter-atomic interactions Born-Oppenheimer approximation Variational Principle and Hellman-Feynman theorem Simple empirical potentials First-principles routes to interatomic interactions: Hartree- Fock and Density Functional Theory Modern approximations informed by first-principles results

7 30 January 20014471 Solid-State Physics7 The Born-Oppenheimer Approximation (1) In a condensed-phase system the electron distributions of the atoms overlap strongly The interatomic forces and potential energy are determined by the behaviour of the bonding electrons, which itself depends on the atomic structure Formalise this within the Born-Oppenheimer approximation: Full wavefunction Atomic (nuclear) positions Electron coordinates Electron wavefunction for given nuclear positions R Nuclear wavefunction

8 30 January 20014471 Solid-State Physics8 The Born-Oppenheimer Approximation (2) Nuclear wavefunction obeys the Schrödinger equation For many purposes (including everywhere in this lecture) it’s OK to replace this nuclear Schrödinger equation by its classical approximation, so the nuclei obey Newton’s classical laws of motion

9 30 January 20014471 Solid-State Physics9 The Born-Oppenheimer Approximation (3) The effective potential for the nuclei is determined by solving the electronic Schrödinger equation and then adding in the nuclear-nuclear repulsion: I,J label atoms with positions R I, R J i,j label electrons with positions r i, r j Nucleus-nucleus interaction Electron K.E. Electron-electron interactionElectron-nucleus interaction

10 30 January 20014471 Solid-State Physics10 The variational principle and the Hellman-Feynman theorem (1) In the vast majority of cases the system moves on the ground-state potential surface, for which the electronic energy is the minimum possible (subject to maintaining the normalization of the wavefunction):

11 30 January 20014471 Solid-State Physics11 The variational principle and the Hellman-Feynman theorem (2) For a general electron state  we would have to remember that the electronic energy depends on the state, as well as explicitly on the atomic positions In order to find the force on any particular atom, we would therefore have use the chain rule to write Explicit dependence of H on R Implicit dependence of E on R via the change in wavefunction as atoms move

12 30 January 20014471 Solid-State Physics12 The variational principle and the Hellman-Feynman theorem (3) For the ground state (or indeed any electronic eigenstate) the electronic energy is stationary with respect to variations in  We can therefore ignore the second term, to get Force just involves calculating the electric field at the nuclear site from the charge distribution of electrons Only part of electronic Hamiltonian depending explicitly on atomic positions Electric field produced by electron charge distribution

13 30 January 20014471 Solid-State Physics13 Simple empirical potentials Capture very simple interactions between atoms Usually work in situations where it is easy to identify individual `atomic’ charge distributions, and these do not vary strongly as the atoms move around We will look at three often used examples: –`Hard-sphere’ potentials –Models of rare-gas liquids and solids –Models of strongly ionic solids and liquids (point charges, shell model, and other polarizable ion models)

14 30 January 20014471 Solid-State Physics14 Hard-sphere potential Atoms modelled by hard spheres that never overlap: Not a realistic model for physical systems but considerable historical interest (was among first systems simulated, exhibits entropy-driven phase freezing) and useful as a reference point for thermodynamic integration (see later) V r Allowed region Forbidden region

15 30 January 20014471 Solid-State Physics15 Interactions of rare-gas atoms Rare-gas atoms have chemically-inert closed shells of electrons Dominant features are –Long-range attraction via Van der Waals forces –Sort-range replulsion from overlap of electron clouds Captured by potentials such as Lennard-Jones: R=  V=-  R=2 1/6  V R

16 30 January 20014471 Solid-State Physics16 Strongly ionic materials: point ion model Interactions driven by a transfer of electron(s) from one species to another, creating positively and negatively charged ions Point ion model: these ions interact with one another like point charges + - + + + + + + - - - -- -- +

17 30 January 20014471 Solid-State Physics17 Strongly ionic materials: point ion model (2) Unlike Lennard-Jones potential, potential at any given site is not dominated by the nearest neighbours Instead, must perform sum to infinity- this sum is not `absolutely convergent’ so the order of terms matters (corresponds to different terminations of the material) + - + + + + + + - - - -- -- +

18 30 January 20014471 Solid-State Physics18 Strongly ionic materials: shell model Next level of refinement: introduce a `shell’ which can move independently of the ion core Adjust position of `shell’ to minimise the local energy: corresponds to a dipole moment - Local electric fieldAtomic polarizability Core charge Xe Shell charge Ye Xe+Ye=Ze (full ion charge)

19 30 January 20014471 Solid-State Physics19 Strongly ionic materials - summary Shell and point-ion models work best for very highly ionic solids such as alkali halides (Group I + Group VII) For materials such as oxides there is more covalent character in the bonding Either introduce a complicated dependence of the polarizability on the environment, or treat the covalent bonding explicitly (e.g. by first-principles techniques)

20 30 January 20014471 Solid-State Physics20 ‘Ab initio’ approaches Choosing the right interatomic potential is a delicate and subtle business. Potentials that work in one environment (e.g. a perfect crystal) may fail in another (e.g. a defective or disordered material) + - + + + + + + - - - -- -- + + - + + + + + - - - -- -- + X

21 30 January 20014471 Solid-State Physics21 ‘Ab initio’ approaches - the ideal Aim to get round this by calculating electronic energy directly from the principles of quantum mechanics If done properly, such calculations will automatically be ‘transferable’, since they embody no information specific to a particular structure + - Assume some V(R)  (r) Deduce V eff (R)

22 30 January 20014471 Solid-State Physics22 ‘Ab initio’ approaches - the problem Need to solve the N-particle Schrödinger equation For one electron, might do this by expanding  in terms of a complete set of basis states {  }: For M basis states, there are M unknown coefficients {c  }

23 30 January 20014471 Solid-State Physics23 ‘Ab initio’ approaches - the problem But for N electrons, the wavefunction has to depend on all N variables Taking account of the Pauli exclusion principle, suitable N- electron basis functions are Slater determinants: The number of determinants (and hence of unknown expansion coefficients) increases very rapidly - as N-electron basis function 1-electron basis functions

24 30 January 20014471 Solid-State Physics24 ‘Ab initio’ approaches - the problem Example: consider a situation with 4 outer electrons per atom (e.g. carbon or silicon) and 8 basis functions per atom (e.g. s, p x, p y, p z with spin up and spin down) 8 electrons: number of coefficients needed is 12870 20 electrons: number of coefficients needed is 1.38  10 11 40 electrons: number of coefficients needed is 1.08  10 23 Continues to grow exponentially with system size

25 30 January 20014471 Solid-State Physics25 The Hartree-Fock Approximation Ideally we would like to recover a set of independent Schrödinger equations for N separate electrons (as treated in elementary solid-state physics courses!) One way of doing this: restrict the expansion of the wavefunction to a single optimized determinant One-particle states optimized to give lowest total energy

26 30 January 20014471 Solid-State Physics26 The Hartree-Fock Approximation This approach omits correlation between the electrons The one-electron orbitals are determined by an effective Schrödinger-like equation: Each individual  is a one-electron function, so need only N  M variational parameters (many fewer) ` Hartree potential’ - potential of classical electron charge distribution `Exchange potential’ - purely quantum, comes from Pauli principle Interaction with external potential (nuclei)

27 30 January 20014471 Solid-State Physics27 The Hartree-Fock Approximation Caution: the total electronic energy is not the sum of the Hartree-Fock eigenvalues (this would double-count the electron-electron interaction terms) The difficulty: the exchange term is quite difficult to evaluate since it is non-local Still have no account at all of correlation between electrons of opposite spin Solution to (some of) these difficulties: Density Functional Theory (Hohenberg and Kohn 1964; Nobel Prize 1999)

28 30 January 20014471 Solid-State Physics28 Density Functional Theory Energy of a system of electrons can (in principle) be written in a way that depends only on the electron charge density  (r) This is so because no two ground states for different potentials can have the same charge density Write total energy as K.E. of noninteracting particles at this density Interaction with external potential The rest! Interaction with Hartree potential

29 30 January 20014471 Solid-State Physics29 Density Functional Theory (2) Enables one to derive an exact set of one-electron equations Problem: all the nasty bits (including exchange) are now swept up into the exchange-correlation energy A simple approximation, the Local Density Approximation, is surprisingly good: approximate exchange-correlation energy per electron at each point by its value for a homogeneous electron gas of the same density

30 30 January 20014471 Solid-State Physics30 Simulation methods Static calculations Molecular dynamics Monte Carlo methods

31 30 January 20014471 Solid-State Physics31 Static methods Based on minimizing the energy as a function of the atomic configuration Appropriate when total energy dominates fluctuations (i.e. for solids, low temperatures) Tricky issues: –Avoiding getting `stuck’ in false energy minima –Finding efficient algorithms to cope with an energy surface that has very different slopes in different directions (e.g. a steep `valley’ with a shallow `bottom’) –Coping with long-range parts of the force –Indluing finite-temperature effects (expand potential about ground- state position, treat as collection of harmonic oscillators)

32 30 January 20014471 Solid-State Physics32 Molecular Dynamics (1) Basic idea: simply follow Newton’s equations of motion for the atoms Break time into discrete `steps’  t, compute forces on atoms from their positions at each timestep Evolve positions by, for example, Verlet algorithm......or the equivalent `velocity Verlet’ scheme

33 30 January 20014471 Solid-State Physics33 Molecular Dynamics (2) Follow the `trajectory’ and use it to sample the states of the system Assuming forces are conservative, the total energy will be conserved with time (to order (  t) 2 in the case of Verlet) So, the system samples the ‘microcanonical’ (constant- energy) thermodynamic ensemble, provided that the trajectory eventually passes through all states with a given energy Requires that there should be no conserved quantities in the dynamics apart from the total energy (ergodicity)

34 30 January 20014471 Solid-State Physics34 Molecular Dynamics (3) Refinements exist to allow simulations at – Constant temperature (an additional variable is connected to the system which acts as a ‘heat bath’) –Constant pressure (the volume of the system is allowed to fluctuate) –Constant stress (the shape, as well as the volume, of the system is allowed to fluctuate) Can be combined especially efficiently with ab initio density functional theory: electronic states are evolved continuously as the atoms are propagated, in order to keep the atomic forces (calculated by Hellman-Feynman) up to date

35 30 January 20014471 Solid-State Physics35 Monte Carlo Methods (1) For a system in thermal equilibrium, know the probability P that it should occupy any given microstate r: So in principle can find the thermodynamic average of any quantity by summing over all microstates: for example, for the energy,

36 30 January 20014471 Solid-State Physics36 Monte Carlo Methods (2) The catch: there are usually far too many microstates to evaluate this sum explicitly Example: suppose we have N atoms and we need to sample 10 positions of each atom to average properly. We need 10 N points to perform the whole average. The Monte Carlo method: replace the whole sum by a sample of a selected set of states

37 30 January 20014471 Solid-State Physics37 Monte Carlo sampling procedures (1) Could in principle select states completely at random (with uniform probability) - but this would very often pick a high-energy state with negligible probability of occurrence Instead, arrange that each state r is selected with a probability equal to its probability P r of appearing in thermal equilibrium, so more likely states appear more often Ideally would like the states to be drawn independently from this distribution; in practice this is very difficult because we do not know the partition function Z

38 30 January 20014471 Solid-State Physics38 Monte Carlo sampling procedures (2): Markov processes Generate a sequence of configurations via a Markov process: at each step generate a new configuration with a probability that depends only on the current configuration, not on the history For a stationary Markov process the transition probabilities W remain fixed with time Transition probability W(r  r’)

39 30 January 20014471 Solid-State Physics39 Monte Carlo sampling procedures (3): Detailed Balance Two important requirements for the Markov chain: –The microreversibility (or detailed balance) condition: –The accessibility condition: every configuration of the system must be accessible from every other in a finite number of steps (necessary to prevent the system becoming `trapped’ and never sampling parts of configuration space)

40 30 January 20014471 Solid-State Physics40 Monte Carlo sampling procedures (4) The Metropolis algorithm (Metropolis et al 1953): choose a new configuration from the old one by making some trial change in a way that treats the old and new configurations symmetrically (e.g. move one atom randomly within a sphere of selected radius) Trial Accept Reject rr’ r

41 30 January 20014471 Solid-State Physics41 Monte Carlo sampling procedures (5) Accept trial configuration as new configuration with probability Trial Accept Reject rr’ r

42 30 January 20014471 Solid-State Physics42 Making use of Monte Carlo To think about: given a sequence of configurations generated by the Metropolis algorithm, how would you find –The mean energy of the system? –An estimate for the statistical error in the energy? –The pair correlation function? –The heat capacity? –The free energy?


Download ppt "30 January 20014471 Solid-State Physics1 4471 Session 4: Numerical Simulations Introduction to simulations Potential functions and inter-atomic interactions."

Similar presentations


Ads by Google