
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Due Online Thursday midnight 9/ Read Ch. 6 in Hasbun -- concentrate on first two sections for now, but we will be getting to motion of charged particles in a field next. Read p 191-200 in Pratap about “handle graphics”. This will allow the axis font customization discussion to make sense.
RS3.4) [RS4.1] Write your own code (obviously you may borrow from Hasbun) that calculates and plots the trajectory (x vs. y) of a projectile subject only to linear drag and gravity. You now have to handle drag in x and y. Because the drag is linear, the x and y components can be handled separately, just as they are in the absence of drag for ordinary projectile motion. Let the object thrown be a baseball thrown by a good pitcher with an initial velocity of 25 m/s and an initial angle of 30 degrees w/ respect to the horizontal. Your code should generate a plot of the trajectory of the baseball in a vacuum and the trajectory of a baseball in air (for air, viscosity is 1.8x10^-3 N/(m^2-s). You will find that with linear drag, the air resistance is almost undetectable for a baseball. By trial and error, you should be able to fairly rapidly adjust the viscosity until you have found “sticky air” such that a baseball thrown in sticky air will come up with a range only half that of a baseball thrown in a vacuum or normal air. Submit projectile plots for the baseball in vacuum and sticky air. Use the 'FontSize', and 'FontName' attributes to set your axis labels to Times, 12 point font, your legend to Times, 12 point font, and your titles to Times, 14 point font. This exercise shows that linear drag is not so important for large objects in air. [RS4.2] Reanalyze the motion of a baseball in air including quadratic drag. The test conditions are as for the previous problem. Since quadratic drag is substantial on a baseball, you do not need to do the “sticky air” part of the problem. Real air will show a substantial effect on the trajectory. (Recall that Fd=(1/4)(piD^2/4)rhov^ where D is basketball diameter and rho is air density). Please note that square-law drag exhibits "coupling" meaning that the v_x motion comes into the v^2 term for the y-motion. Your plot should consist of at least two scripts. One is the "model" that implements the physics of drag. The other is the "view" script that passes the parameters into the model, gets the data back and plots it. I recommend that you do problem 4. such that you only need to swap out the drag function to do 4.2. On your plot, for extra credit, show the equations for drag and the values of the constants used, including the appropriate greek letters. [RS4.3] If you have written nice modular code, you can now easily write a script that returns both the range and the time of flight of a baseball subject to quadratic drag. Run this script through a loop with launch angles from 0-90 degrees in 2 degree increments. Print out the angle which gives the maximum range for quadratic drag on a baseball.