OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5....

94
OCEAN Tutorial, Session 1

Transcript of OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5....

Page 1: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

OCEANTutorial,Session1

Page 2: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Getting started with OCEAN �  RunningonBNLcluster

�  Running�  StagesofOCEAN�  Firstresults�  ConvergingtheDFTstage�  Inputfile(s)�  ConvergingOCEAN

Page 3: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

What is OCEAN? � OCEANisaperlscript:ocean.pl

�  Parsestheinputfile�  Bunchoffilemanagementthroughout�  RunssomeDFTcalculations�  Calculatesthescreenedcore-holepotential�  RunsanumberofBethe-Salpeterequation(BSE)calculations

� OCEANisacompiledexecutable:ocean.x�  CalculatestheBSE�  Alsoindependentparticle,RPA*,adiabaticTDLDA*

Page 4: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Simulating materials with OCEAN �  Everythingisperiodic!

�  Crystallinesystemsuseunitcell�  Liquids,surfaces,andmoleculesalsopossible

�  Cellneedstobe“bigenough”�  Capturethedisorder�  Avoidspuriousinteractions

�  Structureistheonlyfreeparameter�  Choosesystemandx-ray�  Otherparametersareforconvergence

�  BestBSEanswer,notnecessarilybestagreement

Page 5: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Brief aside on using UNIX variants � Notalwaysintuitive� Askifyouaren’tsure!

�  Tostopthecomputerfromdoingthings�  Qquitsmanyprograms�  Control+Ckillsthings(^C)

Page 6: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for the workshop � We’llberunningonBNLlocalcluster� Openupaterminal&connect

�  Replace“jtv3”withyourusername1.  >ssh–Y–[email protected].  >ssh–Y–Ajtv3@icsubmit01

Page 7: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for the workshop � We’llberunningonBNLlocalcluster� Openupaterminal&connect

�  Replace“jtv3”withyourusername1.  >ssh–Y–[email protected].  >ssh–Y–Ajtv3@icsubmit01

� Makesureplottingworks1.  >gnuplot2.  >plotx

� Windowsusers:checkoutmobaxterm,MacusersmightneedtoinstallX11

Page 8: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Running OCEAN >/path/to/ocean/ocean.plinputFile

Page 9: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Running OCEAN: important etymology >pwd

Prompt

Page 10: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Running OCEAN: important etymology >pwd/current/path

Page 11: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Running OCEAN: important etymology >pwd/current/path>/path/to/ocean/ocean.plinputFile

Page 12: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Running OCEAN: important etymology >pwd/current/path>/path/to/ocean/ocean.plinputFile

RunDirectory•  WhereyouranOCEANfrom•  Alloutputisrelativetohere

Page 13: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop � OCEANisbuiltandinstalled

�  /hpcgpfs01/work/workshop/ocean_tutorial/bin� Wewanttorunonthescratchfilesystem!

1.  >cd/hpcgpfs01/scratch

changedirectory

Page 14: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop � OCEANisbuiltandinstalled

�  /hpcgpfs01/work/workshop/ocean_tutorial/bin� Wewanttorunonthescratchfilesystem!

1.  >cd/hpcgpfs01/scratch2.  >mkdir[yourusername]

Makeanewdirectory

Page 15: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop � OCEANisbuiltandinstalled

�  /hpcgpfs01/work/workshop/ocean_tutorial/bin� Wewanttorunonthescratchfilesystem!

1.  >cd/hpcgpfs01/scratch2.  >mkdir[yourusername]3.  >cd[yourusername]

Page 16: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop � OCEANisbuiltandinstalled

�  /hpcgpfs01/work/workshop/ocean_tutorial/bin� Wewanttorunonthescratchfilesystem!

1.  >cd/hpcgpfs01/scratch2.  >mkdir[yourusername]3.  >cd[yourusername]4.  >pwd

Page 17: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop � Wewanttorunonthescratchfilesystem!

1.  >cd/hpcgpfs01/scratch2.  >mkdir[yourusername]3.  >cd[yourusername]4.  >pwd

�  Copythetutorialfilesover1.  >cp–r/hpcgpfs01/work/workshop/ocean_tutorial/session1.2.  >cdsession13.  >pwd

Page 18: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop �  Lookatthefilerunit

�  ls(lowercaseL)showsthefilesinthecurrentdirectory

�  >lessrunit�  Gettingaroundinless

�  Up/downarrow�  Gjumpstobottom�  Flockstobottomandrefreshes

�  Control+c(^c)tostopthis�  qquits

Page 19: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop �  Lookatthefilerunit

�  ls(lowercaseL)showsthefilesinthecurrentdirectory

�  >lessrunit�  Cluster-dependent

�  Queueinformation�  Loaduplibraries

�  RunOCEAN�  Onyourowncomputeryou

wouldjusttypethisline

Page 20: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop �  Tosubmitourjobtothequeue

�  >sbatchrunit�  Submittedbatchjob369632

�  OCEANwritesstufftotheterminalwhileitruns�  Withthequeuethisgoesinto

afile“slurm-369632.out”

Page 21: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop �  OCEANwritesstufftotheterminalwhileitruns

�  Withthequeuethisgoesintoafile�  “slurm-369632.out”�  >lessslurm-369632.out

Page 22: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Detour for this workshop �  OCEANwritesstufftotheterminalwhileitruns

�  Withthequeuethisgoesintoafile�  “slurm-369632.out”�  >lessslurm-369632.out�  Whenfinishedyou’llget“Oceanisdone”

Page 23: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

First Run: LiF

Whilethatruns…

Page 24: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Stages of OCEAN 1)  Parsing(Common)2)  Atomic(OPF)3)  DFT4)  PREP5)  SCREEN6)  BSE(CNBSE/NBSE)

Page 25: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Parsing �  Inputfileread�  LotsoflittlefilescreatedinCommon/

