Beruflich Dokumente
Kultur Dokumente
Hitting a home run can be interpreted as a simple projectile motion problem. In introductory courses,
these projectile motion problems were always in situations where there was no air resistance.
Using the
Runge Kutta 4 method, we can now complicate the situation and get a result that is more consistent with
reality.
Theory
In this lab, we use Runge Kutta 4 (RK4) to solve the projectile motion problem with drag. The method
y(t)
and corresponding
f (y, t) =
dy
dt . The general RK4 equations are given
as follows: [2]
y(t + h) = y(t) +
1
(k1 + 2k2 + 2k3 + k4 )
6
k1 = h f (t, y)
(1)
(2)
k2 = h f (t +
k1
h
, y(t) + )
2
2
(3)
k3 = h f (t +
h
k2
, y(t) + )
2
2
(4)
k4 = h f (t + h, y(t) + k3 )
(5)
To apply RK4 to the projectile motion problem, we must rst determine our equations of motion.
dv
= mg bv 2
dt
dx
=v
dt
where
is the velocity,
Cd
v , x)
is the
b=
(7)
is the position. Note that in equation (6), we have both the force of gravity and the drag
where
(6)
1
(Cd A)
2
b.
(8)
is the density.
= 0 e h0
where
0 is
(9)
h0 is
By applying RK4 to
Problem
Create a program that will apply the RK4 method to the projectile motion with drag problem.
The
program will be given a set of initial conditions and should be able to calculate the position and velocity of
the projectile at any point in time. It should also be able to calculate the position and velocity for dierent
initial angles.
Analyze the eects of drag and no drag on the maximum range of the projectile and the angle at which
the maximum range occurs. Also inspect how dierent altitudes aect the range of the projectile. Lastly,
observe how an additional wind will aect the range of the projectile.
honrudai.cpp uses the RK4 method to determine the position and velocity of a perfectly spherical baseball.
n
expectations.
50 .
45
as expected.
n are
represented by the green line, and Denver is represented by the red line. We see that increasing the altitude
also increases the maximum range. This is consistent with our expectations.
winds were the same, the change in maximum range for both cases were the same. In addition, the increase
in maximum range due to winds is greater than the increase in range due to higher altitudes in Denver.
Conclusion
We were able to investigate how drag aects the motion of a projectile using the RK4 method. Unfortu-
nately, there appears to be an error in the program used. This is most obvious when observing the angle at
which the maximum range occurs. With drag, this angle should be
output of
50
< 45 .
Despite the aw mentioned, the program was able to depict other situations well.
We found that at
higher altitudes, the maximum range of the projectile is increased. Winds will also increase or decrease the
maximum range depending on the direction of the winds.
References