[关闭]
@74849b 2016-10-16T09:19:31.000000Z 字数 3524 阅读 1340

cannon shell projectile

exercise 2.9


摘要

We consider a projectile such as a shell shot by a cannon.This problem can be viewed as the motion in two spatial dimensions.If we ignore air resistance,the Newton's second law in two spatial dimensions is given as


where and are the horizontal and vertical coordinates of the projectile,and is the acceleration due to gravity.There are second-order differential equations,but we can deal with them by shifting them to first-order differentials.The algorithm is written as follows:

where and are the and components of the velocity.While we multiple the equations which we have to deal with,we can use our standard Euler approach to solve each one.We write each derivative in finite form through Euler method,which leads to

Given the initial values of ,, and ,we can use the former equations to estimate their values at later times.Similarily,we ignore the and higher,but there exists another error term,the air resistance.
The air reistance is very important,so we add that to the model.We assume that the magnitude of the drag force on our cannon shell is given by

where is the speed of the shell.We must consider the vector components as following:

with a similar expression for .
The componentsof the drag force are thus

Adding this force to the equations of motion leads to

The time evolutio is continued until becomes negative,which means the shell struck the ground somewhere during the previous time step.We should estimate where the shell struck the ground.
The last point above the ground and the first point below the ground give

we can use it to complish figure.

背景介绍

In exercise 2.9,we should consider that the air density vary as a function of the altitude.A approach is to assume that the air is a poor conductor of heat.This leads to the so-called adiabatic approximation.It performes :


where fits measured data fairly well.Here is the sea level temperature,and the exponent for air.The drag force due to air resistance is proportional to the density,so

where is the force at the sea level,and is the drag force at altitude.

正文

code
First,the equations don't involve the air resistance,show the figure for different firing angles:
without air force
Figure1 without air force

From this figure,we can find that angle which is close to has the maximum range.
Second,consider air resistance but no density variations:

Figure2 air resistance without density variations

Compared with Figure1,we find that the height and the range both are shortten a lot.But the for maximum range remains the same.
Third,we calculate the trajectory of cannon shell including both air drag and the reduced air density at high altitudes.The figure3 is taken on:
此处输入图片的描述
Figure3 air resistance with density variations

The for maximum range approaches ,the similar as the former conclusion.
Last,draw a figure that contains the case of no air resistance and air resistance with density variations for the and :
此处输入图片的描述
Figure4 comparation,red and cambridge blue lines represents the lines of air resistance with density variations

结论

The air will weaken the cannon's range and height.For the case in which air density is involved,the value of the angle that gives the maximum range is close to .

致谢

这次作业参考了13级学长的画图代码。

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注