Page 26: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Atomic � OCEANusespseudopotentials

�  Replacenuclei’sCoulombpotentialZ/r�  Nocoreelectrons

�  X-rayspectroscopyinvolvesthecoreelectrons

� Obviouslythereisaproblemhere

Page 27: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Atomic �  Carryouttwoatomiccalculations

�  All-electron�  Pseudo-ized

� Outsideofcutoffrcorbitalsarethesame

All-electron Pseudo-ized

Page 28: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Atomic �  Carryouttwoatomiccalculations

�  All-electron�  Pseudo-ized

� Outsideofcutoffrcorbitalsarethesame� OptimalProjectorFunctions(OPFs)

�  BasisfunctionstospanAE/PS�  Limitedradius(~2Bohr)�  Limitedenergyrange(100eV)

�  PAW-likemethod�  P.E.BlöchlPRB50,17953(1994)�  E.L.ShirleyJ.Elect.Spect.Relat.Phenom.110-111,305(2000)

AE PS

Page 29: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Stages of OCEAN 1)  Parsing(Common)2)  Atomic(OPF)3)  DFT4)  PREP5)  SCREEN6)  BSE(CNBSE/NBSE)

Page 30: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Density Functional Theory (DFT) � OCEANseekstobeDFTcodeagnostic

�  QuantumESPRESSO(4.3-6.1,6.2-6.3*)�  www.quantum-espresso.org�  6.2-6.3:add“-D__OLDXML”tomake.inc

�  ABINIT5.x?-8.10�  www.abinit.org

�  Todaywe’reusingQE

Page 31: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Density Functional Theory (DFT) � WhatdoweneedDFTfor?

Page 32: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Density Functional Theory (DFT) Threesteps:1)  Self-ConsistentField(SCF)

�  DFTmeansHisH[n]�  Convergedensityiteratively�  Onlyoccupiedstates

2)  Non-SCFforBSEorbitals�  Densek-pointmesh

3)  Non-SCFforscreening�  Fewk-points,butmanybands

Page 33: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Density Functional Theory (DFT) Logfiles:1)  Self-ConsistentField(SCF)

�  DFT/scf.out2)  Non-SCFforBSEorbitals

�  DFT/XXXYYYZZZ/nscf.out�  Directorydeterminedbyk-pointgrid(e.g.,008008008)

3)  Non-SCFforscreening�  DFT/SCREEN/nscf.out

Page 34: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

PREP �  Filemanagement

�  HidesdifferencesbetweenABINIT&QE�  NewDFTinterfacesgohere

Page 35: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Stages of OCEAN 1)  Parsing(Common)2)  Atomic(OPF)3)  DFT4)  PREP5)  SCREEN6)  BSE(CNBSE/NBSE)

Page 36: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

SCREENing �  Electron-holeattractionisscreenedintheBSE� UseRPAscreening

�  �  Eachatomicsitewillhaveauniqueresponse

� Wewillcomebacktothis

�0 = iGG<latexit sha1_base64="5M7pFjBRq0c3Sfc8mfZxGPkZ8r4=">AAACBnicbVDLSsNAFL2pr1pfVZduBovgqiRV0I1QcFGXFewDmlAm00k7dDIJMxOxhO79Arf6Be7Erb/hB/gfTtMsbOuBC4dz7uVcjh9zprRtf1uFtfWNza3idmlnd2//oHx41FZRIgltkYhHsutjRTkTtKWZ5rQbS4pDn9OOP76d+Z1HKhWLxIOexNQL8VCwgBGsjeS6ZMT6NrpBrNHolyt21c6AVomTkwrkaPbLP+4gIklIhSYcK9Vz7Fh7KZaaEU6nJTdRNMZkjIe0Z6jAIVVemv08RWdGGaAgkmaERpn69yLFoVKT0DebIdYjtezNxP+8XqKDay9lIk40FWQeFCQc6QjNCkADJinRfGIIJpKZXxEZYYmJNjUtpDwFRp2WTC/OcgurpF2rOhfV2v1lpV7PGyrCCZzCOThwBXW4gya0gEAML/AKb9az9W59WJ/z1YKV3xzDAqyvX+L0mIQ=</latexit>

�0<latexit sha1_base64="bkwLAJvKuyaHjc+OSappOxtTj+Q=">AAACAHicbVDLSgNBEOyNrxhfUY9eBoPgKexGQY8BLx4jmAckS5id9CZjZmeXmVkxhFz8Aq/6Bd7Eq3/iB/gfTpI9mMSChqKqm+6uIBFcG9f9dnJr6xubW/ntws7u3v5B8fCooeNUMayzWMSqFVCNgkusG24EthKFNAoENoPhzdRvPqLSPJb3ZpSgH9G+5CFn1Fip0WED3nW7xZJbdmcgq8TLSAky1LrFn04vZmmE0jBBtW57bmL8MVWGM4GTQifVmFA2pH1sWypphNofz66dkDOr9EgYK1vSkJn6d2JMI61HUWA7I2oGetmbiv957dSE1/6YyyQ1KNl8UZgKYmIyfZ30uEJmxMgSyhS3txI2oIoyYwNa2PIUWnVSsLl4yymskkal7F2UK3eXpWo1SygPJ3AK5+DBFVThFmpQBwYP8AKv8OY8O+/Oh/M5b8052cwxLMD5+gWlcJbU</latexit>

Page 37: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

BSE �  CNBSE(NBSEforvalence)�  Collectinfofromothersections�  Calculatematrixelements

�  <a|d|v>�  RunBSEcodeocean.x

Page 38: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

LiF �  Shouldbefinishedbynow�  Theoutputshouldendwith“OCEANisdone”�  FinalspectraareinCNBSE

�  absspct_F_.0001_1s_01

� Opengnuplot�  plot“CNBSE/absspct_F_.0001_1s_01”wlp�  replot“Results/absspct.1.01”wl

Page 39: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

