The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December 2001 9: Is it running properly? CASTEP Developers’ Group with support from.

Slides:



Advertisements
Similar presentations
Wave function approaches to non-adiabatic systems
Advertisements

The H 2 molecule without convergence studies Objectives: - the (pseudo)total energy - the bond length r HH Acknowledgment: exercise inspired on the first.
Inpainting Assigment – Tips and Hints Outline how to design a good test plan selection of dimensions to test along selection of values for each dimension.
Quantum Theory of Solids
Systematics for realistic proyects: from quick & dirty to converged calculations José M. Soler and Alberto García.
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.
PA4311 Quantum Theory of Solids Quantum Theory of Solids Mervyn Roy (S6) www2.le.ac.uk/departments/physics/people/mervynroy.
Mesh, Loads & Boundary conditions CAD Course © Dr Moudar Zgoul,
DFT Calculations Shaun Swanson.
The Nuts and Bolts of First-Principles Simulation
Meeting 31, April 7 th Theory: ZnTe, ZnSe dispersion curves.
Quantum Mechanics Discussion. Quantum Mechanics: The Schrödinger Equation (time independent)! Hψ = Eψ A differential (operator) eigenvalue equation H.
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,
Skills Lecture Series Introductory concepts: Computer etiquette Jon Goss.
Gerard ’t Hooft Utrecht April 15, 2008 Utrecht University.
3D Schrodinger Equation
Ab Initio Total-Energy Calculations for Extremely Large Systems: Application to the Takayanagi Reconstruction of Si(111) Phys. Rev. Lett., Vol. 68, Number.
Thermal properties from first principles with the use of the Free Energy Surface concept Dr inż. Paweł Scharoch Institute of Physics, Wroclaw University.
Computing lattice constant, bulk modulus and equilibrium energies of solids Bulk Si Diamond structure.
The Nuts and Bolts of First-Principles Simulation
ASC Program Example Part 3 of Associative Computing Examining the MST code in ASC Primer.
PA4311 Quantum Theory of Solids Quantum Theory of Solids Mervyn Roy (S6) www2.le.ac.uk/departments/physics/people/mervynroy.
Introduction to run Siesta
Neural Network Tools. Neural Net Concepts The package provides a “standard” multi-layer perceptron –Composed of layers of neurons –All neurons in a layer.
Philippe Ghosez Lattice dynamics Andrei Postnikov Javier Junquera.
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.
Physics “Advanced Electronic Structure” Pseudopotentials Contents: 1. Plane Wave Representation 2. Solution for Weak Periodic Potential 3. Solution.
Lectures Introduction to computational modelling and statistics1 Potential models2 Density Functional.
Practical quantum Monte Carlo calculations: QWalk
Norm-conserving pseudopotentials and basis sets in electronic structure calculations Javier Junquera Universidad de Cantabria.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : DFT Plane Wave Pseudopotential versus Other Approaches CASTEP Developers’
New Castep Functionality
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.
1 Pattern Recognition: Statistical and Neural Lonnie C. Ludeman Lecture 23 Nov 2, 2005 Nanjing University of Science & Technology.
P D S.E.1 3D Schrodinger Equation Simply substitute momentum operator do particle in box and H atom added dimensions give more quantum numbers. Can.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December 2001 Lecture 18: First Look at Molecular Dynamics CASTEP Developers’ Group.
- Compute and analyze the band structure of an ionic solid
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.
Comp. Mat. Science School 2001 Lecture 21 Density Functional Theory for Electrons in Materials Richard M. Martin Bands in GaAs Prediction of Phase Diagram.
TBPW: A Modular Framework for Pedagogical Electronic Structure Codes Todd D. Beaudet, Dyutiman Das, Nichols A. Romero, William D. Mattson, Jeongnim Kim.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : The New CASTEP CASTEP Developers’ Group with support from the ESF 
© Alejandro Strachan – Binding Curves for H2 and He2 Online simulations via nanoHUB: Binding curves for H 2 molecule In this tutorial: Density functional.
PA4311 Quantum Theory of Solids Quantum Theory of Solids Mervyn Roy (S6) www2.le.ac.uk/departments/physics/people/mervynroy.
GUI development with Matlab: GUI Front Panel Components GUI development with Matlab: Other GUI Components 1 Other GUI components In this section, we will.
Preliminary CPMD Benchmarks On Ranger, Pople, and Abe TG AUS Materials Science Project Matt McKenzie LONI.
Top mass error predictions with variable JES for projected luminosities Joshua Qualls Centre College Mentor: Michael Wang.
Bolted Joint Assembly. Advanced Solid Body Contact Options Goal – In this workshop, our goal is to study the effect that contact stiffness specification.
Introduction to the SIESTA method SUMMER SCHOOL ON COMPUTATIONAL MATERIALS SCIENCE University of Illinois at Urbana-Champaign, June 13-23, 2005 Some technicalities.
Tutorial: Quantum Dynamics of Four- Atom Reactions within the Real Wave Packet Framework Stephen Gray Chemistry Division Argonne National Laboratory Argonne,
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.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Testing Testing. Basic procedure to “validate” calculations CASTEP.
Advanced methods of molecular dynamics 1.Monte Carlo methods 2.Free energy calculations 3.Ab initio molecular dynamics 4.Quantum molecular dynamics 5.Trajectory.
Electron poor materials research group Group meeting Dec 16, 2010 Theory- PAW_PBE psuedo potentials. EOS relaxations and bader analysis of resultant structures.
© copyright 2011 William A. Goddard III, all rights reservedCh121a-Goddard-L14 Periodic Boundary Methods and Applications: Ab-initio Quantum Mechanics.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December 2001 Lecture 15: Structural Calculations and Pressure CASTEP Developers’ Group.
Tutorial of Practice #4 - Supercell & Defect formation energy -
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Linear response theory CASTEP Developers’ Group with support from.
Practice #2: Solid Yong-Hyun Kim NST551.
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:
3: Density Functional Theory
Integrated Computational Materials Engineering Education Calculation of Equation of State Using Density Functional Theory Mark Asta1, Katsuyo Thornton2,
The Nuts and Bolts of First-Principles Simulation
Prof. Sanjay. V. Khare Department of Physics and Astronomy,
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,
Presentation transcript:

