19.01.2015 Views

MOLPRO

MOLPRO

MOLPRO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6 PROGRAM CONTROL 40<br />

6.13.1 Example for computing expectation values<br />

The following job computes dipole and quadrupole moments for H 2 O.<br />

***,h2o properties<br />

geometry={o;h1,o,r;h2,o,r,h1,theta} !Z-matrix geometry input<br />

r=1 ang !bond length<br />

theta=104<br />

!bond angle<br />

gexpec,dm,sm,qm<br />

!compute dipole and quarupole moments<br />

$methods=[hf,multi,ci]<br />

!do hf, casscf, mrci<br />

do i=1,#methods<br />

!loop over methods<br />

$methods(i)<br />

!run energy calculation<br />

e(i)=energy<br />

dip(i)=dmz<br />

!save dipole moment in variable dip<br />

quadxx(i)=qmxx<br />

!save quadrupole momemts<br />

quadyy(i)=qmyy<br />

quadzz(i)=qmzz<br />

smxx(i)=xx<br />

!save second momemts<br />

smyy(i)=yy<br />

smzz(i)=zz<br />

enddo<br />

table,methods,dip,smxx,smyy,smzz !print table of first and second moments<br />

table,methods,e,quadxx,quadyy,quadzz !print table of quadrupole moments<br />

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

This Job produces the following tables<br />

METHODS DIP SMXX SMYY SMZZ<br />

HF 0.82747571 -5.30079792 -3.01408114 -4.20611391<br />

MULTI 0.76285513 -5.29145148 -3.11711397 -4.25941000<br />

CI 0.76868508 -5.32191822 -3.15540500 -4.28542917<br />

METHODS E QUADXX QUADYY QUADZZ<br />

HF -76.02145798 -1.69070039 1.73937477 -0.04867438<br />

MULTI -76.07843443 -1.60318949 1.65831677 -0.05512728<br />

CI -76.23369821 -1.60150114 1.64826869 -0.04676756<br />

6.13.2 Example for computing relativistic corrections<br />

***,ar2<br />

geometry={ar1;ar2,ar1,r}<br />

r=2.5 ang<br />

{hf;<br />

expec,rel,darwin,massv}<br />

e_nrel=energy<br />

show,massv,darwin,erel<br />

dkroll=1<br />

hf;<br />

e_dk=energy<br />

show,massv,darwin,erel<br />

show,e_dk-e_nrel<br />

!geometry definition<br />

!bond distance<br />

!non-relativisitic scf calculation<br />

!compute relativistic correction using Cowan-Griffin operator<br />

!save non-relativistic energy in variable enrel<br />

!show individual contribution and their sum<br />

!use douglas-kroll one-electron integrals<br />

!relativistic scf calculation<br />

!save relativistic scf energy in variable e_dk.<br />

!show mass-velocity and darwin contributions and their sum<br />

!show relativistic correction using Douglas-Kroll<br />

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

This jobs shows at the end the following variables:

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

Saved successfully!

Ooh no, something went wrong!