I Unconventional Approaches for Boundary Values in Computing Wave Equations

  • I
  • Thread starter Thread starter TheCanadian
  • Start date Start date
  • Tags Tags
    Boundary Computing
TheCanadian
Messages
361
Reaction score
13
Hi, I was recently following an example shown in this link and just had a couple questions:
http://www.scientificpython.net/pyb...e-equation-and-making-a-video-of-the-solution

I believe I understand the steps, but was just not quite understanding the justification. In the link above, to compute values at i = 0 and/or j = 0, the terms corresponding to u at i-1 and j-1 disappear and the terms at i+1 and j+1, respectively, are doubled. The same thing is done at the end of the boundary where i = n and/or j = m; values for i+1 and j+1, respectively, are removed and the existing terms doubled. I was just wondering why exactly the author did this and the error involved in doing so? These values simply don't exist on the grid as they are outside the domain, but are there any alternative approaches possible?

Also, would you happen to have any suggestions for better methods than the central difference scheme shown in the link for solving a 2-dimensional (or higher) wave equation?
 
Physics news on Phys.org
It is in order to fulfill the boundary conditions. Using this trick the slope "out" of the lattice becomes zero.

Other methods of solution could be using Chebyshev polynomials.
 
Strum said:
It is in order to fulfill the boundary conditions. Using this trick the slope "out" of the lattice becomes zero.

Other methods of solution could be using Chebyshev polynomials.

I'm not terribly familiar with Chebyshev polynomials, but it seems like there's quite a bit of literature on this very problem (and associated tricks). Thank you!
 
Are there any good visualization tutorials, written or video, that show graphically how separation of variables works? I particularly have the time-independent Schrodinger Equation in mind. There are hundreds of demonstrations out there which essentially distill to copies of one another. However I am trying to visualize in my mind how this process looks graphically - for example plotting t on one axis and x on the other for f(x,t). I have seen other good visual representations of...
Back
Top