The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Is it running properly? CASTEP Developers’ Group with support from the ESF  k Network

Nuts and Bolts : Is it running properly? 2 Outline  Why you have to read the output file  Sample output  The road to hell  Look after the pennies  Completely wrong  Right and wrong  Graphic detail  Summary

Nuts and Bolts : Is it running properly? 3 What is the question?  We have to eliminate technical failures and separate artefacts from the proper predictions of DFT theory within an approximation (LDA, GGA)  Goes much further than just checking the basics, because testing is the bedrock of good simulation studies (see Lecture 10)  Here though we start with the basics

Nuts and Bolts : Is it running properly? 4 Scrutinise the output file!  But I’ve got Materials Studio… CASTEP sets all the defaults….  But I have already set up the job properly…  But it finished ok without crashing…  But the results look ok, what else is there..?

Nuts and Bolts : Is it running properly? 5 But I’ve got Materials Studio…  Defaults (interface or CASTEP) may not be appropriate  Choices made on your behalf: are they what you want?  The program tells you what it is doing and what’s going wrong

Nuts and Bolts : Is it running properly? 6 But I have already set up the job properly… All of the previous, and  That doesn’t mean it has run properly  You have to verify that your intentions were realised: you might have asked the impossible  Are the results physically reasonable?

Nuts and Bolts : Is it running properly? 7 But it finished ok without crashing… All of the previous, and  Finished because.. The task was finished and the tolerances met or it ran out of iterations?  Was it efficient? But the results look ok, what else is there..?

Nuts and Bolts : Is it running properly? 8 The output file (.out.cst ) Input and defaults Initialisation Electronic minimisation (then MD, geometry optimisation) Calculate properties (Eigenvalues, forces and stress, band structure…) Finish

Nuts and Bolts : Is it running properly? 9 Sample output: startup | | | It is no longer just Cambridge... | | it is no longer just serial... | | it is no longer just for total energies... | | | | but for marketing and legal reasons it is still | | | | CCC AA SSS TTTTT EEEEE PPPP | | C A A S T E P P | | C AAAA SS T EEE PPPP | | C A A S T E P | | CCC A A SSS T EEEEE P | | | | | | Welcome to Castep II.0, the DFT code for the | | professional user. | | | | Authors: | | M. Segall, P. Lindan, M. Probert, C. Pickard, | | P. Hasnip, S. Clark, M. Payne |

Nuts and Bolts : Is it running properly? 10 Startup | | | Copyright 2000,2001 | | | | Please cite | | | | A Real and Reciprocal Space Odyssey | | (Comp. Phys. Comms 2001) | | | | in all publications arising from your use of | | this fine product. | | |  Or perhaps M. C. Payne, M. P. Teter, D. C. Allan, T. A. Arias and J. D. Joannopoulos, Rev. Mod. Phys. 64 (1992) 1045  …but please acknowledge

Nuts and Bolts : Is it running properly? 11 Inputs defaults Warning: parameters_read - missing parameters file, using defaults Strategy found: 1 g-vector groups containing 1 nodes. Initialising basis set. Standard grid dimensions: Fine grid dimensions: Plane wave load balancing: max 1899 min 1863 average 1881 Warning: parameters_output - missing parameters file, using defaults ************************************ Title ************************ ***************************** General Parameters ****************** output verbosity : normal (1) write checkpoint data to : si_8atoms.check type of calculation : single point energy unlimited duration calculation *********************** Exchange-Correlation Parameters *********** using functional : Local Density Approximation (LDA) initialisation

