Analysis, post-processing and visualization tools



Similar documents
Visualization and post-processing tools for Siesta

How to run SIESTA Víctor M. García Suárez Gollum School. MOLESCO network 20-May-2015 Partially based on a talk by Javier Junquera

Chapter 9. Chemical reactivity of molecules depends on the nature of the bonds between the atoms as well on its 3D structure

A Beginner s Guide to Materials Studio and DFT Calculations with Castep. P. Hasnip (pjh503@york.ac.uk)

Free Electron Fermi Gas (Kittel Ch. 6)

Convolution. 1D Formula: 2D Formula: Example on the web:

Sampling the Brillouin-zone:

Mulliken suggested to split the shared density 50:50. Then the electrons associated with the atom k are given by:

First Step : Identifying Pseudopotentials

Essential Mathematics for Computer Graphics fast

Ajit Kumar Patra (Autor) Crystal structure, anisotropy and spin reorientation transition of highly coercive, epitaxial Pr-Co films

Geostatistics Exploratory Analysis

Advanced visualization with VisNow platform Case study #2 3D scalar data visualization

2, 8, 20, 28, 50, 82, 126.

VWF. Virtual Wafer Fab

NMR and IR spectra & vibrational analysis

521493S Computer Graphics. Exercise 2 & course schedule change

Summary. Load and Open GaussView to start example

Atomic Force Microscope and Magnetic Force Microscope Background Information

Section 3: Crystal Binding

Chapter 10 Molecular Geometry and Chemical Bonding Theory

PCV Project: Excitons in Molecular Spectroscopy

arxiv:hep-lat/ v1 30 Oct 1992

Chemistry Workbook 2: Problems For Exam 2

Section 5.0 : Horn Physics. By Martin J. King, 6/29/08 Copyright 2008 by Martin J. King. All Rights Reserved.

Tutorial 3: Graphics and Exploratory Data Analysis in R Jason Pienaar and Tom Miller

Steady Flow: Laminar and Turbulent in an S-Bend

DO PHYSICS ONLINE FROM QUANTA TO QUARKS QUANTUM (WAVE) MECHANICS

Linear algebra and the geometry of quadratic equations. Similarity transformations and orthogonal matrices

State of Stress at Point

Chapter 27 Magnetic Field and Magnetic Forces

CosmosWorks Centrifugal Loads

Point Lattices in Computer Graphics and Visualization how signal processing may help computer graphics

SCHWEITZER ENGINEERING LABORATORIES, COMERCIAL LTDA.

Eðlisfræði 2, vor 2007

Chapter 22: Electric Flux and Gauss s Law

1. Units of a magnetic field might be: A. C m/s B. C s/m C. C/kg D. kg/c s E. N/C m ans: D

Finite Element Formulation for Beams - Handout 2 -

Files Used in this Tutorial

Orbital Dynamics with Maple (sll --- v1.0, February 2012)

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives

2 Absorbing Solar Energy

MASTER OF SCIENCE IN PHYSICS MASTER OF SCIENCES IN PHYSICS (MS PHYS) (LIST OF COURSES BY SEMESTER, THESIS OPTION)

Linear Static Analysis of a Cantilever Beam Using Beam Library (SI Units)

5.61 Physical Chemistry 25 Helium Atom page 1 HELIUM ATOM

Name: Class: Date: 3) The bond angles marked a, b, and c in the molecule below are about,, and, respectively.

x = + x 2 + x

DOING PHYSICS WITH MATLAB COMPUTATIONAL OPTICS RAYLEIGH-SOMMERFELD DIFFRACTION INTEGRAL OF THE FIRST KIND

: : Solutions to Additional Bonding Problems

Subspace Analysis and Optimization for AAM Based Face Alignment

Chemotaxis and Migration Tool 2.0

Hybrid Molecular Orbitals

Opto-Mechanical I/F for ANSYS

