Unconventional Approaches for Boundary Values in Computing Wave Equations

  • Context: Undergrad 
  • Thread starter Thread starter TheCanadian
  • Start date Start date
  • Tags Tags
    Boundary Computing
Click For Summary
SUMMARY

The discussion focuses on unconventional approaches for handling boundary values in computing wave equations, specifically referencing a method from Scientific Python for solving the 2D wave equation. The technique involves modifying boundary terms by removing values at indices i+1 and j+1 while doubling terms at i-1 and j-1, raising questions about the justification and potential errors of this approach. Alternative methods, such as using Chebyshev polynomials, are suggested for better fulfilling boundary conditions in wave equation solutions.

PREREQUISITES
  • Understanding of wave equations and their numerical solutions
  • Familiarity with boundary value problems in computational mathematics
  • Knowledge of central difference schemes for numerical differentiation
  • Basic understanding of Chebyshev polynomials and their applications
NEXT STEPS
  • Research the application of Chebyshev polynomials in solving wave equations
  • Explore advanced numerical methods for boundary value problems
  • Study the implications of modifying boundary terms in numerical simulations
  • Learn about alternative numerical schemes beyond central difference methods
USEFUL FOR

Mathematicians, physicists, and computational scientists interested in numerical methods for wave equations, particularly those exploring boundary conditions and alternative solution techniques.

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!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K