LiF

Page 40: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Outline �  Running�  StagesofOCEAN�  Firstresults�  ConvergingtheDFTstage�  Inputfile(s)�  ConvergingOCEAN

Page 41: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

DFT � Hamiltoniandependsonelectrondensity�  ElectrondensityfromsolvingHamiltonian

�  SCF:Self-consistentfield�  Repeatuntildensitydoesn’tchange�  DFTcodehandlesthis

Page 42: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

SCF convergence � Needcorrectstructure,spinordering,etc.

1.  ecut:Energycut-off�  Discretizecalculationusingplanewaves�  Highestenergyplanewavesetbyecut=½G2

�  Larger=moreaccurate,butmoreexpensive2.  ngkpt:K-pointsamplingfortheSCFrun

�  IntegralsoverBrillouinzonereplacedbysums�  Larger=moreaccurate,butmoreexpensive

eiG·r<latexit sha1_base64="qLJobUQo2Oslh9UC7iTgVEMpOFg=">AAACDXicbVDLSsNAFL2pr1pfqS7dDBbBVUlE0GXRhS4r2Ae0tUwmk3boZBJmJmoJ+Qa/wK1+gTtx6zf4Af6H0zYL23rgwuGcezmX48WcKe0431ZhZXVtfaO4Wdra3tnds8v7TRUlktAGiXgk2x5WlDNBG5ppTtuxpDj0OG15o6uJ33qgUrFI3OlxTHshHggWMIK1kfp2md6niKFr1CV+pJFEWd+uOFVnCrRM3JxUIEe9b/90/YgkIRWacKxUx3Vi3Uux1IxwmpW6iaIxJiM8oB1DBQ6p6qXT1zN0bBQfBZE0IzSaqn8vUhwqNQ49sxliPVSL3kT8z+skOrjopUzEiaaCzIKChCMdoUkPyGeSEs3HhmAimfkVkSGWmGjT1lzKU2DUrGR6cRdbWCbN06rrVN3bs0rtMm+oCIdwBCfgwjnU4Abq0AACj/ACr/BmPVvv1of1OVstWPnNAczB+voFQNKa1Q==</latexit><latexit sha1_base64="qLJobUQo2Oslh9UC7iTgVEMpOFg=">AAACDXicbVDLSsNAFL2pr1pfqS7dDBbBVUlE0GXRhS4r2Ae0tUwmk3boZBJmJmoJ+Qa/wK1+gTtx6zf4Af6H0zYL23rgwuGcezmX48WcKe0431ZhZXVtfaO4Wdra3tnds8v7TRUlktAGiXgk2x5WlDNBG5ppTtuxpDj0OG15o6uJ33qgUrFI3OlxTHshHggWMIK1kfp2md6niKFr1CV+pJFEWd+uOFVnCrRM3JxUIEe9b/90/YgkIRWacKxUx3Vi3Uux1IxwmpW6iaIxJiM8oB1DBQ6p6qXT1zN0bBQfBZE0IzSaqn8vUhwqNQ49sxliPVSL3kT8z+skOrjopUzEiaaCzIKChCMdoUkPyGeSEs3HhmAimfkVkSGWmGjT1lzKU2DUrGR6cRdbWCbN06rrVN3bs0rtMm+oCIdwBCfgwjnU4Abq0AACj/ACr/BmPVvv1of1OVstWPnNAczB+voFQNKa1Q==</latexit><latexit sha1_base64="qLJobUQo2Oslh9UC7iTgVEMpOFg=">AAACDXicbVDLSsNAFL2pr1pfqS7dDBbBVUlE0GXRhS4r2Ae0tUwmk3boZBJmJmoJ+Qa/wK1+gTtx6zf4Af6H0zYL23rgwuGcezmX48WcKe0431ZhZXVtfaO4Wdra3tnds8v7TRUlktAGiXgk2x5WlDNBG5ppTtuxpDj0OG15o6uJ33qgUrFI3OlxTHshHggWMIK1kfp2md6niKFr1CV+pJFEWd+uOFVnCrRM3JxUIEe9b/90/YgkIRWacKxUx3Vi3Uux1IxwmpW6iaIxJiM8oB1DBQ6p6qXT1zN0bBQfBZE0IzSaqn8vUhwqNQ49sxliPVSL3kT8z+skOrjopUzEiaaCzIKChCMdoUkPyGeSEs3HhmAimfkVkSGWmGjT1lzKU2DUrGR6cRdbWCbN06rrVN3bs0rtMm+oCIdwBCfgwjnU4Abq0AACj/ACr/BmPVvv1of1OVstWPnNAczB+voFQNKa1Q==</latexit><latexit sha1_base64="qLJobUQo2Oslh9UC7iTgVEMpOFg=">AAACDXicbVDLSsNAFL2pr1pfqS7dDBbBVUlE0GXRhS4r2Ae0tUwmk3boZBJmJmoJ+Qa/wK1+gTtx6zf4Af6H0zYL23rgwuGcezmX48WcKe0431ZhZXVtfaO4Wdra3tnds8v7TRUlktAGiXgk2x5WlDNBG5ppTtuxpDj0OG15o6uJ33qgUrFI3OlxTHshHggWMIK1kfp2md6niKFr1CV+pJFEWd+uOFVnCrRM3JxUIEe9b/90/YgkIRWacKxUx3Vi3Uux1IxwmpW6iaIxJiM8oB1DBQ6p6qXT1zN0bBQfBZE0IzSaqn8vUhwqNQ49sxliPVSL3kT8z+skOrjopUzEiaaCzIKChCMdoUkPyGeSEs3HhmAimfkVkSGWmGjT1lzKU2DUrGR6cRdbWCbN06rrVN3bs0rtMm+oCIdwBCfgwjnU4Abq0AACj/ACr/BmPVvv1of1OVstWPnNAczB+voFQNKa1Q==</latexit>

