math question

0 comments

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

LaTeX: frac{partial^2u}{partial t^2}=beta^2frac{partial^2u}{partial x^2},2ut2=β22ux2,

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

LaTeX: u_{50}left(tright)=sin^2left(frac{pi t}{5}right),:0:<t:<5:s.u50(t)=sin2(πt5),0<t<5s.

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:

LaTeX: frac{partial^2u}{partial x^2}=frac{u_{i+1}-2u_i+u_{i-1}}{dx^2}.2ux2=ui+12ui+ui1dx2.

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.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}