How to run SIESTA Víctor García Suárez (thanks to J. Junquera and J. Ferrer)

Slides:



Advertisements
Similar presentations
How to run with the same pseudos in S IESTA and A BINIT Objectives Run examples with the same pseudos (same decomposition in local part and Kleinman-Bylander.
Advertisements

Javier Junquera Exercises on basis set generation Convergence of the basis set with size.
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.
Introducing the coordinates in Z-matrix form Objectives study how to introduce the coordinates of a molecule in Z-matrix form.
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
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.
BDT between Au leads Víctor García Suárez. Outline 1) Experiment 2) Previous calculations 3) Electronic and transport properties 4) Other experiments.
DFT Calculations Shaun Swanson.
Post-processing J.Cugnoni, LMAF/EPFL, Finite element « outputs » Essential variables:  Displacement u, temperature T find u such that : K u = f.
Density Functional Theory: a first look Patrick Briddon Theory of Condensed Matter Department of Physics, University of Newcastle, UK.
Computing lattice constant, bulk modulus and equilibrium energies of solids Bulk Si Diamond structure.
How to optimize automatically the parameters that determine the quality of the basis Javier Junquera Alberto García.
PA4311 Quantum Theory of Solids Quantum Theory of Solids Mervyn Roy (S6) www2.le.ac.uk/departments/physics/people/mervynroy.
Large-Scale Density Functional Calculations James E. Raynolds, College of Nanoscale Science and Engineering Lenore R. Mullin, College of Computing and.
Introduction to run Siesta
Javier Junquera Exercises on basis set generation Increasing the angular flexibility: polarization orbitals.
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.
Introduction to FORTRAN
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 : DFT Plane Wave Pseudopotential versus Other Approaches CASTEP Developers’
A primer on Smeagol Víctor García Suárez.
Introduction to input & output files
Javier Junquera Code structure: calculation of matrix elements of H and S. Direct diagonalization José M. Soler = N  N N  1.
Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm.
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.
Density Functional Theory (DFT) DFT is an alternative approach to the theory of electronic structure; electron density plays a central role in DFT. Why.
Introduction to run Siesta Javier Junquera Université de Liège.
Basic introduction to running Siesta Eduardo Anglada Siesta foundation-UAM-Nanotec
How to generate a pseudopotential with non-linear core corrections Objectives Check whether the non-linear core-corrections are necessary and how to include.
- Compute and analyze the band structure of an ionic solid
Nuclear structure and reactions Nicolas Michel University of Tennessee.
Some ideas for common input/output formats for the MS codes Keisuke Hatada Dipartimento di Fisica, Università Camerino.
Computational Aspects of Multi-scale Modeling Ahmed Sameh, Ananth Grama Computing Research Institute Purdue University.
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.
Linear scaling fundamentals and algorithms José M. Soler Universidad Autónoma de Madrid.
TBPW: A Modular Framework for Pedagogical Electronic Structure Codes Todd D. Beaudet, Dyutiman Das, Nichols A. Romero, William D. Mattson, Jeongnim Kim.
Density Functional Theory A long way in 80 years L. de Broglie – Nature 112, 540 (1923). E. Schrodinger – 1925, …. Pauli exclusion Principle.
Physics “Advanced Electronic Structure” Lecture 1. Theoretical Background Contents: 1. Historical Overview. 2. Basic Equations for Interacting Electrons.
How to generate a mixed pseudopotential Objectives Generate a mixed pseudopotential to be used in the Virtual Crystal Approximation or in simulations at.
Linear scaling solvers based on Wannier-like functions P. Ordejón Institut de Ciència de Materials de Barcelona (CSIC)
How to generate a pseudopotential
Javier Junquera How to compute the projected density of states (PDOS)
Plotting the charge density of bulk Si
How to generate a pseudopotential with the semicore in the valence Objectives Check whether semicore states should be explicitly included in the valence.
Start. Technische Universität Dresden Physikalische Chemie Gotthard Seifert Tight-binding Density Functional Theory DFTB an approximate Kohn-Sham DFT.
MODELING MATTER AT NANOSCALES 4. Introduction to quantum treatments Eigenvectors and eigenvalues of a matrix.
Qualitative Molecular Orbitals on a Computer. In lecture we learned that molecular orbitals are a “mixing together” of all the atomic orbitals of all.
© copyright 2011 William A. Goddard III, all rights reservedCh121a-Goddard-L14 Periodic Boundary Methods and Applications: Ab-initio Quantum Mechanics.
Tutorial of Practice #4 - Supercell & Defect formation energy -
How to prepare the interface between siesta and wannier90
Computational chemistry May Computer & chemistry.
Practice #2: Solid Yong-Hyun Kim NST551.
How to plot fat bands with siesta
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:
Integrated Computational Materials Engineering Education Calculation of Equation of State Using Density Functional Theory Mark Asta1, Katsuyo Thornton2,
Prof. Sanjay. V. Khare Department of Physics and Astronomy,
Integrated Computational Materials Engineering Education Calculation of Equation of State Using Density Functional Theory Mark Asta1, Katsuyo Thornton2,
How to prepare the interface between siesta and wannier90
Integrated Computational Materials Engineering Education Calculation of Equation of State Using Density Functional Theory Mark Asta1, Katsuyo Thornton2,
Presentation transcript:

