From chemistry-request@ccl.net Sat Apr 17 12:23:28 2004
Received: from sirius.chem.vt.edu (sirius.chem.vt.edu [128.173.181.42])
	by server.ccl.net (8.12.8/8.12.8) with ESMTP id i3HHNOuR026131
	for <CHEMISTRY..at..ccl.net>; Sat, 17 Apr 2004 12:23:25 -0500
Received: from localhost (crawdad@localhost)
	by sirius.chem.vt.edu (8.11.6/8.11.6) with ESMTP id i3HHO6O18986;
	Sat, 17 Apr 2004 13:24:06 -0400
Date: Sat, 17 Apr 2004 13:24:05 -0400 (EDT)
From: "T. Daniel Crawford" <crawdad..at..vt.edu>
To: "Fernando D. Vila" <fer..at..freyr.chem.washington.edu>
cc: CHEMISTRY..at..ccl.net
Subject: Re: CCL:Finite Fields in Gaussian
In-Reply-To: <Pine.LNX.4.44.0404151450190.29657-100000..at..freyr.chem.washington.edu>
Message-ID: <Pine.LNX.4.44.0404171253190.18142-100000..at..sirius.chem.vt.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Spam-Status: No, hits=-0.5 required=7.5 tests=SMILEY autolearn=no 
	version=2.61
X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on 
	servernd.ccl.net

Dear Fernando:

I have carried out finite-difference field calculations myself (coded and
run), though admittedly not with Gaussian.  Thus, my answer and observations
may be only marginally helpful to you.

Most likely, the dipole perturbation is just a set of scaled dipole
integrals of the form, <p|z|q> * F, where p and q denote AO basis
functions, z is the z-component of the dipole operator, and F is the
(constant) field strength chosen in user input.  These integrals can be
added to the other one-electron integrals before the SCF calculation, thus
giving a homogeneous-field-perturbed energy.

The most difficult aspect of computing higher-order polarizabilities by
finite differences is the numerical error.  An example: the static 
polarizability is defined as the negative of the second derivative of the
energy with respect to the field, and a numerical second derivative formula
is:

alpha = - [ E(+d) - 2 * E(0) + E(-d) ]/ (2 d^2) + O(d^2)

where d denotes the field strength, E(+d) and E(-d) are the energies at
positive and negative field, and E(0) is the unperturbed energy.  The
numerical error is of the order d^2.

If I choose a typical finite-field strength of 0.0001 a.u., the numerical
error is about 10^-8.  However, this field strength produces a change in
the energy of only about 10^-7 a.u. for a typical small molecule like HF.
Thus, if you converge the energies to only 10 decimal places, you'll get
a polarizability that compares to the analytical result to only three
decimal places.  If you converge to 12-13, you can get 5-6 decimal places.
Beyond that, machine precision starts to interfere with the numerical
differentiation.

When you get to hyperpolarizabilities, however, the numerical errors get
larger, and it's harder to balance the wfn convergence criteria with the
inherent numerical errors in the finite-difference expressions.  (NB:
finite differences of analytically computed dipole moments can help.)

Finally, I note that the polarizability term in your polynomial expansions
differ by almost exactly a factor of two:

4.899299996216 * 2 = 9.798599992432, 

which is very close to the analytical result to about 5 decimal places.

I hope this helps.  If you already knew all these issues, I apologize for
wasting your time.

Sincerely,

-Daniel


On Thu, 15 Apr 2004, Fernando D. Vila wrote:

> For the energy:
>    -56.200911807600
>     -0.700079533332 * F
>     -4.899299996216 * F^2
>      3.333331240659 * F^3
>   -400.002401571933 * F^4
> 
> For the dipole moment:
>       -0.700079500000
>       -9.799183333333 * F
>        9.783333333291 * F^2
>     -466.666666569064 * F^3
>    66666.666631576154 * F^4
> 
> If you compare the coefficients of this polymomials with the coefficients
> in the formulas above you will see that there are many sign differences
> with respect to the analytic results I showed above. This problem is not
> new to me and the Gaussian manual very helpfully :-P informs us that "the
> coefficients are those of the Cartesian operator matrices; be careful of
> the choice of sign convention when interpreting the results".
> 
> Before I had always assumed that although Gaussian says that is adding an
> electric field, what is actually doing is adding a potential gradient (
> dV/di = V_i = -F_i ). This assumption always gave me correct results, but
> now it is totally irreconciliable with the sign I get for the
> hyperpolarizability.
> 
> So finally, my question: what is the CORRECT FORM of the perturbation 
> introduced by the Gaussian keyword Field.
> 
> Cheers and I will really appreciate any comments (Doug Fox, are you 
> there?? :-)
> 
> Fer.
> 

-- 
T. Daniel Crawford                           Department of Chemistry
crawdad..at..vt.edu                                    Virginia Tech
www.chem.vt.edu/faculty/crawford.php  Voice: 540-231-7760  FAX: 540-231-3255
                            --------------------
 PGP Public Key at: http://www.chem.vt.edu/chem-dept/crawford/publickey.txt



