You are on page 1of 37

IntroductiontoGaussian

ComputationalchemistryusingtheArcticRegion
SupercomputingCenterinstallationofGaussian03

JohnKeller
DepartmentofChemistry&Biochemistry
UniversityofAlaskaFairbanks

1. Computationalchemistrybackground
2. UsingGaussian
(a)input
(b)output
3-18-2008

John W. Keller 2008

Backintheday,itwasnotclearthatmathematical
treatmentswouldeverbeusefulinchemistry!

Everyattempttoemploymathematicalmethods
inthestudyofchemicalquestionsmustbe
consideredprofoundlyirrationalandcontraryto
thespiritofchemistry.
AugusteCompte,Frenchphilosopher,1830

3-18-2008

John W. Keller 2008

Today computational chemistry is a standard tool of science. For


example, there are now >20 journals devoted to the subject.
ChemometricsandIntelligentLaboratorySystems
ComputationalandTheoreticalPolymerScience
ElectronicJournalofTheoreticalChemistry
InternationalJournalofQuantumChemistry
JournalofChemicalInformationandComputerSciences
JournalofChemicalTheoryandComputation
JournalofChemometrics
JournalofComputationalChemistry
JournalofComputerAidedChemistry
JournalofMathematicalChemistry
JournalofMolecularGraphicsandModelling
JournalofMolecularModeling
JournalofMolecularStructure:THEOCHEM
JournaloftheChemicalComputingGroup
JournalofTheoreticalandComputationalChemistry
MacromolecularTheoryandSimulations
PerspectivesinDrugDiscoveryandDesign
ProteinsStructure,Function,andGenetics
StructuralChemistry
TheoreticalChemistryAccounts:Theory,Computation,andModeling(TheoreticalChimica
Acta)

3-18-2008

John W. Keller 2008

UnivofAlaskaFairbanks/ARSCResources

Midnight

'

Kerberos
FTP
Telnet

'
Iceberg
Gaussian03
Gaussianutilities(e.g.,fmchk)
GaussView04(UNIX)

GaussView03(UAsitelicense)
HyperChemv8
3-18-2008

John W. Keller 2008

CapabilitiesofGaussian(similartootherlarge
scalecomputationalchemistrypackages):
*JWK has used.

Determinemoststable(optimum)moleculargeometryandenergy.
(UsedtocalculateEandKeq.)*
Defineapotentialenergysurface bysteppingthrougharangeofvalues
forageometrycoordinate,suchasbonddistanceortorsionangle
Predict IR,Raman,UV,NMR,andotherspectra
Optimizetransitionstates
Solvatemoleculesusingthepolarizedcontinuum(PCM) orother
models.
Specialtoolsforoptimizingtransitionmetalcomplexes,andother
moleculescontaininglargeatoms.
ONIOM techniquefordefininglayerswithinonemoleculewhere
higherandloweraccuracymethodscanbeapplied.
Modelsurfacesusinga2Dperiodicboundarycondition(PBC)method,
orcrystalsusing3DPBC.
3-18-2008

John W. Keller 2008

GaussianandHyperChemResources
TheGaussianmanualisonlineat
http://www.gaussian.com/g_ur/g03mantop.htm
ARSCissuesrelatingtouseraccounts,connections,Kerberosetc arebest
answeredbyARSCconsultants.Emailatconsult@arsc.edu ortelephone
4508602
TechnicalquestionsonrunningGaussianarebestdirectedtoGaussian
consultantsathelp@gaussian.com
CurrentusersincludingJ.Keller(ffjwk@uaf.edu)mayalsobeabletomake
constructivesuggestions.
ThefullmanualofHyperChem methodsandtheoryinpdf formatisinstalled
oneachcomputerinthechemistrycomputerlab.

3-18-2008

John W. Keller 2008

Computationalchemistrybackground
Basicallytwowaystocalculatemolecularstructure:
1. Molecularmechanics
2. Quantummechanics
Basissets
Fourdifferentmethods
Geometryoptimization
Comparingdifferentmethods&basissetswithanexample

