Calculating Length of Barrel/Rails for Basic Newtonian Space Physics

  • Thread starter Thread starter Cyberduke
  • Start date Start date
  • Tags Tags
    Length
AI Thread Summary
The discussion revolves around creating a space war simulation game using C#, focusing on the physics of projectile motion and energy transfer. Key topics include calculating muzzle velocity based on force, mass, and rail length, as well as understanding kinetic energy and its implications for different projectile masses. Participants explore the relationship between mass, velocity, and the resulting damage upon impact, questioning how inertia affects these dynamics. The conversation highlights the importance of considering various factors, such as the mass of the projectiles and targets, when modeling collisions and energy transfer in the game. Overall, the thread emphasizes the need for a deeper understanding of Newtonian physics to accurately simulate these interactions.
Cyberduke
Messages
4
Reaction score
0
Basic Newtonian space physics

Ok I am just making a simple space war simulation game for kicks, using C#

I wanted to build in some customization and let the player pick different guns (think rail guns)

picking the:
-length of the rails (m)
-average force applied to the projectile along the rails (N)
-mass of the projectile (kg)

and the mass of the ship in (kg) will be allready known

ok so F = MA
A = F/M ?

I have tried modeling the acceleration of the projectile and stoping it when the velocity would have ment the projectile position exceeded the length of rails choosen.

but is there a formula I can use to calculate final "muzzle velocity"?
and how can I tell how far the ship would move in the opposite direction?
Is there a better way I could do this?

can someone point me in the right direction please.


Cheers,

Cyberduke
 
Last edited:
Physics news on Phys.org
I am just going to add to this something else I can't work out.

Been looking around on the web and these forums for most of today so far...

Inertia... I was just working out kinetic energy of projectiles and due to the velocity being of greater importance then mass.

KE = (0.5 * M) * (V * V)

The smaller the projectile propelled with the same force the more kinetic energy it has. Fine, but when I thought about it that didn’t feel right if you talk about firing grains of sand and punching a tiny hole though foot thick steel plate. (I suppose that can happen but...)

So inertia... I am guessing that I have to take the mass of the target and the mass of the projectile into account and subtract energy from the conversion (collision) somewhere along the line...

Please bear with me... I know these are stupid questions to some here but the only physics I have ever been taught was in bottom stream science class in school 10 years ago. (Dyslexic)
 
Ok a test...
I had a section of oak scrap wood about half a meter long 10 cm wide and 4 cm thick

I proped it up on some bricks in my garden and took out 3 hammers

First I started hitting the wood in the middle with a http://www.steptoesantiques.co.uk/acatalog/vintage_toffee_hammer.1156.JPG"
I hit the wood 30 times. This did not look like it was doing anything at all not even denting the surface of the wood.

Then I picked up a http://www.refocus-now.com/Stock/CATII/images/0%20A%20Hammer%20and%20nails,%20banging%20a%20nail%20into%20a%20plank%20of%20wood%20s..jpg.jpg"
I hit the wood 15 times. This made lots of circular dent marks in the surface of the wood (but still a bit frustrating)

Finaly I picked up my http://www.tradecounterdirect.com/prodimages/sladge-hammer.jpg"
One good wack and I got a satisfiying cracking noise
second wack and it split the wood in half(ish) kinda split up the length.


My point is I could have hit the wood all day with the toffee hammer and it would have still done nothing.
In which case the sledge hammer would have done far more dammage for less energy used.

What principle I am I missing In the woods ablilty to absorb energy/damage?
would the same be true on a larger scale if instead of wood it was steel plate?


Thanks,

Cyberduke
 
Last edited by a moderator:
#3 -- What about about the weights of the hammers? How far did you lift each one? How fast did they come down at the point of the impact? Does this help?
 
cyberduke, hitting something with a hammer is a bad judge. For the most part, you aren't accelerating the light hammers to their fullest; instead, they're capped by your arms' ability to move. In addition, I bet you used two hands for the sledgehammer, and one for the light ones, and probably gave it a larger swing. In addition, gravity itself accelerates everything at the same rate, so you weren't working under the same conditions.

You'll encounter a similar problem (well, several problems) if you try using a grain of sand on a rail gun. First, can it actually FIT in the rail gun? If the bars are so close together to hold a grain of sand together, can they push with the same force as a pair of rails holding up a bullet? Second, is air resistance. The sand will fly out and sloooooooooowwwwww down. In addition (I may be wrong on this, but it seems right), most rail guns cap off at a maximum velocity, because the pushing up the bars only goes so fast. Once you get below the mass for this, it doesn't really help to make the projectile lighter
 
ok maybe that was a bad example, since there are lots of other factors.

I was trying to explain why having trouble to get to grips with a concept
that I can actualy go and do.

Ok Imagen in deep space (very little gravity) there are two spheres of iron both with a mass of say 1,000 kg

there are then two iron projectiles one has a mass of 0.1 kg and the other 100kg

the 0.1 kg projectile is propelled at one of the 1,000 kg spheres useing 100,000 N of force for 1 second
A = F/M ?
sooo. 0.1 kg projectile travelles towards the 1000 kg sphere at 1,000 km/s

and the 100 kg projectile is propelled at the other sphere useing 100,000 N of force for 1 second sooo... at 1 km/s

the 0.1 kg projectile has (0.5 * 0.1) * (1000000 * 1000000)
= 50,000,000,000 KE

but the 100 kg object only has (0.5 * 100) * (1000 * 1000)
= 50,000,000 KE

Will both projectiles move their targeted spheres the by the same amount / do the same dammage apon impact?

I think I am missing something in these calculations and that is Inertia.
but I don't know how to factor it in.

missing for both for propelling the projectiles and for the impact.
 
comparing a flat solar panel of area 2π r² and a hemisphere of the same area, the hemispherical solar panel would only occupy the area π r² of while the flat panel would occupy an entire 2π r² of land. wouldn't the hemispherical version have the same area of panel exposed to the sun, occupy less land space and can therefore increase the number of panels one land can have fitted? this would increase the power output proportionally as well. when I searched it up I wasn't satisfied with...
Back
Top