The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December 2001 10: Testing Testing. Basic procedure to “validate” calculations CASTEP.

Slides:



Advertisements
Similar presentations
Introductory Circuit Analysis Robert L. Boylestad
Advertisements

Denise Sakai Troxell (2000) Handling Some of the Problems Encountered When Using Excel Solver for Microsoft Excel 2000.
Take-home postcard. Basis set: Atomic orbitals s p d f SIESTA: Strictly localized (zero beyond cut-off radius)
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
Introduction to PAW method
Systematics for realistic proyects: from quick & dirty to converged calculations José M. Soler and Alberto García.
20_01fig_PChem.jpg Hydrogen Atom M m r Potential Energy + Kinetic Energy R C.
Factors Effecting Reaction Rate. Collision Theory In order to react molecules and atoms must touch each other. They must hit each other hard enough to.
CHE Inorganic, Physical & Solid State Chemistry Advanced Quantum Chemistry: lecture 4 Rob Jackson LJ1.16,
DFT – Practice Simple Molecules & Solids [based on Chapters 5 & 2, Sholl & Steckel] Input files Supercells Molecules Solids.
Molecular Quantum Mechanics
Mesh, Loads & Boundary conditions CAD Course © Dr Moudar Zgoul,
DFT Calculations Shaun Swanson.
The Nuts and Bolts of First-Principles Simulation
Convergence with respect the number of k-points: bulk BaTiO 3 Objectives - study the convergence of the different phases of bulk BaTiO 3 with respect the.
Meeting 31, April 7 th Theory: ZnTe, ZnSe dispersion curves.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
The Nuts and Bolts of First-Principles Simulation Lecture 16: DFT for Metallic Systems CASTEP Developers’ Group with support from the ESF  k Network Durham,
20_01fig_PChem.jpg Hydrogen Atom M m r Potential Energy + Kinetic Energy R C.
Computing lattice constant, bulk modulus and equilibrium energies of solids Bulk Si Diamond structure.
4. Modeling 3D-periodic systems Cut-off radii, charges groups Ewald summation Growth units, bonds, attachment energy Predicting crystal structures.
The Nuts and Bolts of First-Principles Simulation
PETE 603 Lecture Session #29 Thursday, 7/29/ Iterative Solution Methods Older methods, such as PSOR, and LSOR require user supplied iteration.
CS Bayesian Learning1 Bayesian Learning. CS Bayesian Learning2 States, causes, hypotheses. Observations, effect, data. We need to reconcile.
MECHANISMS OF HEAT TRANSFER
MASTANI 2014 DAY 2 – exercise 3 scf and band structure calculations for Cu (metal) Madhura Marathe No input files available, but should be generated for.
Network for Computational Nanotechnology (NCN) Purdue, Norfolk State, Northwestern, MIT, Molecular Foundry, UC Berkeley, Univ. of Illinois, UTEP DFT Calculations.
Lectures Introduction to computational modelling and statistics1 Potential models2 Density Functional.
Practical quantum Monte Carlo calculations: QWalk
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Is it running properly? CASTEP Developers’ Group with support from.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : DFT Plane Wave Pseudopotential versus Other Approaches CASTEP Developers’
PROBING ELECTRONIC STRURUCTURE AT ATOMIC SCALE B.G. Shin.
The H 2 O molecule: converging the size of the simulation box Objectives - study the convergence of the properties with the size of the unit cell.
Part 1: Basic Principle of Measurements
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December 2001 Lecture 18: First Look at Molecular Dynamics CASTEP Developers’ Group.
Phase diagram calculation based on cluster expansion and Monte Carlo methods Wei LI 05/07/2007.
How to generate a pseudopotential with non-linear core corrections Objectives Check whether the non-linear core-corrections are necessary and how to include.
Ionic Conductors: Characterisation of Defect Structure Lecture 15 Total scattering analysis Dr. I. Abrahams Queen Mary University of London Lectures co-financed.
- Compute and analyze the band structure of an ionic solid
Accuracy Based Generation of Thermodynamic Properties for Light Water in RELAP5-3D 2010 IRUG Meeting Cliff Davis.
NCHRP Project Development of Verification and Validation Procedures for Computer Simulation use in Roadside Safety Applications SURVEY OF PRACTITIONERS.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Computational Materials Science: an Overview CASTEP Developers’ Group.
The eggbox effect: converging the mesh cutoff Objectives - study the convergence of the energy and the forces with respect to the real space grid.
Preliminary CPMD Benchmarks On Ranger, Pople, and Abe TG AUS Materials Science Project Matt McKenzie LONI.
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:
How to generate a pseudopotential with the semicore in the valence Objectives Check whether semicore states should be explicitly included in the valence.
Tutorial: Quantum Dynamics of Four- Atom Reactions within the Real Wave Packet Framework Stephen Gray Chemistry Division Argonne National Laboratory Argonne,
Determination of surface structure of Si-rich SiC(001)(3x2) Results for the two-adlayer asymmetric dimer model (TAADM) are the only ones that agree with.
Durham, 6th-13th December 2001 CASTEP Developers’ Group with support from the ESF  k Network The Nuts and Bolts of First-Principles Simulation 20: Surfaces.
Advanced methods of molecular dynamics 1.Monte Carlo methods 2.Free energy calculations 3.Ab initio molecular dynamics 4.Quantum molecular dynamics 5.Trajectory.
© copyright 2011 William A. Goddard III, all rights reservedCh121a-Goddard-L14 Periodic Boundary Methods and Applications: Ab-initio Quantum Mechanics.
Hypothesis Tests. An Hypothesis is a guess about a situation that can be tested, and the test outcome can be either true or false. –The Null Hypothesis.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December 2001 Lecture 15: Structural Calculations and Pressure CASTEP Developers’ Group.
Geometry Optimizations Lecture CompChem 2 Chemistry 347 Hope College.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Linear response theory CASTEP Developers’ Group with support from.
Deep Learning Overview Sources: workshop-tutorial-final.pdf
1 4.1 Introduction to CASTEP (1)  CASTEP is a state-of-the-art quantum mechanics-based program designed specifically for solid-state materials science.
CCMGCCMGCCMGCCMGCCMGCCMGCCMGCCMG Ji-Hui Yang, Shiyou Chen, Wan-Jian Yin, and X.G. Gong Department of Physics and MOE laboratory for computational physical.
Practice #2: Solid Yong-Hyun Kim NST551.
Fundamentals of Data Analysis Lecture 11 Methods of parametric estimation.
Heuristic Optimization Methods
Band structure of a cubic perovskite oxide:
3: Density Functional Theory
UNIT - 4 HEAT TRANSFER.
Statistical Process Control
The Nuts and Bolts of First-Principles Simulation
Simple Kmeans Examples
Orbitals, Basis Sets and Other Topics
Presentation transcript:

