+ All Categories
Home > Documents > Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction...

Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction...

Date post: 14-Mar-2018
Category:
Upload: ngongoc
View: 223 times
Download: 7 times
Share this document with a friend
48
1 Basic introduction to SIESTA Emilio Artacho Emilio Artacho Department of Earth Sciences University of Cambridge
Transcript
Page 1: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

1

Basic introduction to SIESTA

Emilio ArtachoEmilio Artacho

Department of Earth SciencesUniversity of Cambridge

Page 2: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

The methodLinear-scaling DFT based onNAOs (Numerical Atomic Orbitals)

P. Ordejon, E. Artacho & J. M. Soler , Phys. Rev. B 53, R10441 (1996)J. M.Soler et al, J. Phys.: Condens. Matter 14, 2745 (2002)

•Born-Oppenheimer (relaxations, mol.dynamics)•DFT (LDA, GGA)•Pseudopotentials (norm conserving,factorised)•Numerical atomic orbitals as basis (finite range)•Numerical evaluation of matrix elements (3Dgrid)

Implemented in the SIESTA program

Page 3: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Siesta resources (I)• Web page: http://www.uam.es/siesta

• Pseudos and basis database

• Tutorials

• Mailing list

• User guide and reference manual

• Mailing list archives

• (Wiki)

Page 4: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

4

Siesta resources (2)

• Andrei Postnikov Siesta utils page:http://www.home.uni-osnabrueck.de/apostnik/download.html

• Lev Kantorovich Siesta utils page:http://www.cmmp.ucl.ac.uk/~lev/codes/lev00/index.html

Page 5: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Siesta software package:• Src: Sources of the Siesta code.• Src/Sys: makefiles for the compilation• Obj: default directory where compilation goes• Tests: A collection of tests.• Docs: Documentation and user conditions:• User’s Guide (siesta.tex)• Pseudo: ATOM program to generate and test pseudos.• Examples: fdf and pseudos input files for simple systems.• Tutorials: Tutorials for basis and pseudo generation.• Utils: Programs or scripts to analyze the results.

Page 6: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

To run Siesta you need:

1.- Access to the executable file

2.- An input file: written in ascii (plain text) using:Flexible Data Format (FDF) (A. García and J. M. Soler)

3.- A pseudopotential file for each kind of element inthe input file. Two different formats:Unformatted binary (.vps)

Formatted ASCII (.psf) (more transportable and easy to look at)

Page 7: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Running siesta

Main input file: “name”.fdf

• Contents:

•Physical data of the system

•Variables to control the aproximations

• Format: Flexible Data Format (FDF)

Siesta has no windows, it is run from a UNIX terminalor from a MSDOS console.

Page 8: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

FDF (I)•Data can be given in any order

•Data can be omitted in favor of default values

•Syntax: ‘data label’ followed by its valueCharacter string: SystemLabel h2o

Integer: NumberOfAtoms 3

Real: PAO.SplitNorm 0.15

Logical: SpinPolarized .false.

Physical magnitudes LatticeConstant 5.43 Ang

Page 9: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

FDF (II)• Labels are case insensitive and characters -_. are ignored

LatticeConstant is equivalent to lattice_constant

• Text following # are comments

• Logical values: T , .true. , yes, F , .false. , no

By default logicals are true: DM.UseSaveDM

• Character strings, NOT in apostrophes

• Complex data structures: blocks%block label…%endblock label

Page 10: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

FDF (III)• Physical magnitudes: 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.

• You may ‘include’ other FDF files or redirect the search toanother file, so for example in the main fdf it’s possible:

AtomicCoordinatesFormat < system_xyz.fdf

AtomicCoordinatesAndAtomicSpecies < system_xyz.fdf

Page 11: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Basic input variables

1.- General system descriptors

2.- Structural and geometrical variables

3.- Functional and solution mehod (Order-N/diagonalization)

4.- Convergence of the results

5.- Self-consistency

6.- Basis set generation related variables

7.- Molecular dynamics

