[Tutor] wave equation boundary conditions

Alan Gauld alan.gauld at btinternet.com
Sun Mar 18 20:27:58 CET 2012

On 18/03/12 15:05, David Craig wrote:
> Hi, I have written some code which solve's the 2d wave equation (code is
> below). It seems to work, however when the wave reaches the boundaries
> it reflects off them and I would like to remove this effect. Does anyone
> know of a method to do this?

We have a few math bods here so you may well get an answer
but you could try


too, since the question is as much about the algorithm
as it is about learning Python.

Alan G
Author of the Learn to Program web site

More information about the Tutor mailing list