Raster to Vector Conversion for Overlay Analysis

A Short Introduction to Computer Graphics

Activitity (of a radioisotope): The number of nuclei in a sample undergoing radioactive decay in each second. It is commonly expressed in curies

Dimensionality Reduction: Principal Components Analysis

Mesh Discretization Error and Criteria for Accuracy of Finite Element Solutions

CS 4620 Practicum Programming Assignment 6 Animation

Electronic transport properties of nano-scale Si films: an ab initio study

DFT in practice : Part I. Ersen Mete

Visualization of 2D Domains

Molecular Geometry and Chemical Bonding Theory

Surface-state engineering for interconnects on H-passivated Si(100)

Package SHELF. February 5, 2016

Determination of source parameters from seismic spectra

Factoring Patterns in the Gaussian Plane

An introduction to 3D draughting & solid modelling using AutoCAD

Force on a square loop of current in a uniform B-field.

Smoothing. Fitting without a parametrization

7.14 Linear triatomic: A-----B-----C. Bond angles = 180 degrees. Trigonal planar: Bond angles = 120 degrees. B < B A B = 120

Hands-on: Data analysis and advanced scripting. Mario Orsi

1.15 Bonding in Methane and Orbital Hybridization

Volume visualization I Elvins

Plate waves in phononic crystals slabs

VisIt Visualization Tool

Fitting Subject-specific Curves to Grouped Longitudinal Data

2IP WP8 Materiel Science Activity report March 6, 2013

This tutorial provides a recipe for simulating L

An Introduction to Hartree-Fock Molecular Orbital Theory

Problem Solving 5: Magnetic Force, Torque, and Magnetic Moments

Descriptive Statistics

Mohr s Circle. Academic Resource Center

VSEPR Model. The Valence-Shell Electron Pair Repulsion Model. Predicting Molecular Geometry

Molecular Geometry and VSEPR We gratefully acknowledge Portland Community College for the use of this experiment.

The following is an overview of lessons included in the tutorial.

Aerodynamic Design Optimization Discussion Group Case 4: Single- and multi-point optimization problems based on the CRM wing

OBJECT TRACKING USING LOG-POLAR TRANSFORMATION

Creation of an Unlimited Database of Virtual Bone. Validation and Exploitation for Orthopedic Devices

3. Diodes and Diode Circuits. 3. Diodes and Diode Circuits TLT-8016 Basic Analog Circuits 2005/2006 1

Solving Simultaneous Equations and Matrices

Tutorial for Assignment #2 Gantry Crane Analysis By ANSYS (Mechanical APDL) V.13.0


3D Modelling and Volume Rotation of 2D Medical Images

Curves and Surfaces. Goals. How do we draw surfaces? How do we specify a surface? How do we approximate a surface?

Multi-Block Gridding Technique for FLOW-3D Flow Science, Inc. July 2004

Rotation: Moment of Inertia and Torque

Solution: F = kx is Hooke s law for a mass and spring system. Angular frequency of this system is: k m therefore, k

Insertion Devices Lecture 4 Permanent Magnet Undulators. Jim Clarke ASTeC Daresbury Laboratory

Introduction to COMSOL. The Navier-Stokes Equations

Transcription:

Analysis, post-processing and visualization tools Javier Junquera Andrei Postnikov

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

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

DENCHAR plots the charge density and wave functions in real space Wave functions Coefficients of the eigenvector with eigenvalue atomic orbitals Charge density density matrix

DENCHAR operates in two different modes: 2D and 3D 2D Charge density and/or electronic wave functions are printed on a regular grid of points contained in a 2D plane specified by the user. Used to plot contour maps by means of 2D graphics packages. 3D Charge density and/or electronic wave functions are printed on a regular grid of points in 3D. Results printed in Gaussian Cube format. Can be visualized by means of standard programs (Moldel, Molekel, Xcrysden)

