- Dr. Michael Patzschke I Institute for Resource Ecology I www.hzdr.de ¡
CSC Spring School 2016 Quantum Chemistry Workshop Basics Orca & Gabedit
Michael Patzschke Institute for Resource Ecology HZDR
09.03.2016 ¡
09.03.2016 Dr. Michael Patzschke I Institute for Resource Ecology - - PowerPoint PPT Presentation
CSC Spring School 2016 Quantum Chemistry Workshop Basics Orca & Gabedit Michael Patzschke Institute for Resource Ecology HZDR 09.03.2016 Dr. Michael Patzschke I Institute for Resource Ecology I www.hzdr.de Download Presentation
Michael Patzschke Institute for Resource Ecology HZDR
09.03.2016 ¡
Member of the Helmholtz Association Page 2
Member of the Helmholtz Association Page 3
– Free (download from http://cec.mpg.de/forum/) – Developed by F.Neese et al. in C++ – Precompiled binaries (no sources)
– Free (download from https://sites.google.com/site/allouchear/Home/gabedit/download) – Developed by A.-R. Allouche – Sources and Binaries available
– Good combination for research & teaching
Member of the Helmholtz Association Page 4
– An example follows on Friday
– Much more on Thursday using VMD
Member of the Helmholtz Association Page 5
mkdir qc_lab cd qc_lab gabedit
editor
Member of the Helmholtz Association Page 6
to change the atom (C is standard)
toggle adding hydrogens
– Important for speedup of real calculations – Avoid for transition metals, lanthanides & actinides – Two methods available: MM or semiempirical calculations
– Choose “Molecular Mechanics” “Optimization”
Member of the Helmholtz Association Page 7
– Interface to Mopac, Orca & Firefly
Member of the Helmholtz Association Page 8
– “Menu-Edit-Delete Molecule” – Add Carbon – Choose Oxygen from periodic table – Replace one hydrogen – Click on the bond to make double bond – Pre optimize using MM
(saving possible – not necessary here)
Member of the Helmholtz Association Page 9
calculation
“Equilibrium Structure Search”
“Meta-GGA and hybrid meta GGA's”
“TPSS”
“def2 Ahlrichs basis sets”
Member of the Helmholtz Association Page 10
leave that choice
Member of the Helmholtz Association Page 11
# Lines are comments ! Lines contain keywords % Lines start key blocks end lines end key blocks * starts and ends the geometry block
! Opt # this will be ignored # TPSS
for visualisation, but not necessary
Please remove it!
Member of the Helmholtz Association Page 12
– Set up run commands in “Settings”-“Preferences” on the “Commands” tab – Press cogwheels to start a job – Choose “Orca” – Press “Ok” – Click on “NoName.out” tab to see the output
Member of the Helmholtz Association Page 13
– Gabedit is useful for drawing simple structures many alternatives exist (have a look at Avogadro) – Good to remember basic input file structure – Excellent for visualizing results – The input file can be changed in gabedit – A simple text editor might be easier to use ...
Member of the Helmholtz Association Page 14
– Look at the output file – Update it – Look at geometry convergence – Visualize MO's & Densities from the first step of the calculation – Get data from remote calculations
visualize button
Member of the Helmholtz Association Page 15
click “M” or right-click
from the menu
– Select an orbital – The right part shows its participating AO’s – Change cut-off value here – Click “Ok”
Member of the Helmholtz Association Page 16
– Select position here – Select size here – Select quality here – Standard choices are ok – Press “Ok”
– Change the iso-value – 0.1 should be a good choice – Get a proposition for a certain size – Press “Ok”
Member of the Helmholtz Association Page 17
the menu (“M” or right-click”)
from the .trj files
purposes (using ImageMagick)
Member of the Helmholtz Association Page 18
Actually a rather useful textbook as well
– a very good input library
– Very active, fast help – Please read the manual and consult the forum before complaining!
Member of the Helmholtz Association Page 19
– For a list see next page
– For a list see further down
!Opt ¡TPSS ¡Def2-‑SV(P) ¡ * ¡xyz ¡0 ¡ ¡ ¡1 ¡ ¡C ¡ ¡-‑1.182146 ¡-‑0.191818 ¡-‑11.887076 ¡ ¡H ¡ ¡-‑1.567738 ¡0.546391 ¡-‑12.590258 ¡ ¡H ¡ ¡-‑1.864597 ¡-‑0.714867 ¡-‑11.217165 ¡ ¡O ¡ ¡0.022990 ¡-‑0.429026 ¡-‑11.844415 ¡ * ¡
Member of the Helmholtz Association Page 20
(MP2 calculation will be performed!)
automatically (NORI to witch of)
keywords vdw10 or vdw10bj
Member of the Helmholtz Association Page 21
– Ahlrich's good for DFT – Dunning's good for CC – Basis set can be changed for an element: %basis ¡ newgto ¡Element ¡"def2-‑TZVPP” ¡ # ¡Specifying ¡the ¡basis ¡set ¡on ¡"Element” ¡ end ¡ ¡
H ¡0.0 ¡0.0 ¡1.0 ¡newgto ¡"def2-‑TZVP" ¡end ¡ ¡
!Opt ¡RI-‑MP2 ¡def2-‑TZVPP ¡def2-‑TZVPP/J ¡def2-‑TZVPP/C ¡TightSCF ¡RIJCOSX ¡ ¡
Member of the Helmholtz Association Page 22
and computational timings using two or three different methods and two or three different basis sets
SVP ¡ TZVPP ¡ QZVPP ¡ Exp ¡ BP86 ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ 120.5 ¡pm ¡ t ¡= ¡ t ¡= ¡ t ¡= ¡ TPSS ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ t ¡= ¡ t ¡= ¡ t ¡= ¡ PBE0 ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ t ¡= ¡ t ¡= ¡ t ¡= ¡ HF ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ t ¡= ¡ t ¡= ¡ t ¡= ¡ MP2 ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ r(CO) ¡= ¡ ¡ t ¡= ¡ t ¡= ¡ t ¡= ¡
Member of the Helmholtz Association Page 23
! ¡Opt ¡def2-‑SVP ¡ ¡
!Opt ¡def2-‑TZVPP ¡def2-‑TZVPP/J ¡def2-‑TZVPP/C ¡TightSCF ¡RIJCOSX ¡ ¡ !DLPNO-‑CCSD(T) ¡NumGrad ¡ %maxcore ¡2000 ¡ ¡ – This does a numerical CCSD(T) optimisation – Needs a lot of memory – Useful for optimising certain structural parameters
Member of the Helmholtz Association Page 24
* ¡int ¡0 ¡1 ¡ first word = form of geometry data (xyz or int) first number = charge, second number = multiplicity (1 for singlet, 2 for doublet)
¡* ¡xyzfile ¡1 ¡2 ¡filename.xyz
– Symmetry can be used to classify MO’s – To do this, add the keyword “UseSym”
is the number of cores
¡%pal ¡nprocs ¡4 ¡# ¡any ¡number ¡(posidve ¡integer) ¡ end ¡
Member of the Helmholtz Association Page 25
functionals through:
!Opt Freq
%maxcore 1000
!Opt NumFreq
%freq Temp 290, 295, 300 end
Not part of the basic tutorial
Member of the Helmholtz Association Page 26
– in command line: ! COSMO(solvent) – As input block: ! COSMO
%cosmo epsilon 78 end
is also available:
%cosmo smd true solvent “DMF” end
Member of the Helmholtz Association Page 27
! ¡BP ¡def2-‑SVP ¡def2-‑SVP/J ¡ECP{def2-‑SVP,def2-‑SVP/J} ¡printbasis ¡ where printbasis prints the basis, in order to check that ECP and basis set fit
¡! ¡ECP{TZVP=Hf-‑Hg} ¡ ¡! ¡ECP{TZVP=[Ag,Pt,Au]} ¡ ¡
! ¡BP86 ¡ZORA ¡def2-‑SVP ¡def2-‑SVP/J ¡TIGHTSCF ¡printbasis ¡ ! ¡BP86 ¡DKH2 ¡def2-‑SVP ¡def2-‑SVP/J ¡TIGHTSCF ¡printbasis ¡
same line!
U ¡0.0 ¡0.0 ¡1.0 ¡newgto ¡"ZORA-‑def2-‑TZVP" ¡end
Member of the Helmholtz Association Page 28
during optimisation:
¡%geom ¡Constraints ¡ ¡{ ¡ ¡B ¡0 ¡1 ¡1.25 ¡C ¡} ¡ ¡{ ¡ ¡A ¡2 ¡0 ¡3 ¡120.0 ¡C ¡} ¡ ¡ ¡end ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡end ¡ ¡Constraining ¡bond ¡distances ¡: ¡{ ¡B ¡N1 ¡N2 ¡value ¡C ¡} ¡ ¡Constraining ¡bond ¡angles ¡: ¡{ ¡A ¡N1 ¡N2 ¡N1 ¡value ¡C ¡} ¡ ¡Constraining ¡dihedral ¡angles ¡: ¡{ ¡D ¡N1 ¡N2 ¡N3 ¡N4 ¡value ¡C ¡} ¡ ¡Constraining ¡cartesian ¡coordinates ¡: ¡{ ¡C ¡N1 ¡C ¡} ¡ ¡%geom ¡opdmizehydrogens ¡true ¡ end ¡
Member of the Helmholtz Association Page 29
! ¡TPSS ¡KeepDens ¡PrintBasis ¡Def2-‑SV(P) ¡Opt ¡ %geom ¡ ¡ ¡opdmizehydrogens ¡true ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡end ¡ * ¡xyz ¡0 ¡1 ¡ C ¡ ¡-‑1.137634 ¡ ¡ ¡0.702379 ¡ ¡ ¡ ¡0.000000 ¡ C ¡ ¡-‑1.137634 ¡ ¡-‑0.702379 ¡ ¡ ¡ ¡0.000000 ¡ N ¡ ¡ ¡0.000002 ¡ ¡-‑1.415106 ¡ ¡ ¡ ¡0.000000 ¡ C ¡ ¡ ¡1.137633 ¡ ¡-‑0.702378 ¡ ¡ ¡ ¡0.000000 ¡ C ¡ ¡ ¡1.137633 ¡ ¡ ¡0.702380 ¡ ¡ ¡ ¡0.000000 ¡ N ¡ ¡-‑0.000001 ¡ ¡ ¡1.415106 ¡ ¡ ¡ ¡0.000000 ¡ H ¡ ¡-‑2.180421 ¡ ¡ ¡1.269265 ¡ ¡ ¡ ¡0.000000 ¡ H ¡ ¡-‑2.080418 ¡ ¡-‑1.269269 ¡ ¡ ¡ ¡0.000000 ¡ H ¡ ¡ ¡2.080422 ¡ ¡-‑1.269260 ¡ ¡ ¡ ¡0.000000 ¡ H ¡ ¡ ¡2.080419 ¡ ¡ ¡1.269264 ¡ ¡ ¡ ¡0.000000 ¡ * ¡
Member of the Helmholtz Association Page 30
(visualize with e.g. gnuplot)
! ¡RKS ¡BP ¡SV(P) ¡TightSCF ¡Opt ¡ %geom ¡Scan ¡ B ¡0 ¡1 ¡= ¡1.35, ¡1.10, ¡12 ¡# ¡scan ¡C-‑O ¡distance ¡ end ¡ end ¡ * ¡int ¡0 ¡1 ¡ C ¡0 ¡0 ¡0 ¡0.0000 ¡0.000 ¡0.00 ¡ O ¡1 ¡0 ¡0 ¡1.3500 ¡0.000 ¡0.00 ¡ H ¡1 ¡2 ¡0 ¡1.1075 ¡122.016 ¡0.00 ¡ H ¡1 ¡2 ¡3 ¡1.1075 ¡122.016 ¡180.00 ¡ * ¡
Member of the Helmholtz Association Page 31
! RHF SV(P) SV/C SmallPrint NoPop NoMOPrint %casscf nel = 2 norb = 2 mult = 1,3 nroots = 2,1 TrafoStep RI switchstep nr end %paras R= 1.3385 Alpha=0,180,37 end * int 0 1 C 0 0 0 0 0 0 C 1 0 0 {R} 0 0 H 1 2 0 1.07 120 0 H 1 2 3 1.07 120 180 H 2 1 3 1.07 120 {Alpha} H 2 1 3 1.07 120 {Alpha+180} *
Member of the Helmholtz Association Page 32
previous runs
Member of the Helmholtz Association Page 33
e.g. for metal complexes
– Calculate quasi restricted orbitals (using ! UNO) if you have an open shell system – Read in the qro orbitals – Define CAS (here Cm(III)): 7 electrons in 7 orbitals – Define Blocks for each multiplicity here: ground state is 8S7/2, we need an octet – SO will couple in other spin states here included: sextet, quartet and doublet – Couple all states
! UNO ZORA Def2-QZVPP TIGHTSCF PAL6 %maxcore 4000 *xyz 3 8 Cm 0.0 0.0 0.0 *
Member of the Helmholtz Association Page 34
e.g. for metal complexes
– Calculate quasi restricted orbitals (using ! UNO) if you have an open shell system – Read in the qro orbitals – Define CAS (here Cm(III)): 7 electrons in 7 orbitals – Define Blocks for each multiplicity here: ground state is 8S7/2, we need an octet – SO will couple in other spin states here include sextet, quartet and doublet – Couple all states
! MORead NOIter ROHF DKH2 Def2-QZVPP TIGHTSCF PAL6 %moinp "cm.qro" %maxcore 4000 %rel finitenuc true end %MRCI CIType MRMP2 NewBlock 8 * NRoots 10 Refs CAS(7,7) End End NewBlock 6 * NRoots 10 Refs CAS(7,7) End End NewBlock 4 * NRoots 10 Refs CAS(7,7) End End NewBlock 2 * NRoots 10 Refs CAS(7,7) End End SOC DoSOC True DoSSC False PrintLevel 4 End End *xyz 3 8 Cm 0.0 0.0 0.0 *
Member of the Helmholtz Association Page 35
3P1 , 3P2
****ORCA TERMINATED NORMALLY**** TOTAL RUN TIME: 0 days 1 hours 9 minutes 58 seconds 759 msec Energy stabilization: -29.39746 cm-1 Eigenvalues: cm-1 eV 300.000 K 0: 0.0000 0.0000 1.28e-01 1: 14.5378 0.0018 1.19e-01 2: 15.0961 0.0019 1.19e-01 3: 15.2258 0.0019 1.19e-01 4: 43.8069 0.0054 1.04e-01 5: 44.1719 0.0055 1.03e-01 6: 44.3084 0.0055 1.03e-01 7: 45.5132 0.0056 1.03e-01 8: 45.5167 0.0056 1.03e-01 9: 10132.1883 1.2562 1.01e-22 10: 10210.4434 1.2659 6.91e-23 11: 10452.1545 1.2959 2.17e-23 12: 10537.0432 1.3064 1.44e-23 13: 10572.2401 1.3108 1.22e-23 14: 21785.5216 2.7011 5.38e-47 ! ROHF ZORA Def2-QZVPP TIGHTSCF %MRCI CIType MRMP2 NewBlock 3 * NRoots 10 Refs CAS(4,4) End End NewBlock 1 * NRoots 10 Refs CAS(4,4) End End SOC DoSOC True End End *xyz 0 3 C 0.0 0.0 0.0 *
Member of the Helmholtz Association Page 36
OEM-CC, CAS, NEVPT2, MRCI, CISD and TDDFT
– Number of excitations – Exp. Space 5-10 times number of excitations – Maybe add “FinalGrid 6” and “TightSCF”
!PBE def2-TZVPP COSMO(Water) %maxcore 2000 %tddft nroots maxdim 200 end * int 0 1 C 0 0 0 0.000000 0.000 0.000 O 1 0 0 1.200371 0.000 0.000 H 1 2 0 1.107372 121.941 0.000 H 1 2 3 1.107372 121.941 180.000 *
7a -> 8a : 0.999627 (c= -0.99981361) STATE 2: E= 0.275780 au 7.504 eV 60526.7 cm**-1 7a -> 9a : 0.985017 (c= -0.99248046) STATE 3: E= 0.321444 au 8.747 eV 70548.9 cm**-1 7a -> 10a : 0.986447 (c= 0.99320040) STATE 4: E= 0.335918 au 9.141 eV 73725.4 cm**-1 5a -> 8a : 0.993819 (c= 0.99690458)
Member of the Helmholtz Association Page 37
with Gabedit
(excited state – ground state) can be visualized with orca_plot
Member of the Helmholtz Association Page 38
! B3LYP def2-TZVP def2-TZVP/J RIJCOSX Grid5 FinalGrid6 TightSCF
use NTO (natural transition orbitals)
– If NTOStates is not given, all are treated
– Choose state to optimise – Check carefully that change order does not change – Check if you reached a true minimum!
– Check different functionals – Check for CT transitions – Increase memory (!)
%tddft maxdim 300 nroots 50 DoNTO true NTOStates 1,2 ,3 end !PBE0 RIJCOSX def2-TZVPP def2-TZVPP/J KeepDens Opt %maxcore 2000 %tddft nroots 5 maxdim 200 IRoot 1 end * int 0 1 C 0 0 0 0.000000 0.000 0.000 O 1 0 0 1.200371 0.000 0.000 H 1 2 0 1.107372 121.941 0.000 H 1 2 3 1.107372 121.941 180.000 *
Member of the Helmholtz Association Page 39
! B3LYP def2-TZVP def2-TZVP/J RIJCOSX Grid5 FinalGrid6 TightSCF
use NTO (natural transition orbitals)
– If NTOStates is not given, all are treated
– Choose state to optimise – Check carefully that change order does not change – Check if you reached a true minimum!
– Check different functionals – Check for CT transitions – Increase memory (!)
%tddft maxdim 300 nroots 50 DoNTO true NTOStates 1,2 ,3 end
Member of the Helmholtz Association Page 40
– Computationally not feasible – Extrapolation procedures exist for e.g. Dunning's and ANO basis sets – Orca uses for HF: – And for the correlation part: – Look at a simple example:
! ¡RHF ¡MP2 ¡CCSD(T) ¡Extrapolate(2/3,cc) ¡TightSCF ¡Conv ¡Bohrs ¡ * ¡int ¡0 ¡1 ¡ O ¡0 ¡0 ¡0 ¡0 ¡0 ¡0 ¡ H ¡1 ¡0 ¡0 ¡1.81975 ¡0 ¡0 ¡ H ¡1 ¡2 ¡0 ¡1.81975 ¡105.237 ¡0 ¡ * ¡
Member of the Helmholtz Association Page 41
write at the prompt:
¡
to produce cube files – Orbitals and densities are available – Excited state density differences possible – Different formats available
Member of the Helmholtz Association Page 42
NCIplot
Member of the Helmholtz Association Page 43