Shearer Ch.3 Problem #7 (25 pts)
In the case of plane-wave propagation in the x direction within a uniform medium, the homogeneous momentum equation (3.9) for shear waves can be expressed as
where u is the displacement. Write a computer program that uses finite differences to solve this equation for a bar 100 km in length, assuming β = 4 km/s. Use dx = 1 km for the length spacing and dt = 0.1 s for the time spacing. Assume a source-time function at u(50 km) of the form
Apply a stress-free boundary condition at u(0 km) and a fixed boundary condition at u(100 km). Approximate the second derivatives using the finite difference scheme:
Plot u(x) at 4 s intervals from 1 to 33 s. Verify that the pulses travel at velocities of 4 km/s. What happens to the reflected pulse at each endpoint? What happens when the pulses cross?
Create an animation of your seismic pulse and show me how it and your code works in a short video submission created with Kaltura capture.
Hint: Examples of part of the code to do this problem in MATLAB and Python are attached.
Note: Yo can choose whether to use MATLAB or Python its all up to you.


0 comments