How to run SIESTA Víctor García Suárez (thanks to J. Junquera and J. Ferrer)

To run Siesta you need 1. Access to the executable file Compile SIESTA with your favourite compiler Watch out for BLAS and LAPACK libraries Serial versus parallel compilation 2. An input file, called whatever.fdf Written in Flexible Data Format (A. García and J. M. Soler) Contains: Physical data of the system Variables to control the approximations 3. A pseudopotential file for all different elements in the input file Unformatted binary (.vps) Formatted ASCII (.psf) (more portable and easy to read)

Features of the Flexible Data Format language FDF- I Data can be omitted in favour of default values Syntax: ‘data label’ followed by its value Character string:SystemLabel h2o Integer:NumberOfAtoms 3 Real: PAO.SplitNorm 0.15 Logical: SpinPolarized.false. Physical magnitudes: LatticeConstant 5.43 Ang Data can be given in any order

Features of the Flexible Data Format language FDF- II Text following # are comments Labels are case insensitive and characters - _. are ignored LatticeConstant is equivalent to lattice_constant Logical values: T,.true., true, yes F,.false., false, no Character strings, NOT in apostrophes Complex data structures: blocks %block label … %endblock label

Features of the Flexible Data Format language FDF- III Physical magnitudes: real number followed by its units Many physical units are recognized for each magnitude (Length: m, cm, nm, Ang, bohr) Automatic conversion to the ones internally required. Allows to ‘include’ other FDF files or redirect the search to another file block PAO.Basis < BaTiO3basis.fdf AtomicCoordinatesAndAtomicSpecies < Interface.coor

Clasification of the basic input variables 1. General system descriptors 2. Structural and geometrical variables 3. Basis set generation 5. Method to solve the Hamiltonian 4. Variables to control the convergence of the results 6. Control of the self-consistent cycle 7. Structural relaxation or molecular dynamics 8. Analysis of the results 9. Parallelization

General system descriptors SystemLabel: nickname of the system to name output files SystemLabel Si (After a succesful run, you should have files like Si.DM : Density matrix Si.XV: Final positions and velocities Si.bands:Electronic band structure Si.DOS: Total density of states...and many more, depending on your requests) SystemName: descriptive name of the system SystemName Si bulk, diamond structure If properly updated, this variable might contain very useful information to know what has been run

Structural and geometrical variables: number of atoms and species in the simulation box NumberOfAtoms: number of atoms in the simulation box NumberOfAtoms 2 NumberOfSpecies: number of different atomic species NumberOfSpecies 1 ChemicalSpeciesLabel: spcecify the different chemical species %block ChemicalSpeciesLabel 1 14 Si %endblock ChemicalSpeciesLabel ALL THESE VARIABLES ARE MANDATORY From 1 to NumberOfSpecies Atomic number of a given species plus a label to identify

Structural and geometrical variables: lattice constant and lattice vectors LatticeConstant: real length to define the scale of the lattice vectors LatticeConstant 5.43 Ang LatticeParameters: crytallographic way %block LatticeParameters %endblock LatticeParameters Three vector modules (units of LatticeConstant) Three angles between vectors (degrees) LatticeVectors: read as a matrix, each vector being a line (units of LatticeConstant) %block LatticeVectors %endblock LatticeVectors

