In
this simple program, a simple scientific formula will be used to calculate the
potential force of bullet.
Kinetic
Energy is = 0.5 * m * v2 /450395
Where m = mass
Where v =
velocity squared
The formulae
divide it by 450295 to get the foot for pound unit that Americans use.
To turn it
into joules; the result will have to be converted from foot for pound(ft.ib).
To do this: the result has to be multiplied by 1.3558179483 in order to get
joules.
This formulae is useful to calculate physics and potential kinetic energy of a projectile, this can be used in real life as for military purposes for example- weapon testing, prototyping, etc. This can be also used in video games as this using this formulae can create more realistic damage from projectiles.
Here is the code that's been created in python to perform this.
In this code, the program asks the user for the weight of the bullet in grams, and the velocity of the bullet.
After those 2 variables have been accounted for, the foot to pound energy has to be calculated by multiplying the weight and the velocity squared, divided in half and then divided by 450395. The print function could be used to display the foot to pound result to the user, but joules are desired in this scenario so the next step is required:
This result is then multiplied by 1.3558179483.
This gives us the kinetic energy in joules,
Making adjustments to the code, we will now print out both the foot pound ratio and the joules in a more easier to read way.
In this example, the cannon from the Iowa-Class battleship is used, it's cannons are one of the biggest calibres. 406mm cannons.
Modern ships in WW2 or in the cold war have varying calibres for their cannons, meaning their effectiveness is not similar, these cannons can range from 20mm to 460mm. During the age of sail, galleons and canons were around the same effectives, all cannons back then were smooth bore and had similar sizes. This program is used in account of modern ships to be used in the project of the Lancaster's Law Project.
No comments:
Post a Comment