19.01.2015 Views

MOLPRO

MOLPRO

MOLPRO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5 INTRODUCTORY EXAMPLES 27<br />

***,h2o<br />

!A title<br />

r=1.85,theta=104<br />

!set geometry parameters<br />

geometry={o;<br />

!z-matrix geometry input<br />

h1,O,r;<br />

h2,O,r,H1,theta}<br />

basis=vtz<br />

!use VTZ basis<br />

hf<br />

!closed-shell scf<br />

ccsd(t)<br />

!do ccsd(t) calculation<br />

casscf<br />

!do casscf calculation<br />

mrci<br />

!do mrci calculation<br />

http://www.molpro.net/info/current/examples/h2o_mrci_vtz.com<br />

5.6 Tables<br />

You may now want to print a summary of all results in a table. To do so, you must store the<br />

computed energies in variables:<br />

***,h2o<br />

!A title<br />

r=1.85,theta=104<br />

!set geometry parameters<br />

geometry={o;<br />

!z-matrix geometry input<br />

h1,O,r;<br />

h2,O,r,H1,theta}<br />

basis=vtz<br />

!use VTZ basis<br />

hf<br />

!closed-shell scf<br />

e(1)=energy<br />

!save scf energy in variable e(1)<br />

method(1)=program<br />

!save the string ’HF’ in variable method(1)<br />

ccsd(t)<br />

e(2)=energy<br />

method(2)=program<br />

casscf<br />

e(3)=energy<br />

method(3)=program<br />

mrci<br />

e(4)=energy<br />

method(4)=program<br />

!do ccsd(t) calculation<br />

!save ccsd(t) energy in variable e(2)<br />

!save the string ’CCSD(T)’ in variable method(2)<br />

!do casscf calculation<br />

!save scf energy in variable e(3)<br />

!save the string ’CASSCF’ in variable method(3)<br />

!do mrci calculation<br />

!save scf energy in variable e(4)<br />

!save the string ’MRCI’ in variable method(4)<br />

table,method,e<br />

!print a table with results<br />

title,Results for H2O, basis=$basis !title for the table<br />

http://www.molpro.net/info/current/examples/h2o_table.com<br />

This job produces the following table:<br />

Results for H2O, basis=VTZ<br />

METHOD E<br />

HF -76.05480122<br />

CCSD(T) -76.33149220<br />

CASSCF -76.11006259<br />

MRCI -76.31960943

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!