3-18-2008

John W. Keller 2008

Molecularmechanics
Eachbondandbondangleisassignedapotentialfunctionbasedon
experimentalbonddistancesandangles.Theseareaddedup
andthenminimizedasthegeometryisadjusted.
Thesetofpotentialfunctionsiscalledaforcefield.
Thereare3forcefieldsavailableinGaussian:AMBER,DREIDING,
UFF.
Fast.Usedmainlyforlargemolecules.AMBERisthestandardforce
fieldusedinproteinoptimizationandmoleculardynamics.
Majorlimitations:Noelectrondensity,vibrations,orotherspectroscopicresults.
Majorlimitations:Noelectrondensity,vibrations,orotherspectroscopicresults.

3-18-2008

John W. Keller 2008

Quantummechanics
BasedontheSchrdingerEquation.

H=E

Hisenergyoperatorwhichdescribesthekinetic
andpotentialenergyofanelectroninfieldof
nucleiandotherelectrons.
Usuallythenuclei areassumedtobestationary.
(Electronsmoveat~c/3.
Nucleimoveat~c/25,000.)

isf(x,y,z)
Asetofspatialdistributions
describingtheprobabilityof
findingelectrons(orbitals).
istheproductofn spatial
functions(s),oneforeachof
n electronsintheatomor
molecule.
AsingleatomhasAOs.
MoleculeshaveMOs.

E=sumoftheenergiesoftheorbitals,which
maycontain1,oratmost2,electrons.
3-18-2008

John W. Keller 2008

Gaussian approximatesorbitalshapesand
orbitalenergiesofagivenmoleculargeometry
usingamodel chemistry consistingoftwoparts:
abasis set andamethod.

3-18-2008

John W. Keller 2008

10

BasisSets
Molecularorbitals(MOs)areapproximatedaslinear
combinationsofbasisfunctions(thebasisset),which
mathematicallylooklikes,p,ordatomicorbitals.
Eachatomisassignedseveral(ormany)basisfunctions.
Inturn,eachbasissetfunctioniscomprisedofanumber
ofgaussianfunctionscalledprimitives.
Calculationsusing largebasissets aremoreaccuratebecause
theyarelessrestrictiveonthelocationoftheelectrons.
Suchcalculationsarealsomoreexpensive becausetheyrequire
computingmoreintegrals.
3-18-2008

John W. Keller 2008

11

BasisSets,continued
Splitvalencebasissets weredevelopedbyJohn
Pople,1998NobelPrizewinnerandfounderof
Gaussian,Inc.
Thebasissetnomenclature describeshowthe
basisfunctionsareconstructedfromthegaussian
primitives(thecontractionscheme.)

A p-orbital in
the 6-31G
basis set is
split into
inner and
outer p-type
sub-orbitals.

Example:631Gbasisset
Thenumber ofdigits(2here)indicates
howmanysuborbitalseachvalence
atomicorbital issplitinto.
Thefirstnumberindicatesthe#of
gaussianprimitivesusedforcore
(inner) electrons.
3-18-2008

John W. Keller 2008

Thevalues tellhowmany
gaussianprimitivesmakeup
eachsuborbital.

12

BasisSets:addingpolarization anddiffuse basisfunctions


#andtypeofbasisfunctions

Basisset

EachHatomgets:

EachC,O,orFatomgets:

631G

2 (1s,1s)

631G(d)or631G*

2 (1s,1s)

15 (1s,2s,2s,3p,3p,6d)

631G(d,p)or631G**

5 (1s,1s,3p)

15 (1s,2s,2s,3p,3p,6d)

631G+(d,p)or631+G**

5 (1s,1s,3p)

19 (1s,2s,2s,2s+,3p,3p,3p+,6d)

9 (1s,2s,2s,3p,3p)

631G++(d,p)or631++G** 6 (1s,1s,1s+,3p) 19 (1s,2s,2s,2s+,3p,3p,3p+,6d)


