In a finite difference solution of the partial differential equation,
an equally spaced grid is set ( hx = hy for simplicity ) to cover
the domain. The number of grid points is
.
The grid coordinates are
xi = hx i and
yj = hy j.
The unknown field and the source are
written on this grid.
u(x,y) = ui,j | (11) |
S(x,y) = Si,j | (12) |
Using the formula for the partial derivative the
partial differential equation becomes
(13) |