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!
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top