next up previous
Next: ``Exact'' numerical solution Up: No Title Previous: Laplace and Poisson Equations

Numerical Solution

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 $N_x \times N_y$. 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

\begin{displaymath}\frac{1}{h^2}
\left( u_{i+1,j} + u_{i-1,j} + u_{i,j+1} + u_{i,j-1} - 4*u_{i,j} \right)
= S_{i,j}
\end{displaymath} (13)



Michel Vallieres
2001-05-11