Version 2 (modified by benl, 6 years ago)



Solves the Laplace equation u_xx + u_yy = 0 in a rectangular domain, by iteratively applying a stencil function function.

The first argument is the number of iterations to use. The second is a BMP file containing boundary conditions.

 repa-laplace 10000 pls-400x400.bmp pls-400x400-out.bmp


The main algorithm is at

The wrapper is at

Test Data

pls-400x400.bmp pls-400x400-out.bmp
Error: Macro Image(Examples/Laplace:laplace-400x400-thumb.png) failed
Attachment 'wiki:Examples/Laplace: laplace-400x400-thumb.png' does not exist.
Error: Macro Image(Examples/Laplace:laplace-400x400-out-thumb.jpg) failed
Attachment 'wiki:Examples/Laplace: laplace-400x400-out-thumb.jpg' does not exist.