Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[40 points] Imagine you dug a tunnel straight through the center of the earth to the other side, and jumped in. You will experience
[40 points] Imagine you dug a tunnel straight through the center of the earth to the other side, and jumped in. You will experience acceleration due to gravity (g), but this will decrease as you approach the center of the planet (ignore the molten core) and then start increasing again as you start to move to the surface on the other side. You will also experience a drag force proportional to your velocity in the direction opposite your motion. The governing equation of motion is expressed by the following ODE for velocity: m dv dt msign(r)g(r) sign(v)cav, where vis velocity (m/s); t = time (s); g(r) is the changing gravitational constant (m/s) as a function of height above the Earth's center (r, in m); sign(x) is a function that returns -1, 0, and 1 for negative, zero, and positive values of x, respectively (you can use the Python function numpy.sign() for this); ca is the drag coefficient (kg/m); and m is mass (kg). Acceleration due to gravity is given by where G = 6.674 x 10-11 mkgs average density of the Earth. 4 3 g(r) = Gp is the gravitational constant and p = 5515 kg/m is the In both cases, calculate the position and velocity of the jumper for t = 0 to 3 x 105s (a bit over 80 hours) given the following parameters: m = 65.8 kg, and cd = 0.25 kg/m. Assume that the initial height is the radius of the Earth, 6.371 x 100 m, and zero initial velocity. Hint: Start by writing the equation in terms of position. Could we maybe turn that into..a system? a) Try using the midpoint method (i.e., modified Euler method) with a step size of 0.5 s. (Perhaps just solve to an end time of 100 s.) Can you obtain a reasonable solution? What does this tell you? b) Now solve this using scipy.integrate.solve_ivp(). Plot the resulting position and velocity as a function of time. Interpret the behavior-does this seem reasonable? Explain. Also, what is the range of time-step sizes that the integrator chose?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started