Page 43: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

SCF convergence �  CheckthetotalenergyoftheSCFcalculation

�  Ifecut→∞andngkpt→∞doestheresultchange?�  0.01eV/atom

�  >lessDFT/scf.outandscrolldown(hit‘G’thenuse‘b’tojumpup)

�  >grep‘!’DFT/scf.out

Page 44: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

SCF convergence �  ecut:Setbypseudopotential

� Mostrestrictivepseudoinyourstructure�  Notbyelement!

�  Changingpseudoforsameelementcanchangecutoff

�  ngkpt:unitcelldependent�  Higherforsmallerbandgaps�  Higherforsmallerunitcells

Page 45: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

SCF convergence �  Startconvergencescriptthenexamineit

�  >sbatchrunConvergence�  >lessrunConvergence

�  Firstloopisforngkpt�  23–83

Page 46: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

SCF convergence �  Startconvergencescriptthenexamineit

�  >sbatchrunConvergence�  >lessrunConvergence

�  Firstloopisforngkpt�  Secondisforecut

�  40Ry–120Ry

Page 47: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

SCF convergence �  Startwithngkpt

�  >gnuplot�  >p‘CONV/k.txt’wlp

�  Thisisngkpt�  {222}–{888}�  33isconverged

-667.884

-667.883

-667.882

-667.881

-667.88

-667.879

-667.878

2 3 4 5 6 7 8

Tota

l Ene

rgy

(eV)

ngkpt grid

’CONV/k.txt’

Page 48: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

SCF convergence � Nowecut

�  >p‘CONV/e.txt’wlp

�  Plane-waveenergycutoff�  40Ry–120Ry�  80Rylooksgood�  Zoomin,100Ryisbetter

-668

-666

-664

-662

-660

-658

-656

40 50 60 70 80 90 100 110 120

Tota

l Ene

rgy

(eV)

Ecut Energy (Ry)

’CONV/e.txt’

Page 49: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

SCF convergence �  Importanttocheck

�  SCFisthefoundation�  DFT/scf.outhasimportantinfo

�  Forcesonatoms�  Magnetizationinfowhenrelevant

�  SettingsinLiF.inarealreadygood!

Page 50: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Outline �  Running�  StagesofOCEAN�  Firstresults�  ConvergingtheDFTstage�  Inputfile(s)

�  Photonfiles� Maininput�  Pseudopotentials�  fill&opts

�  Convergence

Page 51: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Spectra files: absspct_F_.0001_1s_01 �  absspct–absorption

�  xesspctisemission�  rxsspctisRIXS

�  F_–fluoreneatom�  “_”forsingleletterelements�  O_,N_,V_,…�  Si,Ti,Cu,…

�  1s–theKedge

�  0001–atomindex�  Firstfluoreneininput�  ConsideramorphousSiO2

�  64formulaunits�  Si–0001–0064�  O–0001–0128

�  01–photonfileindex�  Polarizations� Momentumdirection&transfer(NRIXS)

Page 52: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Photon files �  photon1–photon99

�  Automaticdetectioninrundirectory�  Completelyspecifiestheelectron-photonoperator

Page 53: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Photon files: LiF/photon1 dipolecartesian001endcartesian010end696

�  Electron-photonoperator�  Polarizationdirection

� Momentumdirection*

�  Photonenergy*

*Notusedfordipole

Page 54: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Photon files: LiF/photon2 quadcartesian001endcartesian010end696

�  Electron-photonoperator�  Polarizationdirection

� Momentumdirection

�  Photonenergy*

*Determinesmomentummagnitude

Page 55: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

X-ray absorption operator � 

�  (Simplified)dipoleselectionrules:�  Δl=±1,0�  Nos→s

� Quadrupole�  Requireslargeq–higherenergy�  Pre-edgefeatures,e.g.,3dtransitionmetalKedges�  Averagingoverdirectionsismorecomplicated

