4 Introduction To The ORCA Program Wennmohs
4 Introduction To The ORCA Program Wennmohs
4 Introduction To The ORCA Program Wennmohs
Lecture 3:
Introduction to the ORCA Program System
Frank Wennmohs
★ ORCA is available for the popular Windows, Mac OS X, and Linux platforms.
★ ORCA is distributed as an archive for all platforms. In this archive resides a directory
with all executables. There are plenty of programs for extracting files from archives on
all platforms (gzip, tar, zip/unzip,...).
★ On the follwing slides it will be shown how to run a calculation on Windows Vista/7,
Mac OS X, and Linux.
Setting the PATH variable to the ORCA directory (with administrator rights)
Here it is assumed
that ORCA resides
in c:\orca
Configuring ORCA under Windows Vista / 7
Setting the PATH variable to the ORCA directory (as normal user)
Here it is assumed
that ORCA resides
in c:\orca
Editing Textfiles under Windows Vista / 7
Enter
‘cmd’
Once ORCA is in
the PATH, you can
run jobs from any
directory you want
The TaskManager
is a handy tool to
check if the
calculation is still
running.
Getting Started with ORCA under Mac OS X
TextEdit & Terminal
export PATH=%HOME/orca:$PATH
‘.bashrc’
using TextEdit
Running ORCA under Mac OS X
Setting the
PATH variable
is done in the
file
‘.bashrc’
Especially
under Linux
there is an
uncountable
frankw@MyUbuntu:~/simple$ orca simple.inp >& simple.out & number of
frankw@MyUbuntu:~/simple$ tail -f simple.out text-editors.
Very popular
ones are
Vim, Emacs,
NEdit, Kate,
etc.
The ORCA Project
• Energy Calculations
Common Jobs in Computational Chemistry
• Energy Calculations
• Geometry Optimizations
Common Jobs in Computational Chemistry
• Energy Calculations
• Geometry Optimizations
• Frequency Calculations
Common Jobs in Computational Chemistry
• Energy Calculations
• Geometry Optimizations
• Frequency Calculations
• Transition States
Common Jobs in Computational Chemistry
• Energy Calculations
90%
• Geometry Optimizations
Of •all Calculations!
Frequency Calculations
• Transition States
First Stop: Energy Calculations
A First ORCA Job
Request tight
DFT Functional The basis set convergence
A comment line
* xyz 0 1
Restricted (closed-shell) C 0 0 0
Calculation O 0 0 1.128
*
orca_plot myjob.gw -i
You will get a „stone-age“ menu which you can use to generate the necessary files.
1. Press 5 ENTER to choose the output formation. (press 7 ENTER for
gaussian cube, the preferred format)
2. Press 4 ENTER to choose the number of grid intervals. Something like 40
will be o.k. For high resolution on larger molecules choose 65-75.
3. To plot an orbital from a closed shell calculation press 3 ENTER and
choose 0 ENTER. For spin-up from UHF/UKS the same. For spin down from
UHF/UKS choose 1 ENTER.
4. Press 2 ENTER and enter the number of the MO that you want to plot.
NOTE THAT COUNTING STARTS WITH 0!!!
5. Press 10 ENTER to generate the output file.
6. Repeat steps 4 and 5 until all desired files are produced
The orca_plot program automatically produces an ‚xyz‘ file which contains the molecular
coordinates.
We presently like the Chimera program for vizualization. There are many free alternatives such
as Molekel, gOpenMol, Molden,... any program that reads .xyz and .cube files
• Method
What You Need for an Energy Calculation
• Method
• Basis set
What You Need for an Energy Calculation
• Method
• Basis set
• Coordinates
Method: Ab initio wavefunction based or DFT?
Accuracy versus Computing Time Tradeoff
Method Keyword
But
DFT
I just want CCSD(T),
RKS, UKS, ROKS
because it’s the best, MP2
Correlated,
wavefunction based
right? Coupled Pair Theories
(Single & Double Excitations, CEPA, (N)CPF, CCSD)
methods Coupled Pair Theories + Linearized Triple Excitations
( CCSD(T) )
The Functional Zoo
Name Type Comments
BLYP GGA One of the earliest GGA functionals. Usually inferior to BP86 and PBE. Predicts
too long bonds.
BP86 GGA Excellent geometries and vibrational frequencies. Energetics is usually not highly
accurate but performs often well in spectroscopic investigations.
PW91 GGA One of the older GGA functionals with excellent accuracy for exchange
couplings.
PBE GGA A GGA version designed to replace PW91. Very popular in physics. Often similar
to BP86.
OLYP GGA Violates the uniform electron gas limit but gives improved results for molecules
B3LYP Hybrid De facto standard in chemistry for structures, energies and properties. See
discussion in the text.
PBE0 Hybrid Excellent accuracy; competitive with B3LYP
TPSS Meta-GGA Improvement over PBE. Includes the kinetic energy density and obeys more
constraints known from rigorous theory.
TPSSh Hybrid meta- Probably improvement over PBE0; perhaps increase fraction of HF to 25%
GGA (TPSS0)
B2PLYP Double hybrid First (and prototypical) member of the double hybrid class of functionals. So far
been proven excellent for energies and geometries. More exploration needed.
Efficient DFT: The RI Approximation
As long as there is NO Hartree-Fock exchange present (no hybrid functionals), a very
efficient approximation can be used to speed up (factor 10-100) DFT calculations: the RI
approximation (also called density fitting method)
In this method the electron density is fit to an auxiliary basis set which must be provided
by the user. The effect of the approximation on structures and frequencies is barely
visible. Absolute energies are affected to a few kcal/mol, relative energies much less.
! RKS BP86 RI SV(P) SV/J TightSCF Opt
* int 0 1
C 0 0 0 0 0 0 Auxiliary basis appropriate for SV(P) (equivalently
O 1 0 0 1.15 0 0 Def-2 uses SV(P) and SV/J together; Def-3 is
H 1 2 0 1.00 115 0 equivalent to TZVP and TZV/J)
H 1 2 3 1.00 115 180
*
TIP: For geometry and frequency calculations the BP86 and PBE functionals together with the RI approximation is recommended. Basis sets of TZVP quality
are appropriate for good accuracy! SV(P) is already good enough for a first orientation. Use keywords QuickOpt, NormalOpt or GoodOpt!
For energy calculations I recommend the B3LPY or PBE0 functionals and larger basis sets (TZVPP if possible or even aug-TZVPP). Use Keyword DFTEnergy
Efficient HF and Hybrid DFT: RIJCOSX
Unfortunately, RI does not smoothly carry over to Hartree-Fock and hybrid DFT
calculations. One attempt to do so is the RI-JK approximation that needs to be invoked
together with ,JK‘ fitting bases. RI-JK cannot be used for optimizations
If combined with RI-MP2 you need to give two auxiliary basis sets for optimal speed
and accuracy:
! RI-MP2 RIJCOSX def2-SVP def2-SVP/J def2-SVP/C TightSCF
Neese, F.; Wennmohs, F.; Hansen, A.; Becker, U. (2009) Chem. Phys., 356, 98–109
The Crux of DFT: Which Functional to Choose?
Always first thing to do:
RI BP86
The BP86 functional in combination with the Resolution of Identity approximation (RI) is
the fastest way to calculate by far, with reasonable results with respect to geometries,
etc.
For a more quantitative result, for example, the calculation of energy differences, the
following hybrid functionals are known to provide good results:
B3LYP RIJCOSX
( PBE0 RIJCOSX )
To keep in mind:
Usually the results are good, but this does not rule out the possibility, that it might produce
wrong results in other cases!
Modern DFT: Double Hybrid Functionals
★ A Special feature of ORCA are ,double hybrid functionals‘ proposed in 2006 by
Stefan Grimme. Here part of the DFT correlation is replaced by a MP2 like term and
part of the DFT exchange by Hartree-Fock exchange.
★ For main group thermodynamics and kinetics it is more accurate than standard
functionals
★ ORCA is the only program to have analytic gradients and excited states for these
functionals
★ The prototypical member is „B2PLYP“
★ And together with empirical van der Waals corrections (also proposed by Stefan
Grimme) it is particularly accurate:
6-31G
6-31G*
6-31G**
6-31++G**
6-3111++G** Lots of basis sets to
DZP
choose from
TZP
DZP
TZP
Better:
Ahlrichs SVP The Ahlrichs basis sets provide better results at the
Ahlrichs TZVP same computational cost.
cc-pVDZ
cc-pVTZ
aug-cc-pVTZ Tip:
Always start calculations at the SVP level,
especially geometry optimizations. Only
when precise energies are requested, switch
to TZVP (or even: def2-TZVPP)
Generation of Coordinates
In principle:
Only a texteditor is needed to enter a molecule’s coordinates
Z-Matrix
Today
Molecules are created with full specification in an xyz space
using common programs.
Generation of Coordinates
Today
Molecules are created with full specification in an xyz space
using common programs.
Building molecules
using PyMol
Generation of Coordinates
Today
Molecules are created with full specification in an xyz space
using common programs.
(Molden, PyMol, GaussView, etc. )
There are two ways to get coordinates into ORCA, once those
have been created and exported into an .xyz file:
Generation of Coordinates
Today
Molecules are created with full specification in an xyz space
using common programs.
(Molden, PyMol, GaussView, etc. )
There are two ways to get coordinates into ORCA, once those
have been created and exported into an .xyz file:
1. Copy the contents of the .xzy file into the ORCA input file, using copy/
paste facilities of the texteditor or operating system
Generation of Coordinates
Today
Molecules are created with full specification in an xyz space
using common programs.
(Molden, PyMol, GaussView, etc. )
There are two ways to get coordinates into ORCA, once those
have been created and exported into an .xyz file:
1. Copy the contents of the .xzy file into the ORCA input file, using copy/
paste facilities of the texteditor or operating system
2. Read in the .xyz file via ORCA input, using the *xyzfile command
Generation of Coordinates
Today
Molecules are created with full specification in an xyz space
using common programs.
There are two ways to get coordinates into ORCA, once those
have been created and exported into an .xyz file:
1. Copy the contents of the .xzy file into the ORCA input file, using copy/
paste facilities of the texteditor or operating system
2. Read in the .xyz file via ORCA input, using the *xyzfile command
What now?
There are serveral reasons causing the SCF not to converge.
• Molecular Structure contains errors
For example, missing atoms, the electronic state is wrong, etc.
• Very Large Systems
Due to the accumulation of numerical noise the SCF might not converge
• Difficult Chemical Bonding
Bonding situations containing transition metals might be hard to converge
due, especially if the specified state is far away from the ground state
SCF Convergence
What now?
There are many ways to influence the SCF
convergence, for example:
SCF Convergence
What now?
There are many ways to influence the SCF
convergence, for example:
• Damping
SCF Convergence
What now?
There are many ways to influence the SCF
convergence, for example:
• Damping
• Level Shift
SCF Convergence
What now?
There are many ways to influence the SCF
convergence, for example:
• Damping
• Level Shift
• DIIS
SCF Convergence
What now?
There are many ways to influence the SCF
convergence, for example:
• Damping
• Level Shift
• DIIS
• SOSCF
SCF Convergence
What now?
There are many ways to influence the SCF
convergence, for example:
• Damping
• Level Shift
• DIIS
• SOSCF
• Newton - Raphson
SCF Convergence
What now?
There are many ways to influence the SCF
convergence, for example:
... Actually, this particular job converges without any damping or shifting. However, in many situations, the damping and shifting is
necessary as you will undoubtedly find out yourself once you start calculations in the „real world“.
In the present example the convergence „aids“ acctually strongly slow down convergence. It is quite uniform since the energy is always
decreasing. Thus, these „helpers“ more or less „babysit“ the job to a converged solution.
Restarting Calculations
In many cases it is a very good idea to start from the convergence MOs of a previous job.
Note that the calculation can be started from a gbw file which is from a nearby
geometry, uses a different basis set of theoretical method or HFType (UHF,RHF or
ROHF). The program will take care to translate the orbitals to the present situation.
Second Stop: Geometry Optimizations
Geometry Optimizations
From a formal point of view:
A geometry optimizations minimizes the overall energy of the system by
changing the atomic coordinates.
Problem:
Leads to the nearest local minimum,
not the global minimum of the system!
Geometry Optimizations
• The SCF wavefunction has to be quite precise to generate a smooth potential surface
without ‘bumps’
Geometry Optimizations
• The SCF wavefunction has to be quite precise to generate a smooth potential surface
without ‘bumps’
• Geometry optimizations might be tough if the molecule contains many soft potentials,
for example dihedrals with very low barriers
Geometry Optimization
To optimize the geometry of the molecule, simply include the keyword Opt
! RKS SV(P) B3LYP TightSCF Opt
* int 0 1
C 0 0 0 0 0 0
O 1 0 0 1.15 0 0
H 1 2 0 1.00 115 0
H 1 2 3 1.00 115 180
*
The program will first produce a set of „redundant internal coordinates“ which are used
in the calculation.
--------------------------------------------------------------
Redundant Internal Coordinates
--------------------------------------------------------------
Defintion Initial Value Approx d2E/dq
--------------------------------------------------------------
1. B(O 1,C 0) 1.1500 1.351281
2. B(H 2,C 0) 1.0000 0.501167
3. B(H 3,C 0) 1.0000 0.501167
4. A(H 2,C 0,O 1) 115.0000 0.425466
5. A(H 3,C 0,O 1) 115.0000 0.425466
6. A(H 3,C 0,H 2) 130.0000 0.323418
7. I(O 1,H 3,H 2,C 0) 0.0000 0.151694
--------------------------------------------------------------
TIP: Always use TightSCF or VeryTightSCF in geometry optimizations. Otherwise the gradients are somewhat noisy.
After calculating the SCF energy and the gradient of the energy, a And a new geometry is proposed:
relaxation is step is carried out: ------------------------------------------------------------------------
Redundant Internal Coordinates
------------------------------------------------------------------------------ (Angstroem and degrees)
ORCA GEOMETRY RELAXATION STEP
------------------------------------------------------------------------------
Definition Value dE/dq Step New-Value
Number of atoms .... 4
Number of internal coordinates .... 7 ------------------------------------------------------------------------
Current Energy .... -114.317745134 Eh 1. B(O 1,C 0) 1.1500 -0.142336 0.0535 1.2035
Current gradient norm .... 0.207887808 Eh/bohr
Maximum allowed component of the step .... 0.300 2. B(H 2,C 0) 1.0000 -0.103355 0.0980 1.0980
Current trust radius .... 0.300 3. B(H 3,C 0) 1.0000 -0.103355 0.0980 1.0980
Evaluating the initial hessian .... (Almloef) done
Projecting the Hessian .... done 4. A(H 2,C 0,O 1) 115.00 -0.017685 2.44 117.44
Forming the augmented Hessian .... done 5. A(H 3,C 0,O 1) 115.00 -0.017685 2.44 117.44
Diagonalizing the augmented Hessian .... done
Last element of RFO vector .... 0.957975075 6. A(H 3,C 0,H 2) 130.00 0.035370 -4.89 125.11
Lowest eigenvalues of augmented Hessian: 7. I(O 1,H 3,H 2,C 0) 0.00 -0.000000 0.00 0.00
-0.057174708 0.151693870 0.360949845 0.425465740 0.501166791
Length of the computed step .... 0.299435193 ------------------------------------------------------------------------
The final length of the internal step .... 0.299435193
Converting the step to cartesian space:
Transforming coordinates: *************************************************************
Iter 0: RMS(Cart)= 0.0824560429 RMS(Int)= 0.1127292561 * GEOMETRY OPTIMIZATION CYCLE 2 *
Iter 1: RMS(Cart)= 0.0024951498 RMS(Int)= 0.0033197589
Iter 2: RMS(Cart)= 0.0002432861 RMS(Int)= 0.0003067902 *************************************************************
Iter 3: RMS(Cart)= 0.0000185328 RMS(Int)= 0.0000231161
Iter 4: RMS(Cart)= 0.0000012690 RMS(Int)= 0.0000015779
Iter 5: RMS(Cart)= 0.0000000832 RMS(Int)= 0.0000001034
Iter 6: RMS(Cart)= 0.0000000054 RMS(Int)= 0.0000000067 Then the next SCF is done and the next gradient calculated, a new
done
Storing new coordinates .... Done
geometry is proposed until (hopefully) finally:
... Or freeze some and vary others (one frequently used possibility is to only optimize
hydrogen positions OptimizeHydrogens true). Constrained surfaces are calculated
as:
%geom Scan
B 0 1 = 1.35, 1.10, 12 # C-O distance that will be scanned
end
end
Third Stop: Frequency Calculations
Frequencies? What Frequencies?
Behind the simple term ‘Frequency Calculation’ quite a few useful properties are hidden.
Two-‐dimensional
poten0al
energy
surface
for
the
system
H-‐H-‐H
in
a
linear
arrangement.
A
transi0on
state
is
observed
around
the
H1-‐H2
and
H2-‐H3
distances
being
both
1.0
Angström.
Two-‐dimensional
poten0al
energy
surface
for
the
system
H-‐H-‐H
in
a
linear
arrangement.
A
transi0on
state
is
observed
around
the
H1-‐H2
and
H2-‐H3
distances
being
both
1.0
Angström.
Frequency Calculations
There are several good reasons for calculating the harmonic frequencies:
1. Characterize stationary points as minima (no negative frequencies), transition
states (one negative frequency) or higher-order saddle point (more negative
frequencies
2. Predict vibrational spectra (IR, Raman)
3. Calculate thermodynamic properties (zero-point energy, finite temperature
correction)
0: 0.00 cm**-1
1: 0.00 cm**-1
2: 0.00 cm**-1
3: 0.00 cm**-1
4: 0.00 cm**-1
5: 0.00 cm**-1
6: 1140.72 cm**-1
7: 1230.49 cm**-1
8: 1498.92 cm**-1
9: 1812.75 cm**-1
10: 2773.72 cm**-1 Finally, the thermodynamic properties at 298.15 K are printed
11: 2805.59 cm**-1
(assuming ideal gas behaviour)
Electronic energy ... -114.41435858 Eh
Zero point energy ... 16.10 kcal/mol
Then the program prints the normal modes. This is usually not very Thermal vibrational correction ... 0.03 kcal/mol
Thermal rotational correction ... 0.89 kcal/mol
revealing. The program produces a BaseName.hess file which you Thermal translational correction ... 0.89 kcal/mol
can run through orca_vib to get additional information. ------------------------------------------------------
XYZ files to be used for animation of vibrational modes are produces Total thermal energy -114.38582646 Eh
by the program orca_pltvib.
Then you get the IR spectrum: Then enthalpy+entropy and finally the free energy:
%cosmo epsilon 80
refrac 1.33
end
Shortcut is COSMO(solvent)
* int 0 1
C 0 0 0 0.000000 0.000 0.000 Alternatively: the dielectric constant and
O 1 0 0 1.200371 0.000 0.000
refractive index can be input as needed
H 1 2 0 1.107372 121.941 0.000
H 1 2 3 1.107372 121.941 180.000
*
TIP: Solation can be quite important in the prediction of optical and magnetic spectroscopic properties. Consider using it!
The End