PREVIOUS: The Wave Equation | UP: Course Outline | NEXT: Higher Dimension |
Solution by smoothing the ends of the range. Here is the approach adopted in ex7.2_v2.py.
As the waves meet they interfere. Determine the maximum and minimum values of the field u on the grid during the simulation. Do they agree with your expectations?
Now using the smoothing procedure just described, repeat the interference calculation using two sinusoidal wave segments, each of wavelength 2 and 1 period in length. The left-hand segment is centered on xc = -8, has amplitude 1, and moves to the right. The right-hand segment is centered on xc = 8, has amplitude 0.5, and moves to the left. Smooth the edges of each pulse using the functions in mysmooth.py, with n = 3 and delx = 0.4.