" · r + i/2(" · r)(q · r) + · · ·<latexit sha1_base64="+DlAmcBJLUufMylXdKZ/fAka/L4=">AAACUXicbZDLSgMxFIZPx1ttvVRdugkWoVIoMyLosujGZQV7gU4pmTRTg5lkTDJiGebNfAtXbsWdvoA7M21Bqz0Q+Pn/czgnXxBzpo3rvhacldW19Y3iZqm8tb2zW9nb72iZKELbRHKpegHWlDNB24YZTnuxojgKOO0G91d53n2kSjMpbs0kpoMIjwULGcHGWsNKx3/EisaacSmQT0bSIIXqyNehwiRlWXqaodqSnhPrRtjcBWH6kP2Y9ZnUw0rVbbjTQv+FNxdVmFdrWHn3R5IkERWGcKx133NjM0ixMoxwmpX8RNMYk3s8pn0rBY6oHqTT/2fo2DojFEplnzBo6v6eSHGk9SQKbGd+s/6b5eayrJ+Y8GKQMhEnhgoyWxQmHBmJcphoxBQlhk+swEQxeysid9iSMxb5wpannGdmsXh/IfwXndOG5za8m7Nq83IOqAiHcAQ18OAcmnANLWgDgWd4gw/4LLwUvhxwnFmrU5jPHMBCOeVvoqizuw==</latexit><latexit sha1_base64="+DlAmcBJLUufMylXdKZ/fAka/L4=">AAACUXicbZDLSgMxFIZPx1ttvVRdugkWoVIoMyLosujGZQV7gU4pmTRTg5lkTDJiGebNfAtXbsWdvoA7M21Bqz0Q+Pn/czgnXxBzpo3rvhacldW19Y3iZqm8tb2zW9nb72iZKELbRHKpegHWlDNB24YZTnuxojgKOO0G91d53n2kSjMpbs0kpoMIjwULGcHGWsNKx3/EisaacSmQT0bSIIXqyNehwiRlWXqaodqSnhPrRtjcBWH6kP2Y9ZnUw0rVbbjTQv+FNxdVmFdrWHn3R5IkERWGcKx133NjM0ixMoxwmpX8RNMYk3s8pn0rBY6oHqTT/2fo2DojFEplnzBo6v6eSHGk9SQKbGd+s/6b5eayrJ+Y8GKQMhEnhgoyWxQmHBmJcphoxBQlhk+swEQxeysid9iSMxb5wpannGdmsXh/IfwXndOG5za8m7Nq83IOqAiHcAQ18OAcmnANLWgDgWd4gw/4LLwUvhxwnFmrU5jPHMBCOeVvoqizuw==</latexit><latexit sha1_base64="+DlAmcBJLUufMylXdKZ/fAka/L4=">AAACUXicbZDLSgMxFIZPx1ttvVRdugkWoVIoMyLosujGZQV7gU4pmTRTg5lkTDJiGebNfAtXbsWdvoA7M21Bqz0Q+Pn/czgnXxBzpo3rvhacldW19Y3iZqm8tb2zW9nb72iZKELbRHKpegHWlDNB24YZTnuxojgKOO0G91d53n2kSjMpbs0kpoMIjwULGcHGWsNKx3/EisaacSmQT0bSIIXqyNehwiRlWXqaodqSnhPrRtjcBWH6kP2Y9ZnUw0rVbbjTQv+FNxdVmFdrWHn3R5IkERWGcKx133NjM0ixMoxwmpX8RNMYk3s8pn0rBY6oHqTT/2fo2DojFEplnzBo6v6eSHGk9SQKbGd+s/6b5eayrJ+Y8GKQMhEnhgoyWxQmHBmJcphoxBQlhk+swEQxeysid9iSMxb5wpannGdmsXh/IfwXndOG5za8m7Nq83IOqAiHcAQ18OAcmnANLWgDgWd4gw/4LLwUvhxwnFmrU5jPHMBCOeVvoqizuw==</latexit><latexit sha1_base64="+DlAmcBJLUufMylXdKZ/fAka/L4=">AAACUXicbZDLSgMxFIZPx1ttvVRdugkWoVIoMyLosujGZQV7gU4pmTRTg5lkTDJiGebNfAtXbsWdvoA7M21Bqz0Q+Pn/czgnXxBzpo3rvhacldW19Y3iZqm8tb2zW9nb72iZKELbRHKpegHWlDNB24YZTnuxojgKOO0G91d53n2kSjMpbs0kpoMIjwULGcHGWsNKx3/EisaacSmQT0bSIIXqyNehwiRlWXqaodqSnhPrRtjcBWH6kP2Y9ZnUw0rVbbjTQv+FNxdVmFdrWHn3R5IkERWGcKx133NjM0ixMoxwmpX8RNMYk3s8pn0rBY6oHqTT/2fo2DojFEplnzBo6v6eSHGk9SQKbGd+s/6b5eayrJ+Y8GKQMhEnhgoyWxQmHBmJcphoxBQlhk+swEQxeysid9iSMxb5wpannGdmsXh/IfwXndOG5za8m7Nq83IOqAiHcAQ18OAcmnANLWgDgWd4gw/4LLwUvhxwnFmrU5jPHMBCOeVvoqizuw==</latexit>

Page 56: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

LiF: No quadrupole contribution �  Gnuplot(again)

�  plot“CNBSE/absspct_F_.0001_1s_01”wlp�  replot“CNBSE/absspct_F_.0001_1s_02”wl

Page 57: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Photon files: qRaman Non-resonantInelasticX-rayScattering(NRIXS)

orX-rayRamanScattering(XRS)�  Energyandmomentumdecoupled

Largemomentumtransfer

Smallmomentumtransfer

Page 58: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

NRIXS operator � Non-resonantInelasticX-rayScattering(X-rayRamanScattering)� Decouplestransferredmomentumandenergy

�  Highmomentumatlowenergyedges

�  �  Forsmallqthisisdipolelike�  Largeqallowsnon-dipoletransitions