The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Testing Testing. Basic procedure to “validate” calculations CASTEP Developers’ Group with support from the ESF  k Network

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Not a Black Box: the need to test.  Are your input files correct?  Many different convergence parameters and tolerances.  Always a tradeoff between degree of convergence and accuracy. Full convergence is usually prohibitively expensive.  Electronic minimizers not foolproof. Some cases hard to converge, eg metal surfaces.  Schettino's Law. (All programs contain bugs!)

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Some Elementary Checks  Has the run iterated to the ground state? Did it converge or run out of iterations? If problems, try a different minimizer.  Is the cohesive energy sensible? Should be close to experimental values from tables.  Total Energy should be extensive quantity. Do calculation of bulk energy in large cell and compare with unit.  Is surface energy reasonable?  Are forces close to zero for bulk solid ? N.B. perturb atoms away from special points as it may be maximum! -- will reveal input errors and program bugs.

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Outline  Not a black box: the need for testing  Some elementary tests  What number do you want? Convergence parameters  SCF Tolerance  Plane-wave cutoff.  Brillouin-Zone sampling

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Convergence and Accuracy  How accurately do you need to know the energy to test your hypothesis?  Sensitivity of different tasks.  SCF Tolerance  Plane-wave cutoff, Gmax, Ecut and grid. Finite basis-set correction.  Density of BZ k-point sampling  Error cancellation

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 SCF Tolerance  Parameter elec_energy_tol is convergence criterion for exit from electronic minimizer. N.B. Ensure max_SCF_cycles not reached.  How accurate does it need to be?  Case 1. Cohesive energy: same as accuracy of result.  Case 2. Geometry optimization: smaller tolerance required to converge forces.  Cost of higher tolerance is small; a few additional SCF iterations since convergence is exponential.

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1  Total energy is variational functional of density, but forces are not. But

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Plane-wave cutoff  Cutoff determines highest representable spatial fourier component of density.  n(r) varies most rapidly near nucleus.  Gmax depends only on types of atoms, not number.  Required cutoff is largest of any PSP in system. Dd

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Cutoff and Error Cancellation  Detailed form of orbitals near nucleus has small effect on bonding. Therefore energy differences converge much faster with cutoff than absolute energy.  Compute time varies as  In practice, calculations are almost never fully converged with cutoff energy.  Strategy: test cutoff convergence on small, bulk system, preferably with symmetry. Then very high cutoffs can be used at reasonable cost.  Warning: don't rely on uniform convergence behaviour. There are plateaus!

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Error Cancellation  Reaction energy.  Energy diffs 500->4000eV  MgO: 0.021eV  H2O: 0.566eV  Mg(OH)2: 0.562eV  Reaction: 0.030eV

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Grid parameters  Params grid_scale and fine_gmax set size of FFT grid.  FFT grid should be large enough to accommodate all G-vectors of density, n(r), within cutoff:  GRID_SCALE parameter sets this ratio, 1.75 by default.  Guaranteed to avoid "aliasing" errors with value 2, but can get away with lower depending on XC functional.  Values as low as 1.5 have been used with LDA, but beware if using GGAs.  Finer grid may me necessary to represent augmentation charges with USPs for some elements. Set by FINE_GMAX parameter.

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Finite basis-set corrections

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Consistency of Energy and Stress

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Brillouin-Zone Sampling  Like cutoff, number of k-points used to sample BZ is a convergence parameter.  Unlike cutoff, inadequate sampling can give either higher or lower energy.  Also unlike cutoff, sampling required is a function of simulation cell used. (Because it is specified in fractional k-space co-ordinates).  Therefore you can not rely on error cancellation between calculations using different cells.  Insulators typically require few k-points for large systems.

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Metals  In case of metals, kp-points must be sufficient to model band occupancy as well as dispersion, ie represent the fermi surface.  In case of simple metals a smallish grid will do.  Pathalogical case such as hcp Zn may require 5000 or more k-points to represent fermi surface features. An 8X8x8 k-point grid gives wrong value for c/a!

Nuts and Bolts 2001 Lecture 10: Testing, testing. 1 Application to various tasks  Cohesive energies  Phase Stability  Chemical Reaction  Geometry optimization  Unit cell optimization  MD