How to compile DENCHAR Use the same arch.make file as for the compilation of serial SIESTA Versions before 2.0.1, please check for patches in http://fisica.ehu.es/ag/siesta-extra/issues.html and where to find the User s Guide and some Examples

How to run DENCHAR SIESTA WriteDenchar WriteWaveFunctions %block WaveFuncKPoints 0.0 0.0 0.0 %endblock WaveFuncKPoints.true..true. Only if you want to plot wave functions Output of SIESTA required by DENCHAR SystemLabel.PLD SystemLabel.DIM SystemLabel.DM SystemLabel.WFS (only if wave functions) ChemicalSpecies.ion (one for each chemical species) DENCHAR $ ln s ~/siesta/src/denchar. $ denchar < dencharinput.fdf You do not need to rerun SIESTA to run DENCHAR as many times as you want

Input of DENCHAR General issues Written in fdf (Flexible Data Format), as in SIESTA It shares some input variables with SIESTA SystemLabel NumberOfSpecies ChemicalSpeciesLabel Some other input variables are specific of DENCHAR (all of them start with Denchar. ) To specify the mode of usage To define the plane or 3D grid where the charge/wave functions are plotted To specify the units of the input/output Input of DENCHAR can be attached at the end of the input file of SIESTA

Input of DENCHAR How to specify the mode of run Denchar.TypeOfRun (string) 2D or 3D Denchar.PlotCharge (logical).true. or.false. If.true. SystemLabel.DM must be present Denchar.PlotWaveFunctions (logical).true. or.false. If.true. SystemLabel.WFS must be present Either one or the other (or both of them) must be.true.

Input of DENCHAR How to specify the plane Denchar.PlaneGeneration NormalVector TwoLines ThreePoints ThreeAtomicIndices Plane of the plot in 2D mode x-y plane in 3D mode (string) + more variables to define the generation object (the normal vector, lines, points or atoms) origin of the plane x-axis size of the plane number of points in the grid Different variables described in the User Guide (take a look to the Examples)

Output of DENCHAR 2D mode Spin unpolarized: Charge density self-consistent charge (.CON.SCF) deformation charge (.CON.DEL) Spin polarized: density spin up (.CON.UP) density spin down (.CON.DOWN) deformation charge (.CON.DEL) magnetization (.CON.MAG) Format Wave functions Wave function for different bands (each wavefunction in a different file).con.wf#, where # is the number of the wf (If spin polarized, suffix.up or.down)

Output of DENCHAR 3D mode Spin unpolarized: Charge density self-consistent charge (.RHO.cube) deformation charge (.DRHO.cube) Spin polarized: density spin up (.RHO.UP.cube) density spin down (.RHO.DOWN.cube) deformation charge (.DRHO.cube) Wave functions Wave function for different bands (each wavefunction in a different file).wf#.cube, where # is the number of the wf (If spin polarized, suffix.up or.down) Format Gaussian Cube format Atomic coordinates and grid points in the reference frame given in the input Reference frame orthogonal

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

PLRHO plots a 3D isosurface of the charge density and colours it with a second function LDOS integrated in a given energy interval + electrostatic potential + total potential + spin density Plrho reads the values of the functions in the real space grid and Interpolates to plot the 3D surface.

How to compile PLRHO First you need to install the PGPLOT library, available from http://www.astro.caltech.edu/~tjp/pgplot You can find plrho at ~/siesta/utils/plrho Then compile PLRHO with $ f90 plrho.f lx11 lpgplot o plrho Check plrho_guide.txt for extra information.

How to run PLRHO SIESTA SaveRho.true. SaveElectrostaticPotential.true. SaveTotalPotential.true. %block LocalDensityOfStates %block AtomicCoordinatesOrigin Depending on what you want to plot If you want to center the system Output of SIESTA required by PLRHO SystemLabel.RHO SystemLabel.VH SystemLabel.VT SystemLabel.LDOS PLRHO Prepare the input file plrho.dat $ plrho You do not need to rerun SIESTA to run PLRHO as many times as you want

