@FangYing
2016-04-13T23:59:53.000000Z
字数 2395
阅读 1377
python.assignment
name: Li FangYing
number: 2013301020027
Use Euler method to calculate a trajectory of a baseball, air drag andthe reduced air density at high altitudes are considered. Compare results with different firing angles and determine the angle that gives the maximum range.
The trajectory of a cannon shell is a good example of interesting physics about the mechanics of macroscopic objects which can't be solved analytically, but can be easily tackled with a computer. It involves the motion of a object through the atmosphere, so air drag must be considered, what's more, the air resistance's variation with altitude plays a key role. Let's see what's happen together!
According to some investigation, the drag force on a cannon shell can be written as
Setting the initial velocity, and change the shooting angle from to and is the increasing step ( for we know withoutair resistance, is the best angle which leads to the maximum range). The results are as following:
When we do not consider air drag:
The value box in the picture refers to .
in turn. Obviously, yields to the best range.
When we try to consider air drag:
The trajectory actually change a little. And to
yields to the maximum range.
As shown, the air resistance actually influnces the maximum range at different angles, and if you want to fix the best angle more precisely, probably we can divided 35 to 40 with 1 a step and repeat the program.
For the cannon shell do not travel very high, choosing adiabatic or isothermal approximation doesn't make a big difference, so we just apply the adiabatic mode of air to this problem.
When this new factor is considered and air density is changed, the result changed strikingly:
The lanuching angle , which used to result the minimum range, now leads to the maximum range. It implys the influence of air density according to different heights actually have a key effect on the range of a cannon shell.