AtomicCoordinatesAndAtomicSpecies: %block AtomicCoordinatesAndAtomicSpecies %endblock AtomicCoordinatesAndAtomicSpecies Structural and geometrical variables: atomic coordinates AtomicCoordinatesFormat: format of the atomic positions in input: Bohr: cartesian coordinates, in bohrs Ang: cartesian coordinates, in Angstroms ScaledCartesian: cartesian coordinates, units of the lattice constant Fractional: referred to the lattice vectors AtomicCoordinatesFormat Fractional As many lines as atoms in the simulation box

DFT XC.FunctionalLDAGGA XC.authorsPW92 CA PZ PBE DFT  Density Functional Theory LDA  Local Density Approximation GGA  Generalized Gradient Approximation CA  Ceperley-Alder PZ  Perdew-Zunger PW92  Perdew-Wang-92 PBE  Perdew-Burke-Ernzerhof WC  Wu-Cohen BLYP  Becke-Lee-Yang-Parr SpinPolarized Variables to control de convergence of the results: the exchange and correlation functional BLYPRPBE revPBE WCPBEsol

Variables to chose the method to solve the Hamiltonian This is always done with operations that scale linearly with the size of the system (Order-N) From the atomic coordinates and the unit cell, the code computes the Hamiltonian (H) and Overlap (S) matrices Then, we have to the secular equation,

Once the Hamiltonian and the overlap matrices are built, we have to solve the one-particle Kohn-Sham equations Minimization of an energy functional Not efficient for metals or “dirty” gap systems Order-NOrder-N 3 Standard diagonalization techniques Both eigenvectors and eigenvalues available SolutionMethod OrderN diagon = N (# atoms) CPU load ~ 100 Early 90’s ~ N ~ N 3

The density matrix, a basic ingredient in SIESTA Expansion of the eigenvectors in a basis of localized atomic orbitals where the coefficients, and are the dual orbital of : The electron density is given by Occupation of state Control convergence SCF Restart calculations Inserting the expansion into the definition of the density where, with, the density matrix is defined

The Kohn-Sham equations must be solved self-consistently The potential (input) depends on the density (output) Initial guess Calculate effective potential Solve the KS equation Compute electron density No Output quantities Energy, forces, stresses … Yes Self-consistent?

How to run the serial version of Siesta To run the serial version: [path]siesta myoutput & If you want to run the job in background, add an & [path]siesta myoutput & To see the information dumped in the output file during the run: tail –f myoutput

Output: the header Information about: - The version of Siesta - The compiler - Compilation flags - Mode (serial or parallel) - Date and time when the run starts Useful to reproduce the results of a simulation

Output: dumping the input file Exact copy of the fdf input file Useful to reproduce the results of a simulation

Output: processing the input The input file is digested Siesta prints out the value for some variables (some of them might take the default variable) A complete list of the parameters used, including default values, can be found in the file fdf.log

Output: cell, coordinates and k-sampling

Output: First Molecular Dynamic (or Conjugate Gradient) step

Output: Forces and stress tensor WriteForces (logical) write the forces to the output file at the end of every Molecular Dynamic step or relaxation step. The forces of the last step can be found in the file SystemLabel.FA

Output: Descomposition of the energy

Output: timer. How many times (and how much time) the code goes through the most significant subroutines Useful to tune and optimize the performance of Siesta

Saving and reading information: Restarting files Some information is stored by Siesta to restart simulations from: Name of the file FDF tag to reuse Density matrix SystemLabel.DM DM.UseSaveDM Atomic positions and velocitiesSystemLabel.XVMD.UseSaveXV Conjugent gradient history SystemLabel.CG MD.UseSaveCG Localized wave functions (Order-N)SystemLabel.LWFON.UseSaveLWF logical variables EXTREMELY USEFUL TO SAVE LOTS OF TIME!

Information needed as input for various post-processing programs, for example, to visualize: FDF tag to save files Name of output file Total charge density: SaveRho SystemLabel.RHO Deformation charge density: SaveDeltaRho SystemLabel.DRHO Electrostatic potential:SaveElectrostaticPotential SystemLabel.VH Total potential: SaveTotalPotential SystemLabel.VT Local density of states: LocalDensityOfStates SystemLabel.LDOS Charge density contours: WriteDenchar SystemLabel.DIM Atomic coordinates: WriteCoorXmol SystemLabel.xyz Animation of a molecular dyn:WriteMDXMol SystemLabel.ANI (logical variables) Saving and reading information

Summary of different tools for post-processing and visualization DENCHAR PLRHO DOS and PDOS total Fe, d DOS, PDOS MACROAVE SIESTA’s output with XCRYSDEN

Fin