Nuts and Bolts : Is it running properly? 12 ************************* Pseudopotential Parameters ************** pseudopotential representation : reciprocal space representation : reciprocal space **************************** Basis Set Parameters ***************** basis set accuracy : FINE finite basis set correction : automatic **************************** Electronic Parameters **************** number of electrons = 32 number of up spins = 16 number of down spins = 16 number of spin components = 1 number of bands = 19 ********************* Electronic Minimisation Parameters ********** Method: Treating system as metallic with ensemble DFT treatment of electrons, and number of SD steps = 1 and number of CG steps = 9 total energy convergence tolerance = E-04 Electron Volt eigen-energy convergence tolerance = E-05 Electron Volt periodically dump wavefunctions to : si_8atoms.wvfn *******************************************************************

Nuts and Bolts : Is it running properly? Unit Cell Real Lattice(Angstrom) Reciprocal Lattice(Angstrom-1) Lattice parameters(Angstrom) Cell Angles a = alpha = b = beta = c = gamma = Current cell volume = Angstrom^ Cell Contents Total number of ions in cell = 8 Total number of species in cell = 1 Max number of any one species = 8

Nuts and Bolts : Is it running properly? 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x Element Atom Fractional coordinates of atoms x x Number u v w x x x x Si x x Si x x Si x x Si x x Si x x Si x x Si x x Si x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx No user defined ionic velocities Details of Species Mass of species in amu Si Files used for pseudopotentials: Si Si_00.recpot

Nuts and Bolts : Is it running properly? k-Points For BZ Sampling MP grid size for SCF calculation is Number of kpoints used = Number Fractional coordinates Weight Symmetry and Constraints There are no symmetry operations specified or generated for this cell Centre of mass is constrained Number of ionic constraints = 3 Set iprint > 1 for details of ionic constrains Number of cell constraints= 0 Cell constraints are: External pressure/stress (Gigapascal)

Nuts and Bolts : Is it running properly? <-- SCF SCF loop Energy Energy gain Timer <-- SCF Initial Final per atom (sec) <-- SCF <-- SCF E E E <-- SCF E E E <-- SCF E E E <-- SCF E E E <-- SCF E E E <-- SCF E E E <-- SCF E E E <-- SCF E E E <-- SCF E E E <-- SCF E E E <-- SCF E E E <-- SCF <-- SCF Electronic minimisation  NB: “very-beta” test run and timings! Try this one yourself

Nuts and Bolts : Is it running properly? 17 The road to hell I thought I had Used the rPBE functional... Run it as a metal... Used the gamma point... Continued a run… Altered the lattice parameters… Used that other pseudopotential… Run without symmetry… Fed the dog my homework...  Or anything you care to mention. The truth is in the output file!

Nuts and Bolts : Is it running properly? 18 Look after the pennies If CASTEP ran what you wanted it to:  Are there any warning messages? Do you know if they are important or irrelevant?  Has it converged or just stopped?  Are all the obvious quantities reasonable? Total energy: negative? Expected value? Forces and stress: zero if they should be? Too large? Electronic energies: related to known values?

Nuts and Bolts : Is it running properly? 19 Completely wrong  Apart from the obvious: The job never started The job crashed  There are many ways a calculation can be rendered useless, but usually are avoided via systematic testing (Lecture 10) Inadequate plane-wave cutoff, k-point sampling Pseudopotential ghost states, poor transferability System size  However, within a single calculation things can still go wrong, a few examples follow

Nuts and Bolts : Is it running properly? 20 Right and wrong I  Although density mixing never does produce a smooth E vs. n curve (e.g. Cu unit cell)...

Nuts and Bolts : Is it running properly? 21 …right and wrong I  Sometimes it just doesn’t work (e.g isolated Carbon atom,  -point)

Nuts and Bolts : Is it running properly? 22 Right and wrong II  Symmetry Use of (point group) symmetry imposes constraints The supercell imposes the translational symmetry constraints Both can lead to the wrong answer

Nuts and Bolts : Is it running properly? 23 Right and wrong III  Load balancing On a parallel computer the node with the most work dictates overall performance Example (artificial!) 4 k-point calculation on three nodes, k-parallel Max. speedup is only 2X, not 3X

Nuts and Bolts : Is it running properly? 24 Graphic detail  Use graphics to see what you are calculating xo yo zo dx dy dz

Nuts and Bolts : Is it running properly? 25 Summary  The output file contains the basic information on the identity, health and sanity of your calculation  Here we have looked at a tiny fraction of the potential pitfalls  Always use/check the most basic data first  Plot graphs, use graphic images  If it can go wrong it will - but only when you are not looking!