Diffuse functions extend further out from the nucleus, and are necessary for
modeling non-bonding or weakly-bonding systems.
3-18-2008

John W. Keller 2008

13

Methods
Thesediffermainlyaccordingtohow,orif,electron
correlation istreated.
Electroncorrelationisthetendencyofelectronstoavoideach
other,evenwithinthesameorbital.

Fourcommonquantummethods:
Semiempirical

Uses pre-calculated orbital functions for different


kinds of atoms. Fast, but less accurate.

HartreeFock(HF),
MllerPlessetn (MP2),
DensityFunctionalTheory(DFT)
3-18-2008

John W. Keller 2008

ab initio methods that require


significant computing power for
accurate results.

14

HartreeFock(HF) method
Electroncorrelationisignored.Themanyelectronwavefunction()isestimated
bytheselfconsistentfield(SCF) method.

Thisstartswithaninitialguess of (o),whichistheproductof
theinitialestimatesofthemolecularorbitals.

o = 0 (1) 0 (2) 0 (3)


Then,whilealltheotherMOfunctionsareheldconstant(thefield),each
isvariedsoastominimizethetotalenergy.Thisisthevariational
method. Thisgivesanew (1):

1 = 1 (1) 1 (2) 1 (3)


Thisprocessisrepeateduntilthechangeinenergyisclosetozero.
Theseorbitals thencomprisetheselfconsistentfield.
3-18-2008

John W. Keller 2008

15

MllerPlesset(MP)
Electroncorrelationisaccountedforallowingoneormoreelectronsto
occupyhigherenergy,unoccupied(antibonding)MOs.
Thisresultsinanenergycorrectionthatlowersthetotalenergy
becauseitlowerstheelectronelectronrepulsionenergy.
ThecommonlyusedMP2 methodactuallyconsiderstheeffectof2
electrons occupyingantibondingorbitals.
MP2ismoreexpensivethanHFbecausemore
configurationsmustbecalculated.

3-18-2008

John W. Keller 2008

16

DensityFunctionalTheory
Developed by Walter Kohn of UC-Santa Barbara and others.
Kohn shared the 1998 Nobel Prize with John Pople.
Gives nearly the same accuracy as MP2, but with the (lower)
computational cost of Hartree-Fock SCF.
Afunction transformsanumber intoanothernumber.

Afunctional transformsafunction intoanumber.

ComputationalChemistry,E.Lewars,2003,Kluwers,p.388.

3-18-2008

John W. Keller 2008

17

DensityFunctionalTheory
HohenbergKohnTheorem:
Energyofamolecule
=F[electrondensity],whereelectrondensity=f(x,y,z))
Thissaysthatthereexists afunctionalthatwillcalculate
molecularenergyfromelectrondensity.
Butitdoesnotsaywhatthefunctionalis!
DFTmethodsaccountforelectroncorrelationbyestimatingtheinteractionofan
electronwiththetotalelectrondensity.
DFTorbitals areformedfrombasisfunctions likethoseusedinSCForMP2.
MostpopularDFTmethodisB3LYP.(Becke 3Parametermethodforcalculatingthat
partofthemolecularenergyduetooverlappingorbitals,plusthe LeeYangParr
methodofaccountingforcorrelation.)
3-18-2008

John W. Keller 2008

18

GeometryOptimization
AMBERoptimizationstartingwithanon
optimalconformationoftheaspirinmolecule.
VisualizedinrealtimewithHyperChem.
Energy

PotentialEnergySurface

Gradient 0kcal/mol

Geometry(dist/angles)
Optimizationadjustsgeometryto
decreasethetotalenergyuntilit
reachesthenearestminimum.

3-18-2008

InGaussian/GaussView, optimizationstepsare
visualizedbyqueryingthe.logoutputfile.

John W. Keller 2008

19

3-18-2008
John W. Keller 2008

Model Chemistry

Exp (Costain)

Exp (Martinache)