8.- Electron transport (TranSIESTA)

Page 12: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

General system descriptor: output

SystemName: descriptive name of the system

SystemName Si bulk, diamond structure

SystemLabel: nickname of the system to name output files

SystemLabel bulkSi

(After a successful run, you should have files like

bulkSi.DM : Density matrix

bulkSi.XV: Final positions and velocities

...)

Page 13: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Structural and geometrical variables

NumberOfAtoms: number of atoms in the simulation

NumberOfAtoms 2

NumberOfSpecies: number of different atomic species

NumberOfSpecies 1

ChemicalSpeciesLabel: specify the different chemical species

%block ChemicalSpeciesLabel1 14 Si BLOCK

%endblock ChemicalSpeciesLabel

ALL THESE VARIABLES ARE MANDATORY

Page 14: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Geometry: Lattice Vectors

LatticeConstant: real length to define the scale of the lattice vectorsLatticeConstant 5.43 Ang

LatticeParameters: Crystallographic way%block LatticeParameters

1.0 1.0 1.0 60. 60. 60.%endblock LatticeParameters

LatticeVectors: read as a matrix, each vector on a line%block LatticeVectors 0.0 0.5 0.5 0.5 0.0 0.5 0.5 0.5 0.0%endblock LatticeVectors

PBC: Atoms in the unit cell always areperiodically repeated throughout space

along the lattice vectors

Surfaces

Page 15: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Atomic CoordinatesAtomicCoordinatesFormat:

Bohr: cartesian coordinates, in bohrsAng: cartesian coordinates, in AngstromsScaledCartesian: cartesian coor scaled by lattice constantFractional: referred to the lattice vectors

AtomicCoordinatesFormat Fractional

AtomicCoordinatesAndAtomicSpecies:

%block AtomicCoordinatesAndAtomicSpecies0.00 0.00 0.00 10.25 0.25 0.25 1

%endblock AtomicCoordinatesAndAtomicSpecies

Page 16: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

FunctionalDFT

XC.Functional LDA GGA

XC.authors PW92CA

PZ

PBE

DFT ≡ Density Functional Theory

LDA ≡ Local Density Approximation

GGA ≡ Generalized Gradient Approximation

VDW ≡ van der Waals

CA ≡ Ceperley-Alder

PZ ≡ Perdew-Zunger

PW92 ≡ Perdew-Wang-92

PBE ≡ Perdew-Burke-Ernzerhof

DRSLL ≡ Dion et al (VdW)

SpinPolarized

Page 17: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

17

Not perfect, but a pragmatic possibility, still fromfirst-principles and within KS-DFT

Efficient implementation (Roman & Soler PRL 09)

Benzene sandwich

Page 18: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Solution method

Hamiltonian (H), Overlap (S) matrices

1: Compute H, S (Order N ):

2: SolutionMethod

diagon Order-N

0: Start from the atomic coordinates and the unit cell

Executiontime

Page 19: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

k-samplingMany magnitudes require integration of Bloch functions over Brillouin zone (BZ)

!r r ( ) = d

r k n

r k ( )

BZ

"i

# $i

r k ( )

2

In practice: integral → sum over a finite uniform grid

Essential for:

Real space ↔Reciprocal spaceSmall periodic systems Metals Magnetic systems

Good description of the Blochstates at the Fermi level

Even in same insulators:

Perovskite oxides

Page 20: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

k-sampling

kgrid_cutoff (1):kgrid_cutoff 10.0 Ang

kgrid_Monkhorst_Pack (2):%block kgrid_Monkhorst_Pack 4 0 0 0.5 0 4 0 0.5 0 0 4 0.5%endblock kgrid_Monkhorst_Pack§

Special set of k-points: Accurate results for a small # k-points:

1 Moreno and Soler, PRB 45, 13891 (1992).2 Monkhorst and Pack, PRB 13, 5188 (1997)

Page 21: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Selfconsistency (SCF)Initial guess:

!

r r ( ) = !atom r

r ( )"

!r r ( ) = !µ,"#µ#"

