Consider the following functional of a scalar field
:
| (7) |
where the integral is over a prescribed region of space.
In this expression
is the dielectric constant
(suppressing, for simplicity, any spatial dependence)
and
is a fixed charged distribution.
We shall term this functional an ``Action", based on
rough analogies with variational principles of classical
mechanics [7] and more direct analogies with
field-theoretical derivations of the PB Eq. (cf. Sect.
7 below).
If we consider all possible functions
satisfying the boundary condition that
has
prescribed values
on the surface,
then the
field which yields the minimum value for the
r.h.s. of Eq. 7 is the one that solves Poisson's Eq. (6) !
This can be shown via a standard application of the
calculus of variations. That is, substitute
(such that
on the boundary surface) and determine the
condition on the function
under which
the change in S for any small variation
around
is zero. The
condition is precisely that
satisfies
the Poisson Eq. [7].
Another form of S may be obtained under the
condition (relevant for many physical problems)
that either
or
is zero on the boundary
surface. Then we can integrate the first term
on the r.h.s. of Eq. 7 by parts and neglect the
surface term, so that:
| (8) |
Computing the functional derivative of S with respect
to
[11]
and setting it equal to zero again
yields the Poisson equation.
These variational statements can be put to
practical use. By considering
a discretized (lattice) form of Eq. (7) or (8),
a simple and effective annealing or relaxation strategy for
computing the
field is suggested.
In particular, consider the lattice-discretized form of Eq. 8, namely:
| (9) |
where
(a positive constant with
h the grid spacing),
is the total charge on lattice site
(the charge
density multiplied by h3
;
is a triple of integers that specifies position on the lattice),
and
is h2 times the discretized Laplacian operator or matrix.
Since this matrix
plays an important role in both the theory and practical implementation
of Poisson and Poisson-Boltzmann methods, we pause to note
its basic properties.
The discretized Laplacian operator is a
finite difference (FD) approximation
to the second derivative operator, summed over three
Cartesian directions. In one dimension,
. [Higher order approximations
are possible. These are considered in Section 2.4.4.] Thus
the second derivative function can be thought of as a vector (indexed
by position along the x axis) which can be obtained by linear
transformation of the function
(also represented by a vector
on a 1-d lattice):
.Here
is the 1-d finite difference second derivative
matrix, with non-zero elements of -2 on the diagonal and
+1 one off-diagonal. Written out in full, the matrix
looks like:
![]() |
(10) |
The element in lower left and upper right hand corners is appropriate for the boundary condition that the field has the value at the edge of the grid. Other boundary conditions are possible, for example, periodic or ``wrap-around" conditions. In this case, we replace with 1 in the lower left and upper right hand corners, but otherwise the matrix is unchanged.
Irrespective of boundary conditions, it is easy to see that this matrix is sparse and highly banded. It connects each (field) point on the lattice to its nearest neighbors, and only to its nearest neighbors.
The 3-D Laplacian matrix is simply the direct product
of
for, say, the x direction and unit
matrices in y and z directions, plus analogous terms
where
corresponds to y and z directions.
If we label a
3-D Lattice point by
, then the non-zero elements
of
are the diagonal
element
and elements (value +1) that connect
to any of its six nearest
neighbors on the lattice
, where
is a unit vector in the x,y, or z directions.
Thus each row/column has seven non-zero elements.
Just as in the 1-d case, the matrix is highly banded
and encompasses self-interaction plus
nearest neighbor coupling on the lattice [13].