B3LYP/AUG-cc-pVTZ

B3LYP/AUG-cc-pVDZ

B3LYP/6-31++G(d,p)

2.85

B3LYP/6-31+G(d,p)

2.80

B3LYP/6-31G(d,p)

B3LYP/6-31G(d)

BLYP/6-31G(d,p)

BLYP/6-31G(d)

MP2/6-31++G(d,p)

MP2/6-311(d,p)

MP2/6-31(d,p)

MP2(Full)/6-31G(d)

MP2/6-31G(d)

MP2/6-31G

HF/6-31++G(d,p)

HF/6-311G(d,p)

HF/6-31+G(d)

HF/D95**

HF/6-31G

HF/3-21G

O-O Dist ()

Usingdifferentmodelchemistries toestimateOOdistancesin
theformicacidtrifluoroacetic acidbimolecule.*

2.90

O
H

O
H

O
H

2.75

2.70

2.65

2.60

2.55

*J. W. Keller, J. Physical Chemistry A 108, 4610-4618(2004)

20

Using Gaussian and GaussView

3-18-2008

John W. Keller 2008

21

CreateandsubmitaGaussianinputfile
HyperChem:
Buildandoptimize
molecule,andsave
asxx.mol

GaussView:
Buildmolecule
(oropenxx.mol).
Createxx.com inputfile

MS Word orothertexteditor:
Formatxx.com as
USASCII,LFOnly.
Openxx.ll script.Editandsave
insameformat.

PuTTY:
Submitxx.ll job
3-18-2008

John W. Keller 2008

Kerberos5:
Obtainkerberos ticket

Filezilla:
Uploadxx.com andxx.ll to
/wrkdir/username/on
iceberg.arsc.edu
22

Suggestion:
Uselongfilenamestokeeptrackofdifferentcomputationaljobs.
MoleculeBasissetMethodJobtype.com
Gaussianinputfile(AA631ppGssB3LYPOptFreq.com)
PBSscriptfile(AA631ppGssB3LYPOptFreq.cmd)
Aceticacid
631++G**basisset
B3LYPmethod(themostcommonlyused
DFTmethod)
3-18-2008

OptimizationandVibrational frequencycalculation
John W. Keller 2008

23

Gaussianinputfile(xx.com)canbetypedinmanually,or
createdbyGaussView
OptionalLink0 linesforjobcontrol:
***Namescheckpointfile(savesoutput)****
Setsamountofsharedmemory
Setsnumberofprocessors(noblanklineterminator) Routesection:keywordsdefine
typeofcalculation,method,
basisset,andoptionalsettings.
Blankline
Blankline

Titlesection

Netcharge

Moleculespecification
3-18-2008 Multiplicity(1 forevenelectronspeciessuchasmolecules;2 for
oddelectronspeciessuchasNOmolecule)

24
John W. Keller 2008

A script file is used to specify job details.


Iceberg uses the Loadleveler job queue software (xx.ll).
Midnight uses the PBS job queue software (xx.cmd).
A script must be used for each job.
#!/bin/ksh
This should
#PBS -q standard
#PBS -l walltime=1:00:00
#PBS -l select=4:ncpus=4:node_type=4way
#PBS -j oe

match the Link0 nproc line

# for midnight
# standard class
# Change directory to where the script is submitted
cd $PBS_O_WORKDIR
# Set Location of Gaussian
export GAUSS_SCRDIR=$WRKDIR
export g03root=/usr/local/pkg/gaussian/current
. $g03root/g03/bsd/g03.profile
# run the calculation
g03 AA-631ppGssB3LYP-OptFreq.com
3-18-2008

John W. Keller 2008

25

SomeGaussian outputiscontainedinthexx.log file.

Viewxx.log filedirectly

GaussView:
openxx.log
Viewmolecule(&vibrations)

Kerberos5:
Obtainkerberos ticket
3-18-2008

John W. Keller 2008

Filezilla:
Downloadxx.log filefrom
/wrkdir/username/
26