µ,"

$

Properties: Total energy, Charge density Forces

MaxSCFIterationsTolerance

Yes

No

?

Page 22: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

22

Hard confining potentialsHard confining potentials

FireballsO. F. Sankey & D. J. Niklewski,Phys. Rev. B 40, 3979 (1989)

BUT:A different cut-off radius foreach orbital

A single parameter

Energy shift

Convergence vs Energy shift ofBond lengths Bond energies

E. Artacho et al. Phys. Stat. Solidi (b) 215, 809 (1999)

Page 23: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

23

Soft confining potentialsSoft confining potentials

1 3 5 7 r (a.u.)

1 3 5 7 r (a.u.)

• Better basis, variationally, & other results• Removes the discontinuity in the derivative J. Junquera, O. Paz, D. Sanchez-Portal & E. Artacho, Phys. Rev. B, 64, 235111 (2001) E. Anglada, J. M. Soler, J. Junquera & E. Artacho, Phys. Rev. B 66, 205101 (2002)

Page 24: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

24

Multiple-zetaMultiple-zeta

E. Artacho et al. , Phys. Stat. Solidi (b) 215, 809 (1999).

Page 25: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

25

PolarizationPolarization

E. Artacho et al. , Phys. Stat. Solidi (b) 215, 809 (1999).

Page 26: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Basis set: Main controlsExplicit control within block PAO.Basis%block PAO.BasisSr 5 1.64000n=4 0 1 E 150. 6.0 6.5n=5 0 2 E 150. 6.5 7.0 5.5n=4 1 1 E 150 5.6 6.75n=5 1 1 E 4.6 1.2 4.n=4 2 1 E 145. 6.0 6.6%EndBlock PAO.Basis

Otherwise, automatic:PAO.BasisSize DZP // PAO.EnergyShift 50 meV etc

Rules of thumb in Artacho et al, JPCM 2008

Page 27: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

How to run SiestaTo run the serial version, from a unix/terminal:

Basic run, output in the screen:% siesta < Fe.fdf

Output redirected to a file:% siesta < Fe.fdf > Fe.out

Screen and file output: % siesta < Fe.fdf | tee Fe.out

(assuming the siesta binary is in your PATH)

Page 28: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Output: the header

Page 29: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Output: dumping the input file

Page 30: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Output: processing the input

Page 31: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Output: coordinates and k-sampling

Page 32: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Output: First MD step

Page 33: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Output: Self-consistency

Page 34: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Output: Eigenvalues, forces, stress

Page 35: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Output: Total energy

Page 36: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Output: timer (real and cpu times)

Page 37: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Saving and reading information (I)

Some information is stored by Siesta to restart simulations from:

• Density matrix: DM.UseSaveDM

• Localized wave functions (Order-N): ON.UseSaveLWF

• Atomic positions and velocities: MD.UseSaveXV

• Conjugate gradient history (minimizations): MD.UseSaveCG

All of them are logical variables

EXTREMELY USEFUL TO SAVE A LOT OF TIME!

Page 38: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Saving and reading information (II)Information needed as input for various post-processing

programs, for example, to visualize:

• Total charge density: SaveRho

• Deformation charge density: SaveDeltaRho

• Electrostatic potential: SaveElectrostaticPotential

• Total potential: SaveTotalPotential

• Local density of states: LocalDensityOfStates

• Charge density contours: WriteDenchar

• Atomic coordinates: WriteCoorXmol and WriteCoorCerius

All of them are logical variables

Page 39: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Analyzing the electronic structure (I)Band structure along the high symetry lines of the BZ

BandLineScale: scale of the k vectors in BandLinesBandLineScale pi/a

BandLines: lines were band energies are calculated.

%block BandLines 1 1.000 1.000 1.000 L 20 0.000 0.000 0.000 \Gamma 25 2.000 0.000 0.000 X 30 2.000 2.000 2.000 \Gamma%endblock BandLines

Page 40: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Analyzing the electronic structure (II)•Density of states: total and projected on the atomic orbitals