eiq·r = 1 + iq · r � (q · r)2/2 + · · ·<latexit sha1_base64="rbo9awQUnEtEOD1ZshT2n2JyqmU=">AAACWHicbZDLSgNBEEUr4/sd49JNYRAiapwJgm6EoBuXCkYDyST0dHqSJj0Pu3vEMMzX+RW6duNWf8BOzMI8Cgou51ZRxfViwZW27fectbC4tLyyura+sbm1vZPfLTyqKJGU1WgkIln3iGKCh6ymuRasHktGAk+wJ69/M/SfXphUPAof9CBmbkC6Ifc5Jdqgdt5lrZRjMyC65/npc4ZN2ok0SszwCh08RmOezPNPsTSHHrUqeFYxayOg2vmiXbZHhbPCGYsijOuunf9sdiKaBCzUVBClGo4dazclUnMqWLbeTBSLCe2TLmsYGZKAKTcdxZDhoSEd9CNpOtQ4ov83UhIoNQg8Mzn8XE17QzjPayTav3RTHsaJZiH9O+QnAnWEw0yxwyWjWgyMIFRy8yvSHpGEapP8xJVX39DMxOJMhzArHitlxy479+fF6vU4oFXYhwMogQMXUIVbuIMaUHiDL/iGn9yHBdaKtfY3auXGO3swUVbhFyjssow=</latexit><latexit sha1_base64="rbo9awQUnEtEOD1ZshT2n2JyqmU=">AAACWHicbZDLSgNBEEUr4/sd49JNYRAiapwJgm6EoBuXCkYDyST0dHqSJj0Pu3vEMMzX+RW6duNWf8BOzMI8Cgou51ZRxfViwZW27fectbC4tLyyura+sbm1vZPfLTyqKJGU1WgkIln3iGKCh6ymuRasHktGAk+wJ69/M/SfXphUPAof9CBmbkC6Ifc5Jdqgdt5lrZRjMyC65/npc4ZN2ok0SszwCh08RmOezPNPsTSHHrUqeFYxayOg2vmiXbZHhbPCGYsijOuunf9sdiKaBCzUVBClGo4dazclUnMqWLbeTBSLCe2TLmsYGZKAKTcdxZDhoSEd9CNpOtQ4ov83UhIoNQg8Mzn8XE17QzjPayTav3RTHsaJZiH9O+QnAnWEw0yxwyWjWgyMIFRy8yvSHpGEapP8xJVX39DMxOJMhzArHitlxy479+fF6vU4oFXYhwMogQMXUIVbuIMaUHiDL/iGn9yHBdaKtfY3auXGO3swUVbhFyjssow=</latexit><latexit sha1_base64="rbo9awQUnEtEOD1ZshT2n2JyqmU=">AAACWHicbZDLSgNBEEUr4/sd49JNYRAiapwJgm6EoBuXCkYDyST0dHqSJj0Pu3vEMMzX+RW6duNWf8BOzMI8Cgou51ZRxfViwZW27fectbC4tLyyura+sbm1vZPfLTyqKJGU1WgkIln3iGKCh6ymuRasHktGAk+wJ69/M/SfXphUPAof9CBmbkC6Ifc5Jdqgdt5lrZRjMyC65/npc4ZN2ok0SszwCh08RmOezPNPsTSHHrUqeFYxayOg2vmiXbZHhbPCGYsijOuunf9sdiKaBCzUVBClGo4dazclUnMqWLbeTBSLCe2TLmsYGZKAKTcdxZDhoSEd9CNpOtQ4ov83UhIoNQg8Mzn8XE17QzjPayTav3RTHsaJZiH9O+QnAnWEw0yxwyWjWgyMIFRy8yvSHpGEapP8xJVX39DMxOJMhzArHitlxy479+fF6vU4oFXYhwMogQMXUIVbuIMaUHiDL/iGn9yHBdaKtfY3auXGO3swUVbhFyjssow=</latexit><latexit sha1_base64="rbo9awQUnEtEOD1ZshT2n2JyqmU=">AAACWHicbZDLSgNBEEUr4/sd49JNYRAiapwJgm6EoBuXCkYDyST0dHqSJj0Pu3vEMMzX+RW6duNWf8BOzMI8Cgou51ZRxfViwZW27fectbC4tLyyura+sbm1vZPfLTyqKJGU1WgkIln3iGKCh6ymuRasHktGAk+wJ69/M/SfXphUPAof9CBmbkC6Ifc5Jdqgdt5lrZRjMyC65/npc4ZN2ok0SszwCh08RmOezPNPsTSHHrUqeFYxayOg2vmiXbZHhbPCGYsijOuunf9sdiKaBCzUVBClGo4dazclUnMqWLbeTBSLCe2TLmsYGZKAKTcdxZDhoSEd9CNpOtQ4ov83UhIoNQg8Mzn8XE17QzjPayTav3RTHsaJZiH9O+QnAnWEw0yxwyWjWgyMIFRy8yvSHpGEapP8xJVX39DMxOJMhzArHitlxy479+fF6vU4oFXYhwMogQMXUIVbuIMaUHiDL/iGn9yHBdaKtfY3auXGO3swUVbhFyjssow=</latexit>

Page 59: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Photon files: LiF/photon3 qRamancartesian001endcartesian010length3.55inverseangstromend696

�  Electron-photonoperator�  Polarizationdirection*

� Momentumdirection� Momentumtransferred

�  Photonenergy**NotusedforqRaman

Page 60: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

LiF: q-dependence �  plot“CNBSE/absspct_F_.0001_1s_01”wl,

“CNBSE/absspct_F_.0001_1s_03”wl�  replot“CNBSE/absspct_F_.0001_1s_04”

u1:($2*3)wl

Page 61: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

LiF: q-dependence �  Pre-edgeshowsstrongmomentumdependence

� s-typeexcitonislowestenergyexcitation

� 1s→3sisdipoleforbidden

Page 62: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Outline �  Running�  StagesofOCEAN�  Firstresults�  ConvergingtheDFTstage�  Inputfile(s)

�  Photonfiles� Maininput�  Pseudopotentials�  fill&opts

�  Convergence

Page 63: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: grammar �  #commentoutallfollowingtextonaline

� Multi-wordinputsrequire{}�  “nkpt{888}” not “nkpt888”�  “ecut100” or “ecut{100}”

�  Separateinputsmustbeseparatedbyanewline

Page 64: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Outline � Maininput

�  Control�  Structure�  Pseudopotentials�  Edgeinformation

Page 65: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: Control �  dftqe

�  SelectDFTcode�  qe(QuantumESPRESSO)orabi(ABINIT)

�  para_prefix{srun-n16}�  Paralleljoblaunch�  Common

�  mpirun�  mpiexec

�  Numberofprocessorsshouldbefirstnumber�  WRONG:mpirun--nper-node8-n16

Page 66: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: structure �  Latticevectors,dielectricconstant,elements,andatomicpositions� AdoptedthestylefromABINIT

Page 67: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: structure �  acell{ABC}�  rprim{ a1a2a3

b1b2b3 c1c2c3}

�  Latticevectorsare(A*a1,A*a2,A*a3),etc� UnitsareinBohr

Page 68: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: structure �  diemac1.92

� Dielectricconstant(epsiloninfinity)� ABINITusesitasapreconditioner(minor)� NeededforSCREENing(session2)

Page 69: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: structure Atomsandlocations:�  znucl{39}

�  Uniqueatomicnumbersincell�  (trickierformagneticsystems)

�  typat{12}�  Listofatoms,numberedbyznucl�  1→Z=3�  2→Z=9

�  xred{0.50.50.50.00.00.0}

�  Reducedcoordinatesofatoms�  Atom1:

�  Locatedat½½½�  typat=1→Z=3→Li

�  Atom2:�  Locatedat000�  typat=2→Z=9→F

Page 70: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Outline � Maininput

�  Control�  Structure�  Pseudopotentials�  Edgeinformation

Page 71: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: pseudopotentials �  pp_list{

03-li.lda.fhi09-f.lda.fhi}

�  Inthesameorderasznucl� WARNING:codeisn’tsmartenoughtosaveyou�  Bydefault,pseudosareintherundirectory

�  ecut100�  Planewaveenergycut-offinRydberg�  Necessarycut-offdependsonyourpseudopotentials

Page 72: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: edge information �  Eachedgeselectionrequires3integers:ANL�  Twomethodsofselectingedges

1)  {-910}–RuneveryZ=9atominthecell2)  {210}–Runthe2ndatominthecell

�  edges{-910}�  A=-9:runeveryFatom(identicalto{210})�  N=1,L=0:1s

Page 73: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: edge information �  edges{-910}�  opf.fill{9f.fill}�  opf.opts{9f.opts}

�  Z filename�  Needfillandoptsfilesforelementbeinginvestigated

�  cnbse.broaden0.4�  BroadeningappliedtofinalspectraineV�  Finitecoreholelifetime

Page 74: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Outline �  Running�  StagesofOCEAN�  Inputfile(s)

�  Photonfiles� Maininput�  Pseudopotentials�  fill&opts

�  Convergence

Page 75: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Pseudopotentials �  Coreelectrons

�  Don’tparticipateinbonding�  Don’tchangewithchemicalenvironment�  Requirelargenumbersofplane-waves

�  Removethem,modifyatomicpotential�  Valenceelectronsnowthemost-boundallowedstates�  e.g.Si1s22s22p63s23p2becomesSi*3s23p2

�  Only4electrons�  3s/3porbitalshaveNOnodes

Page 76: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Pseudopotentials � Needapseudopotentialforeachelement�  Compatibleformats:

�  fhi�  oncv

� Usefultools:�  opium�  oncv�  fhi2upf.x(QEdistribution)

Page 77: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

opts & fill files � Auxiliaryfilesfortargetelement

�  Fluorene1sneedsf.opts&f.fill�  Titanium1sand2pusesameti.opts&ti.fill

�  Setonceperpseudopotential

Page 78: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

opts �  009�  1000�  scalarrel�  lda�  2.04.50.250.0�  2.04.50.250.0

�  Z� Occ.ofcoreshells:spdf�  Treatmentofrelativity�  LDAorHartree-Fock� Occ.ofvalenceshells:spdf

Page 79: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

fill �  2�  0.203.000.0001

�  3.0�  0.0520.

�  npower�  Energywindow

MinstartsbelowlowestoccupiedMax(bothinHartree)Precision

�  Cut-offradius�  Besseltransformcontrols

Page 80: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

fill �  EnergyWindow: 0.203.000.0001

�  SolveDFTatom�  EachangularmomentumhasalowestvalenceenergyE�  Energywindowfrom0.20belowEto3.00Ha.�  OPFschosentospanthiswindow

�  Cut-offradius: 3.0Bohr�  DefinesspaceforOPFs� Mustbelargerthanthepseudopotentialcutoff

Page 81: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Outline �  Running�  StagesofOCEAN�  Firstresults�  ConvergingtheDFTstage�  Inputfile(s)�  Convergence

�  Backtomaininputfile

Page 82: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: convergence 1)  Bands2)  K-points3)  X-points

Page 83: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging bands Sothatwearen’twaiting!First,keepacopyofCNBSE�  >mvCNBSECNBSE.1EditLiF.in�  #dft_energy_range50�  nbands24Re-runOCEAN�  >sbatchrunit

Page 84: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging bands Specifyoneof:�  nbands�  dft_energy_range

ScrollbackthroughtheOCEANoutputtonearthebeginning“ Defaultrequestedfornbands.Energyrangeis50eV.

Defaultchosenfornbands:18”

Page 85: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging bands �  Gnuplot!

�  plot“CNBSE.1/absspct_F_.0001_1s_01”wl�  replot“CNBSE/absspct_F_.0001_1s_01”wl

Page 86: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging bands � Morebands→Higherenergy�  Bandsarefromground-state

�  NotbasisstatesoftheBSE�  Evenhigh-energybandscancontributeattheexciton

�  nbandsincludesoccupied�  (mightchangeinv3)

Page 87: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging bands �  Changenbandsto40�  Re-run

�  >mvCNBSECNBSE.2�  >sbatchrunit

� Whendone�  >mvCNBSECNBSE.3

� Goodtimeforquestions

Page 88: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging k-points �  First:editLiF.in&re-runOCEAN

�  nbands24�  nkpt{101010}

� Meanwhile:Whatdoesk-pointsamplingdo?1)  Capturesbanddispersion

Page 89: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging k-points � Whatdoesk-pointsamplingdo?

1)  Capturesbanddispersion2)  Definesasupercell