Electrostaticpotentialoutputis
containedinthexx.chk file.
Thesesurfacesarecalculatedby
GaussView(onlocalorremotemachine)
usingaformattedcheckpointfile as
input.Thisfileiscreatedfromthe
standardcheckpointfile(xx.chk)bythe
Gaussianformchk utilityprogram,which
runsonIcebergorMidnight.
Log on to Iceberg
cd /wrkdir/username/
ls
(to get filename list)
setenv g03root /usr/local/pkg/gaussian/current
$g03root/g03/formchk filename.chk
(paste it)
This should create the new file filename.fchk.
Transfer filename.fchk to your machine by FTP.
3-18-2008
John W. Keller 2008

27

CalculatingandDisplayingan
ElectrostaticPotentialSurface
InGaussView,openthexx.fchk file.
DoResults,Surface,CubeActions,
NewCube,TotalDensity,Coarse,OK.
SetIsovalue fornewsurfacetoabout
0.02(unitsofelectrons/3).
UnderSurfaceActions,chooseNew
MappedSurface,ESP.
AdjustcolorscaleMin/Max

3-18-2008

John W. Keller 2008

28

(1)Acube ofelectrondensityiscreated.
(2)Theisosurface iscreatedbyconnecting
boxesofequalelectrondensity(0.02e/3
here)

(3)Theelectrostaticpotentialis
calculatedateachpointonthe
electrondensitysurface.The
potentialvaluesarepainted on
thesurfaceusingaredtoblue
scale.
3-18-2008

John W. Keller 2008

29

OneCurrentProject
investigatesthestabilityandvibrational spectraofSO2formicacidcomplexes.

O
O

O
C

O
O

H
C
O

O
H

1) ArethecomplexesstableenoughtoexistinnaturalSO2acidgasmixtures
suchasvolcanogases?
2) Canweobservesuchcomplexesinthelaboratory?
3) Howimportantarethe StoOdipolarinteractions?

3-18-2008

John W. Keller 2008

30

Students
Gaussiancalculationsonthesecomplexeswerecarriedoutby
BronwynHarrod,thenafreshmanchemistrymajor.Shepresenteda
posteratthe2007MercuryConferenceonComputationalChemistry .
Sifat Chowdhury,aWestValleyH.S.student,workedonthisproject
asapartofhisAlaskaHighSchoolScienceSymposiumproject.

3-18-2008

John W. Keller 2008

31

Acknowledgements
NationalScienceFoundationforpurchaseofHyperChem and
GaussView licenses.
UniversityofAlaskaFoundation
ArcticRegionSupercomputingCenterforinstallingGaussian,and
providingampleamountsofcomputertime.

3-18-2008

John W. Keller 2008

32

TheEnd

3-18-2008

John W. Keller 2008

33

Geometry optimization of aspirin


HyperChemv8

Gaussian03

WinXP/DualCoreCPU

Iceberg/2Processors

PM3semiempirical

PM3semiempirical

0.00029

0.0000092

596

33

145.2472

145.1500

Dipolemoment
(Debyes)

4.742

4.7423

Wallclocktime

1min22sec

23sec

Method
Finalgradient
(kcal/mol)
#Iterations
Heatofformation
(kcal/mole)

~4x faster

3-18-2008

34

CalculatingandDisplaying
MolecularOrbitals
InGaussView,openthexx.fchk file.
DoResults,Surface,CubeActions,
NewCube,MolecularOrbital,HOMO,
Coarse,OK.
SetIsovalue fornewsurfacetoabout
0.02(unitsofelectrons/3).
UnderSurfaceActions,chooseNew
Surface,MO
(SurfacestyleissetusingFile,
Preferences,Surface,Format.)
3-18-2008

35

Molecularorbitalschemecanbeviewedusingthe
MolecularOrbitalEditor

3-18-2008

36

Rotationalconstants(inGHz)aremeasuredbymicrowavespectroscopy

3-18-2008

37

You might also like