ProjectedDensityOfStates:%block ProjectedDensityOfStates -20.00 10.00 0.200 500 eV%endblock ProjectedDensityOfStates

Page 41: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Analyzing the electronic structure (III)

•Population analysis: Mulliken prescription - Charge associated to basis orbital or atom

- Careful, badly defined, arbitrary and very dependent on the basis functions

WriteMullikenPop

WriteMullikenPop 0 = None 1 = Atomic and orbitals charges 2 = 1 + atomic overlap pop. 3 = 2 + orbital overlap pop.

Others (Voronoi, Hirschfeld, Maier)

Page 42: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Tools (I)Various post-processing programs and utilities:- Phonons:

Finite differences: VIBRA (P. Ordejón)Linear response: LINRES ( J. M. Pruneda et al.)

- Interface with Phonon program (Parlinsky)

-Visualisation of CHARGE DENSITY and POTENTIALS-3D: PLRHO (J. M. Soler)-2D: CONTOUR (E. Artacho)-2D: DENCHAR (J. Junquera)-3D: sies2xsf (Xcrysden) (A. Postnikov)-3D: grid2cube (Gaussian) (P. Ordejón)-3D: rho2grd (Materials Studio) (O. Paz)

Page 43: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

Tools (II)-TRANSPORT PROPERTIES:

TRANSIESTA (M. Brandbydge et al.)

-PSEUDOPOTENTIAL and BASIS information:

PyAtom (A. García)

-ATOMIC COORDINATES:

Sies2arc (J. Gale)

-DOS, PDOS, Bands:

PlotUtils (O. Paz)

- Others (STM etc)

Page 44: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

44

Some things we have not covered

•• PolarisationPolarisation•• Optical propertiesOptical properties•• Variety of GGAsVariety of GGAs•• Z-matrixZ-matrix•• Tuning performance, output Tuning performance, output and parallelisationand parallelisation•• Alternative basis sets Alternative basis sets (Ghosts, (Ghosts, BesselsBessels, user provided, , user provided, variational variational ……))

Page 45: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

45

Releases

•• 2.0 2.0 STABLE (2.0.2 STABLE (2.0.2 …….).)•• 3.0 3.0 beta (present versionbeta (present version ……))•• DevelopmentDevelopment

Page 46: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

46

3.0

•• Several minor modificationsSeveral minor modifications•• DFT-D andDFT-D and similar molecular mechanicssimilar molecular mechanics•• COOP, COHP COOP, COHP•• Virtual crystal approximationVirtual crystal approximation•• Wu-Cohen GGA, Wu-Cohen GGA, PBEsolPBEsol•• Scripting and Siesta as a serverScripting and Siesta as a server•• Fire quench (optimiser)Fire quench (optimiser)•• 2 x faster 2 x faster diagondiagon•• ……

Page 47: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

47

3.0 and beyond•• Improved parallelisationImproved parallelisation•• FilteringFiltering••TransiestaTransiesta•• LDA+U, pseudo-SICLDA+U, pseudo-SIC•• Spin-OrbitSpin-Orbit•• TD-DFTTD-DFT•• VdW LangrethVdW Langreth’’s s functionalfunctional•• Divide and conquerDivide and conquer & LNV O(N) solvers& LNV O(N) solvers•• Multigrid Multigrid Poisson solver; mixed BCPoisson solver; mixed BC•• (and a very substantial(and a very substantial internal reshape)internal reshape)

Page 48: Department of Earth Sciences University of Cambridge - … 2009/Emilio... · 1 Basic introduction to SIESTA Emilio Artacho Department of Earth Sciences University of Cambridge

48

Back home•• Get academic licence (free): gives youGet academic licence (free): gives you IDID &&passwordpassword•• Compile: lets of shared experience for differentCompile: lets of shared experience for differentplatforms in mailingplatforms in mailing list and its archivelist and its archive•• Architecture dependent file: arch.makeArchitecture dependent file: arch.make Try with Try with ./configure./configure firstfirst


Recommended