Input of PLRHO: plrho.dat

Input of PLRHO: plrho.dat rho ldos vh vt spin LDOS integrated in a given energy interval + electrostatic potential + total potential + spin density

Input of PLRHO: plrho.dat Viewpoint is always from above (positive z axis) y z x To view the system from a different angle, rotate it with the Euler angles

Input of PLRHO: plrho.dat Example: view from y (Euler angles = 90-90 -90) y z z x y x

Input of PLRHO: plrho.dat Example: view from y (Euler angles = 90-90 -90) Reference axes y System axes y z x z x

Input of PLRHO: plrho.dat Example: view from y (Euler angles = 90-90 -90) Reference axes System axes y y x z x z x y z Alpha: first rotation around z

Input of PLRHO: plrho.dat Example: view from y (Euler angles = 90-90 -90) Reference axes System axes y y x x z x z x y z z y Beta: rotation around y

Input of PLRHO: plrho.dat Example: view from y (Euler angles = 90-90 -90) Reference axes System axes y y x x z z x z x y z z y y x Gamma: second rotation around z

Input of PLRHO: plrho.dat

Input of PLRHO: plrho.dat Value of colouring function Potential or Spin Pure blue Third value: maximum saturation range blue Interpolation white/blue Second value: mean saturation range white Interpolation red/white First value: minimum saturation range red Pure red

Output of PLRHO screen grey-scale postscrip colour postscrip

Output of PLRHO H 2 O molecule

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

Density Of States (DOS) the number of one-electron levels between E and E + de Si bulk

Density Of States (DOS) the number of one-electron levels between E and E + de Si bulk Units: (Energy) -1

Projected Density Of States (PDOS) the number of one-electron levels with weight on orbital µ between E and E + de Coefficients of the eigenvector with eigenvalue Overlap matrix of the atomic basis Units: (Energy) -1 Relation between the DOS and PDOS:

The eigenvalues are broadening by a gaussian to smooth the shape of the DOS and PDOS σ related with the FWHM

Two step procedure to produce smooth DOS and PDOS First: Run a simulation with a sensible (converged) number of k-points kgrid_cutoff %block kgrid_monkhorst_pack Get converged geometry and density matrix Second: Starting from the previously converged geometry and density matrix, run a single SCF step with fixed geometry, with many more k-points DM.UseSaveDM MaxSCFIterations 1 MD.NumCGsteps (or equivalent) 0 Increase number of k-points (see above) %block ProjectedDensityOfStates.true.

How to compute the DOS and PDOS %block ProjectedDensityOfStates -20.0 10.0 0.200 500 ev %endblock ProjectedDensityOfStates -20.0 10.0 : Energy window where the DOS and PDOS will be computed

How to compute the DOS and PDOS %block ProjectedDensityOfStates -20.0 10.0 0.200 500 ev %endblock ProjectedDensityOfStates -20.0 10.0 : Energy window where the DOS and PDOS will be computed 0.200 : Peak width of the gaussian used to broad the eigenvalues (energy)

How to compute the DOS and PDOS %block ProjectedDensityOfStates -20.0 10.0 0.200 500 ev %endblock ProjectedDensityOfStates -20.0 10.0 : Energy window where the DOS and PDOS will be computed 0.200 : Peak width of the gaussian used to broad the eigenvalues (energy) 500 : Number of points in the histogram

How to compute the DOS and PDOS %block ProjectedDensityOfStates -20.0 10.0 0.200 500 ev %endblock ProjectedDensityOfStates -20.0 10.0 : Energy window where the DOS and PDOS will be computed 0.200 : Peak width of the gaussian used to broad the eigenvalues (energy) 500 : Number of points in the histogram ev : Units in which the previous energies are introduced

Output for the Density Of States SystemLabel.DOS Format Energy (ev) DOS Spin Up (ev -1 ) DOS Spin Down (ev -1 )

