The eggbox effect: converging the mesh cutoff Objectives - study the convergence of the energy and the forces with respect to the real space grid.

Slides:



Advertisements
Similar presentations
PHY126 Summer Session I, 2008 Most of information is available at:
Advertisements

Javier Junquera Exercises on basis set generation Convergence of the basis set with size.
Arc-length computation and arc-length parameterization
Javier Junquera Exercises on basis set generation Control of the range of the second-ς orbital: the split norm.
Javier Junquera Exercises on basis set generation 1. The default basis set.
Javier Junquera Exercises on basis set generation Control of the range: the energy shift.
Take-home postcard. Basis set: Atomic orbitals s p d f SIESTA: Strictly localized (zero beyond cut-off radius)
Crystal Structure Basics Downscaling/Upscaling from Atomic Level to Electrons Level.
The H 2 molecule without convergence studies Objectives: - the (pseudo)total energy - the bond length r HH Acknowledgment: exercise inspired on the first.
Modelling of Defects DFT and complementary methods
Quantum Theory of Solids
Thermodynamics of surface and interfaces
Systematics for realistic proyects: from quick & dirty to converged calculations José M. Soler and Alberto García.
Pseudopotentials and Basis Sets
Javier Junquera Code structure: calculation of matrix elements of H and S. Direct diagonalization José M. Soler = N  N N  1.
DFT – Practice Simple Molecules & Solids [based on Chapters 5 & 2, Sholl & Steckel] Input files Supercells Molecules Solids.
Introduction to Molecular Orbitals
Chapter 3 Electronic Structures
DFT Calculations Shaun Swanson.
PHY205 Ch14: Rotational Kin. and Moment of Inertial 1.Recall main points: Angular Variables Angular Variables and relation to linear quantities Kinetic.
Some Ideas Behind Finite Element Analysis
Expression of d-dpacing in lattice parameters
§5.6 §5.6 Tight-binding Tight-binding is first proposed in 1929 by Bloch. The primary idea is to use a linear combination of atomic orbitals as a set of.
Effects of Discretization P249 - Fall / /14 Dan Fulton.
1 Numerical geometry of non-rigid shapes Non-Euclidean Embedding Non-Euclidean Embedding Lecture 6 © Alexander & Michael Bronstein tosca.cs.technion.ac.il/book.
Javier Junquera Exercises on basis set generation Increasing the angular flexibility: polarization orbitals.
Philippe Ghosez Lattice dynamics Andrei Postnikov Javier Junquera.
Network for Computational Nanotechnology (NCN) Purdue, Norfolk State, Northwestern, MIT, Molecular Foundry, UC Berkeley, Univ. of Illinois, UTEP DFT Calculations.
Summarized by Soo-Jin Kim
Lectures Introduction to computational modelling and statistics1 Potential models2 Density Functional.
1 Scalar Properties, Static Correlations and Order Parameters What do we get out of a simulation? Static properties: pressure, specific heat, etc. Density.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : DFT Plane Wave Pseudopotential versus Other Approaches CASTEP Developers’
Javier Junquera Code structure: calculation of matrix elements of H and S. Direct diagonalization José M. Soler = N  N N  1.
1 CE 530 Molecular Simulation Lecture 17 Beyond Atoms: Simulating Molecules David A. Kofke Department of Chemical Engineering SUNY Buffalo
Calculation of matrix elements José M. Soler Universidad Autónoma de Madrid.
Finite Element Method.
PHY221 Ch14: Rotational Kin. and Moment of Inertial 1.Recall main points: Angular Variables Angular Variables and relation to linear quantities Kinetic.
- Compute and analyze the band structure of an ionic solid
Some ideas for common input/output formats for the MS codes Keisuke Hatada Dipartimento di Fisica, Università Camerino.
Chapter 10 Rotational Motion.
1 Complex Images k’k’ k”k” k0k0 -k0-k0 branch cut   k 0 pole C1C1 C0C0 from the Sommerfeld identity, the complex exponentials must be a function.
Time-dependent Schrodinger Equation Numerical solution of the time-independent equation is straightforward constant energy solutions do not require us.
Parametric Surfaces Define points on the surface in terms of two parameters Simplest case: bilinear interpolation s t s x(s,t)x(s,t) P 0,0 P 1,0 P 1,1.
Physics “Advanced Electronic Structure” Frozen Phonon and Linear Response Calcuations of Lattice Dynamics Contents: 1. Total Energies and Forces.
MODELING MATTER AT NANOSCALES 6.The theory of molecular orbitals for the description of nanosystems (part II) The density matrix.
Last hour: Electron Spin Triplet electrons “avoid each other”, the WF of the system goes to zero if the two electrons approach each other. Consequence:
Introduction to the SIESTA method SUMMER SCHOOL ON COMPUTATIONAL MATERIALS SCIENCE University of Illinois at Urbana-Champaign, June 13-23, 2005 Some technicalities.
Molecular dynamics (4) Treatment of long-range interactions Computing properties from simulation results.
Electric Potential.
©D.D. Johnson and D. Ceperley MSE485/PHY466/CSE485 1 Scalar Properties, Static Correlations and Order Parameters What do we get out of a simulation?
Plotting the charge density of bulk Si
Development of a GPU based PIC
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Testing Testing. Basic procedure to “validate” calculations CASTEP.
Lesson 3 Look at Homework Review Matrix Operations Transformations Translation as symmetry Lattice Types.
© copyright 2011 William A. Goddard III, all rights reservedCh121a-Goddard-L14 Periodic Boundary Methods and Applications: Ab-initio Quantum Mechanics.
Computational Physics (Lecture 11) PHY4061. Variation quantum Monte Carlo the approximate solution of the Hamiltonian Time Independent many-body Schrodinger’s.
Lesson 3 Look at Homework Review Matrix Operations Transformations Translation as symmetry Lattice Types.
ECE 383 / ME 442 Fall 2015 Kris Hauser
Computational Methods for Kinetic Processes in Plasma Physics
lattice Wannier functions
Integrated Computational Materials Engineering Education Calculation of Equation of State Using Density Functional Theory Mark Asta1, Katsuyo Thornton2,
Band structure of a cubic perovskite oxide:
Date of download: 11/13/2017 Copyright © ASME. All rights reserved.
Integrated Computational Materials Engineering Education Calculation of Equation of State Using Density Functional Theory Mark Asta1, Katsuyo Thornton2,
Scalar Properties, Static Correlations and Order Parameters
Do all the reading assignments.
The Nuts and Bolts of First-Principles Simulation
Integrated Computational Materials Engineering Education Calculation of Equation of State Using Density Functional Theory Mark Asta1, Katsuyo Thornton2,
Integrated Computational Materials Engineering Education Calculation of Equation of State Using Density Functional Theory Mark Asta1, Katsuyo Thornton2,
Orbitals, Basis Sets and Other Topics
Presentation transcript:

