DISCRETIZATION AND TRUNCATION ERRORS IN A NUMERICAL-SOLUTION OF LAPLACE EQUATION

Authors
Citation
Wm. Macdonald, DISCRETIZATION AND TRUNCATION ERRORS IN A NUMERICAL-SOLUTION OF LAPLACE EQUATION, American journal of physics, 62(2), 1994, pp. 169-173
Citations number
6
Categorie Soggetti
Physics
Journal title
ISSN journal
00029505
Volume
62
Issue
2
Year of publication
1994
Pages
169 - 173
Database
ISI
SICI code
0002-9505(1994)62:2<169:DATEIA>2.0.ZU;2-K
Abstract
Numerical solutions to Laplace's equation for an electrostatic potenti al can easily be found in undergraduate physics courses by approximati ng the Laplacian on a mesh and solving the resulting difference equati ons using a spreadsheet program or a simple program written in BASIC o r PASCAL. The simplest numerical method uses iteration and accelerates the convergence by simultaneous overrelaxation (SOR). Truncating the iteration introduces an error in the solution to the difference equati ons, and this raises the question of how stringent to make the criteri on for convergence. This paper considers the relative magnitude of the errors made in approximating the Laplacian (discretization error) and in truncating the iteration (truncation error). Numerical results are given for an electrostatic cavity problem previously investigated by several authors, and the numerical solutions are compared with an exac t solution obtained by conformal mapping. It was found that when even a modest convergence criterion is used to truncate the iteration, the rms error inherent in discretization is more than an order of magnitud e larger than the error in the solution of the difference equations. I t was also found that the commonly used nearest-neighbor approximation to the Laplacian gives the most accurate numerical solutions.