
PHYSICS 241 -- Assignment 3
Due Online Thursday midnight 9/18
RS3.3 due in class on Thursday 9/18
Read Ch. 1 in Hasbun -- concentrate on the sections about air resistance
and Euler's method.
PROBLEMS
RS3.1) Hasbun -- 1.4 Modified. Do what Hasbun asks. You may use his code but
modify it as follows:
1) It should not ask you a bunch of questions (though it is quite useful to
have that for experimenting), rather hard code all the variables that you
need to answer 1.4 as it is posed.
2) Furthermore, insert a print statement so that the program generates both
plots and hard copy .jpegs of those plots.
3) In addition, rather than "comparing to the analytical solutions" which you
know anyway, plot the analytical solutions on the same axes as the numerical
solutions.
4) Choose and hard-code "NPTS" (the number of points in the interval).
Pick a value of NPTS such that the numerical and analytical solutions agree
well (Maximum error <0.5%). Pick another value of NPTS such that the numeric and
analytical solutions differ by 20% at some point in the plot. (You can do this by
exploration and repetition -- you don't have to calculate NPTS to get an exact 20%
error).
Finally what you submit is a single script which generates (in a single run) four
plots for the two values of NPTS you selected and the two values of v0 Hasbun
asserts. Also submit the four plots.
RS3.2) Hasbun -- 1.5 Modified. Again do what he asks, but again have one script do
both parts A and B, and again select two different values of NPTS. Since you don't
know the analytical solution for quadratic drag, you need to keep changing NPTS
until the resulting plots vary less that 0.5% (this is called "convergence").
Submit your script and any plots.
RS3.3) Derive an analytical closed form solution for motion of a sphere under
influence of linear drag and gravity in one dimension. (I will give you a handout
on Tuesday summarizing my derivation from last Thursday.)
RS3.4) 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 18 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. Since you've already solved problem 3.3, you
actually can do this problem both analytically and numerically. Do so – Include
both solutions in your plot.
This exercise shows that linear drag is not important for large objects in air.
Quadratic drag (which we'll test next week) dominates.