Next: Fundamentals of Multigrids Methods
Up: NUMERICAL METHODS FOR THE
Previous: ``FAST'' POISSON SOLVER
  Contents
The symmetry of the problem leads us to try a change of coordinate
system, from Cartesian to polar:
The mapping:
Hence, in the polar coordinate system we obtain a square lattice
associated with
, the cylindrical
domain via the mapping above. The square grid
has
four edges, denoted by
. The two domains are
illustrated in Figure 37.
Figure 37:
The Cartesian and Polar domains
and
, respectively
![\includegraphics[height=3in,angle=-90]{dpdom.eps}](img2734.png) |
(173) in Polar Coordinates is:
|
(176) |
 |
Boundary Conditions: on
we have Dirichlet condition on
the edge of the disk. Two other conditions are based on our expectation of the
solution. For example, we could demand that the solution be bounded at
the center of the disk and that it be periodic in
.
has 4 edges for which we need 4 conditions, that
is, on
Finally, we need a condition at
, for
. This
whole line corresponds to just a single point in
, namely
: the procedure outlined in problem # 3 HW 9 is a general
procedure for determining the condition at the origin. Here we could
impose the condition that
be constant along the line
. This
implies that
At this point, we have a well-posed problem. We solve (177) on
subject to
Remark: The coordinate transformation is not only a
proper choice of the coordinate system, preserving
symmetrices of the solution: it also avoids grid errors due to
interpolation which would be required in the discretization.
Notice as well, that the coordinate system turned our problem into a
``separable'' PDE (see elementary PDE book).
We can use finite differences to solve the problem
and then use the mapping to go from
to
and thus obtain the approximate solution
.
We will use Fourier methods, combined with finite differences
instead. Fourier methods are particularly suited to the solution of
functions which are periodic. In this case, the periodicity is in
hence in the
direction we'll use Fourier, and we'll
use finite differences for the radial direction The fastest algorithm
for a discrete Fourier transform is the FFT (a useful reference for Fourier
Methods is ``The DFT'' by the W. Briggs & V.E. Henson. The reason we
call this section ``Fast Fourier Solver for the Poisson/Helmholtz
Equation'' is because we're using FFT's rather than DFT's. In this sense
it is fast.
Since the solution is periodic in
, we'll apply the Fourier
transform:
is complex (in the implementation we could use a sine or
cosine transform, but we will use the complex transform, for simplicity
and generality). The goal is to convert the PDE into an infinite set
of ODE's for the Fourier coefficients
.
It's easy to deduce that
So, we multiply (177) by
and integrate from 0 to
and divide by
. Using orthoqonality, we obtain the set of
ODE's for the Fourier coefficients:
|
(177) |
  |
We also transform the boundary conditions:
(Note that solution is already periodic in
by having used
Fourier transforms). Now we need to take care of the condition
:
differentiate with respect to
and set
:
Since the
are linearly independent, for
all coefficients must vanish identically:
This leaves us with just a single missing item of information, namely
the boundary condition for the zeroth harmonic.
Since
|
(178) |
 |
Now, we're ready on the ODE part.
Remark: The key fact is that the fourier transform
uncouples the harmonics. We need to solve the ODE system and
then use the ``inverse'' Fourier formula
It turns out that (178) has an analytical solution in terms of
Bessel functions. More generally, we would use one of the boundary
value techniques presented in this course, i.e. finite differences,
shooting method, FEM.
Exercise) Show that, by using center differences, the FD
approximation
is
given by the solution of
|
(179) |
 |
The outcome is a tridiagonal system for every
and an almost
tridiagonal system for
. Such systems can be efficiently solved
by sparse
factorization.
Implementation comments: Of course, we need to truncate the
infinite set of ODE's by a subset. Say
(the truncation error induced depends on how large
is. See
Canutto, Quarteroni, Hussaini, book on Spectral Methods).
Provided
and
are smooth, good accuracy is attained and the
error drops exponentially with
!!
- (1)
- Use an FFT, so pick
transform
and
to get
and
Pick
and solve (180) for
for
and
- (2)
- Then employ a
inverse FFT to produce
on a
square grid.
- (3)
- find approximation of
on
by using the mapping on
.
Roughly, we need
ops for FFT in (175),
for LU solution in FD solution in (175), plus
for the reconstruction. This compares very
favorably with full finite difference methods.
Next: Fundamentals of Multigrids Methods
Up: NUMERICAL METHODS FOR THE
Previous: ``FAST'' POISSON SOLVER
  Contents
Juan Restrepo
2003-05-02