Output for the Projected Density Of States SystemLabel.PDOS Written in XML Energy Window One element <orbital> for every atomic orbital in the basis set

How to digest the SystemLabel.PDOS file During the compilation of SIESTA For some compilers, the libwxml.a library needs to be compiled with -DWXML_INIT_FIX (see known issues in http://fisica.ehu.es/ag/siesta-extra/issues.html) pdosxml (by Alberto García) Siesta/Util/pdosxml Edit the readme file to: Learn how to select the orbitals whose PDOS will be accumulated How to compile the code How to run the code fmpdos (by Andrei Postnikov) Download from http://www.home.uni-osnabrueck.de/apostnik/download.html Compile and follow the instructions at run-time

Normalization of the DOS and PDOS Number of bands per k-point Number of atomic orbitals in the unit cell Number of electrons in the unit cell Occupation factor at energy E

Example of DOS and PDOS total Fe, d J. Junquera et al. Surf. Sci. 482-485, 625 (2001) SIESTA, single-zeta polarized basis K. A. Mäder et al. Phys. Rev. B 48, 4364 (1998) All electron calculation

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

How to extract from the immense detail provided by firstprinciples calculations on surfaces reliable values of the physical quantities of interest

Physical quantities of interest in surfaces and interfaces Charge densities at the surface/interface Dipole moment densities at the surface/interface Work functions (surfaces) and band offsets (interfaces) : the band structure term Difference of the top of the valence bands From two independent bulk band structure calculations of the bulk material : jump of the average electrostatic potential Contains all the intrinsic interface effects <V A > <V B > Obtained by nanosmoothing the electrostatic potential

First step: average in the plane vacuum BaTiO 3 vacuum

Second step: nanosmooth the planar average on the z-direction vacuum BaTiO 3 vacuum

Atomic scale fluctuations are washed out by filtering the magnitudes via convolution with smooth functions

is readily obtained from the nanosmoothed potential vacuum BaTiO 3 vacuum

How to compile MACROAVE Use the same arch.make file as for the compilation of serial SIESTA and where to find the User s Guide and some Examples

How to run MACROAVE SIESTA SaveRho SaveTotalCharge SaveIonicCharge SaveDeltaRho SaveElectrostaticPotential SaveTotalPotential.true..true..true..true..true..true. Depending on what you want to nanosmooth Output of SIESTA required by MACROAVE SystemLabel.RHO SystemLabel.TOCH SystemLabel.IOCH SystemLabel.DRHO SystemLabel.VH SystemLabel.VT MACROAVE Prepare the input file macroave.in $ ~/siesta/util/macroave/src/macroave.x You do not need to rerun SIESTA to run MACROAVE as many times as you want

Input of MACROAVE: macroave.in The same code with the same input runs with information provided by Siesta or Abinit (indeed it should be quite straight forward to generalize to any other code)

Input of MACROAVE: macroave.in Name of the magnitude that will be nanosmoothed Potential: Charge: TotalCharge: SystemLabel.VH SystemLabel.RHO SystemLabel.TOCH

Input of MACROAVE: macroave.in SystemLabel

Input of MACROAVE: macroave.in Number of square filter functions used for nanosmoothing 1 Surfaces 2 Interfaces and superlattices

Input of MACROAVE: macroave.in Length of the different square filter functions (in bohrs)

Input of MACROAVE: macroave.in Total number of electrons (used only to renormalize if we nanosmooth the electronic charge)

Input of MACROAVE: macroave.in Type of interpolation from the SIESTA mesh to a FFT mesh Spline or Linear

Output of MACROAVE Planar average Nanosmoothed SystemLabel.PAV SystemLabel.MAV Format Units Coordinates: bohr Potential: ev Charge density: electrons/bohr 3

To learn more on nanosmoothing and how to compute work functions and band offsets with SIESTA