The eggbox effect: converging the mesh cutoff Objectives - study the convergence of the energy and the forces with respect to the real space grid.

System where the tests will be performed: bulk MgO (rocksalt structure) Simulation cell: Tetragonal 4 atoms/cell Instead of using the unit cell (FCC + 2 atoms of basis), the exercise will be more transparent if we use a conventional unit cell with orthogonal lattice vectors

Some of the integrals are computed in a three dimensional grid in real space Simulation cell: Tetragonal 4 atoms/cell Let us project the atomic position in the (x,z) plane x z y=0 y=0.5 Mg O

Three dimensional grid to compute Hartree, exchange correlation and neutral atom potentials Find all the atomic orbitals that do not vanish at a given grid point (in practice, interpolate the radial part from numerical tables) Once the density is known, we compute the charge density and the potentials EVERYTHING O(N)

Fineness of the grid controlled by a single parameter, the “MeshCutoff” E cut : maximum kinetic energy of the plane waves that can be represented in the grid without aliasing xx In the grid, we represent the density  grid cutoff not directly comparable with the plane wave cutoff to represent wave functions (Strictly speaking, the density requires a value four times larger) where is the grid interval

x z y=0 y=0.5 Mg O MeshCutOff = 100 Ry Grid of 18 x 18 x 30 points along the three lattice vectors Fineness of the grid controlled by a single parameter, the “MeshCutoff”

x z y=0 y=0.5 Mg O All the quantities should be invariant under translation as a whole, but the grid breaks translation symmetry. The grid integrals make the energy dependent on the position of the atoms relative to the grid Relative position can be controlled by the input variable: %block AtomicCoordinatesOrigin The origin is given in the same units as the atomic coordinates.

x z y=0 y=0.5 Mg O MeshCutOff = 100 Ry Grid of 18 x 18 x 30 points along the three lattice vectors Distance between consecutive points in the grid along z (in reduced coordinates): 1/30 The grid integrals make the energy dependent on the position of the atoms relative to the grid Let us compute the change in the energy and the forces when we displace rigidly all the atoms in the unit cell from one point of the grid to the next one (let us assume, in this case, in 10 steps) %block AtomicCoordinatesOrigin (1/30)/10 %endblock AtomicCoordinatesOrigin

%block AtomicCoordinatesOrigin /30/10 %endblock AtomicCoordinatesOrigin x z y=0 y=0.5 Mg O The grid integrals make the energy dependent on the position of the atoms relative to the grid

%block AtomicCoordinatesOrigin /30/10 %endblock AtomicCoordinatesOrigin x z y=0 y=0.5 Mg O The grid integrals make the energy dependent on the position of the atoms relative to the grid

%block AtomicCoordinatesOrigin /30/10 %endblock AtomicCoordinatesOrigin x z y=0 y=0.5 Mg O The grid integrals make the energy dependent on the position of the atoms relative to the grid

%block AtomicCoordinatesOrigin /30/10 %endblock AtomicCoordinatesOrigin x z y=0 y=0.5 Mg O The grid integrals make the energy dependent on the position of the atoms relative to the grid Eggbox effect

MeshCutOff = 100 Ry Grid 18 x 18 x 30 MeshCutOff = 200 Ry Grid 30 x 30 x 36 The war against the eggbox… Solution 1: Increase the MeshCutoff Extra cost in: CPU time Memory

The war against the eggbox… Solution 2: the Grid-cell sampling Achieve SCF for a given MeshCutoff and relative positions of the atoms with respect the grid points. Freeze in the Density Matrix. Translate the whole system rigidly by a set of points in a finer mesh. Recalculate energy, forces, and stresses in the shifted configuration, using the Density Matrix frozen before (that is, the shifted calculations are non self-consistent). Take the average of the energies, forces, and stresses between all the sampled points. No extra cost in memory. It is done only at the end of the SCF iteration, for fixed DM. Only moderate cost in CPU time.

The war against the eggbox… Solution 2: the Grid-cell sampling %block GridCellSampling %endblock GridCellSampling

The war against the eggbox… Solution 3: filtering the radial functions Computer Physics Communications 180, 1134 (2009)

The war against the eggbox… Solution 3: filtering the radial functions

Filtering the radial functions produces, for this system, similar results than the grid cell sampling, although with a reduction in the CPU time A fine comparison between the two methods, would require the study of the convergence of a relevant quantity (for instance, the frequence of a phonon) with respect the cutoff, evaluating the computational cost of each method