�  exp [ik ·R]<latexit sha1_base64="tXHMBQv0DfHzFb0LcyhFU+dYZKk=">AAACG3icbZDJSgNBEIZ7XGPcRj16aQyCpzATBHMMePEYxSyQGUJPpyZp0rPQXSOGIe/hxVfx4kERT4IH38bOgmjiDw0/X1XRVX+QSqHRcb6sldW19Y3NwlZxe2d3b98+OGzqJFMcGjyRiWoHTIMUMTRQoIR2qoBFgYRWMLyc1Ft3oLRI4lscpeBHrB+LUHCGBnXtigf3KfUkhNihgnoRw0EQ5sMx9XgvwR9wY4AS/QH6tGuXnLIzFV027tyUyFz1rv3h9RKeRRAjl0zrjuuk6OdMoeASxkUv05AyPmR96Bgbswi0n09vG9NTQ3o0TJR5MdIp/T2Rs0jrURSYzsmqerE2gf/VOhmGVT8XcZohxHz2UZhJigmdBEV7QgFHOTKGcSXMrpQPmGIcTZxFE4K7ePKyaVbKrlN2r89Lteo8jgI5JifkjLjkgtTIFamTBuHkgTyRF/JqPVrP1pv1PmtdseYzR+SPrM9viO2hDw==</latexit><latexit sha1_base64="tXHMBQv0DfHzFb0LcyhFU+dYZKk=">AAACG3icbZDJSgNBEIZ7XGPcRj16aQyCpzATBHMMePEYxSyQGUJPpyZp0rPQXSOGIe/hxVfx4kERT4IH38bOgmjiDw0/X1XRVX+QSqHRcb6sldW19Y3NwlZxe2d3b98+OGzqJFMcGjyRiWoHTIMUMTRQoIR2qoBFgYRWMLyc1Ft3oLRI4lscpeBHrB+LUHCGBnXtigf3KfUkhNihgnoRw0EQ5sMx9XgvwR9wY4AS/QH6tGuXnLIzFV027tyUyFz1rv3h9RKeRRAjl0zrjuuk6OdMoeASxkUv05AyPmR96Bgbswi0n09vG9NTQ3o0TJR5MdIp/T2Rs0jrURSYzsmqerE2gf/VOhmGVT8XcZohxHz2UZhJigmdBEV7QgFHOTKGcSXMrpQPmGIcTZxFE4K7ePKyaVbKrlN2r89Lteo8jgI5JifkjLjkgtTIFamTBuHkgTyRF/JqPVrP1pv1PmtdseYzR+SPrM9viO2hDw==</latexit><latexit sha1_base64="tXHMBQv0DfHzFb0LcyhFU+dYZKk=">AAACG3icbZDJSgNBEIZ7XGPcRj16aQyCpzATBHMMePEYxSyQGUJPpyZp0rPQXSOGIe/hxVfx4kERT4IH38bOgmjiDw0/X1XRVX+QSqHRcb6sldW19Y3NwlZxe2d3b98+OGzqJFMcGjyRiWoHTIMUMTRQoIR2qoBFgYRWMLyc1Ft3oLRI4lscpeBHrB+LUHCGBnXtigf3KfUkhNihgnoRw0EQ5sMx9XgvwR9wY4AS/QH6tGuXnLIzFV027tyUyFz1rv3h9RKeRRAjl0zrjuuk6OdMoeASxkUv05AyPmR96Bgbswi0n09vG9NTQ3o0TJR5MdIp/T2Rs0jrURSYzsmqerE2gf/VOhmGVT8XcZohxHz2UZhJigmdBEV7QgFHOTKGcSXMrpQPmGIcTZxFE4K7ePKyaVbKrlN2r89Lteo8jgI5JifkjLjkgtTIFamTBuHkgTyRF/JqPVrP1pv1PmtdseYzR+SPrM9viO2hDw==</latexit><latexit sha1_base64="tXHMBQv0DfHzFb0LcyhFU+dYZKk=">AAACG3icbZDJSgNBEIZ7XGPcRj16aQyCpzATBHMMePEYxSyQGUJPpyZp0rPQXSOGIe/hxVfx4kERT4IH38bOgmjiDw0/X1XRVX+QSqHRcb6sldW19Y3NwlZxe2d3b98+OGzqJFMcGjyRiWoHTIMUMTRQoIR2qoBFgYRWMLyc1Ft3oLRI4lscpeBHrB+LUHCGBnXtigf3KfUkhNihgnoRw0EQ5sMx9XgvwR9wY4AS/QH6tGuXnLIzFV027tyUyFz1rv3h9RKeRRAjl0zrjuuk6OdMoeASxkUv05AyPmR96Bgbswi0n09vG9NTQ3o0TJR5MdIp/T2Rs0jrURSYzsmqerE2gf/VOhmGVT8XcZohxHz2UZhJigmdBEV7QgFHOTKGcSXMrpQPmGIcTZxFE4K7ePKyaVbKrlN2r89Lteo8jgI5JifkjLjkgtTIFamTBuHkgTyRF/JqPVrP1pv1PmtdseYzR+SPrM9viO2hDw==</latexit>

Page 90: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging k-points �  83(CNBSE.2)vs.103(CNBSE)

Page 91: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging x-points LookatthetopofthelastOCEANlog(slurm.??????)“ Defaultsrequestedforxmesh.ipt

Defaultschosenforxmesh.ipt:444”KeepCNBSE�  >mvCNBSECNBSE.4EditLiF.in,�  cnbse.xmesh{666}Re-runOCEAN�  >sbatchrunit

Page 92: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging x-points �  X-pointsarewithintheunitcell

�  DFTcodestendtouseG–theFourierpairtox� Morex/GpointsneededforDFTthanforBSE

� OCEANhastworeal-spacerepresentations1)  X-pointsarearegulargrid(alonglatticevectors)2)  OPFsprovidealocalbasisaroundabsorbingatom

� Numberx-points>numberofbands

Page 93: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Main input: converging x-points �  43vs.63�  LiFhasasmallunitcell�  1-2x-points/Bohr

Page 94: OCEAN Tutorial, Session 1monalisa.phys.washington.edu/OCEAN/workshops/2019/Hands... · 2019. 5. 23. · SCF convergence Need correct structure, spin ordering, etc. 1. ecut: Energy

Convergence; final thoughts �  Bothx-pointandk-pointsareFFTgridsinternally

�  Choosesmallprimefactors:2,3,5� Onlyconvergewhatexperimentsees

�  Limitedenergyrange�  Core-holelifetimebroadening

� Numberofx-pointsgrowwithcellsize�  1-2x-points/Bohr

� Numberofk-pointsshrinkwithcellsize� Metalsrequiremorethaninsulators