How to Simulate an Open Boundary in a 1D Wave Equation Solver?

Click For Summary
The discussion revolves around simulating an open boundary in a 1D wave equation solver using MATLAB. The user encounters issues with reflections at the boundary when applying a zero gradient condition, which is intended to model a free end. It is noted that some reflections are inevitable as energy cannot perfectly dissipate into the surrounding medium. To minimize reflections, the suggestion is made to explore "absorbing boundary conditions," which may require additional research for proper implementation. The user expresses gratitude for the guidance, indicating it has helped clarify their approach.
emirs
Messages
3
Reaction score
0
I am trying to write a solver for a 1D wave equation in MATLAB, and I have run into interesting problem that I just can't find a way out of.

I start with the wave equation, and then discretize it, to arrive at the following,

U{n+1}(j)=a*(U{n}(j+1)-2*U{n}(j)+U{n}(j-1))+2*U{n}(j)-U{n-1}(j) (for (j=1...end-1))

I'm trying to simulate an open end string (perturbate it in the middle for example, and I want the wave to disappear on the border)

Usually it is done (correct me if I'm wrong) with applying zero gradient boundary condition, which in my case is:
U{n}(end+1)=U{n}(end-1)
and leads to:
U{n+1}(end)=a*(-2*U{n}(end)+2*U{n}(end-1))+2*U{n}(end)-U{n-1}(end);

Unfortunately this condition creates a partial reflection from the end which is supposed to be free.

Please help

Regards
 
Physics news on Phys.org
Anyone?
 
Well, there ARE partial reflections from a free end, I think...the energy cannot transfer into the surrounding air with perfect efficiency.

But to eliminate as much reflection as possible, you should look up "absorbing boundary conditions". These are a bit tricky to implement and it may take a fair bit of reading to get them right.
 
Thank you, it is what I was looking for. You hae put me on the right track.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K