Simulating Missile Launch: Confirming Accuracy of Calculations

  • Context: Undergrad 
  • Thread starter Thread starter gimpy
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on simulating a missile launch using a simple Java program. The user calculates the missile's impact point on a target located 250m away and 170m high using projectile motion equations. Key parameters include an initial velocity (V) of 200 m/s, gravitational acceleration (g) of 9.81 m/s², and an angle (alpha) of 45 degrees. The user correctly applies the quadratic formula to determine the time of flight and subsequently the impact point, although a contributor points out that this model does not account for the complexities of rocket motion, such as changing mass during fuel burn.

PREREQUISITES
  • Understanding of projectile motion equations
  • Familiarity with Java programming
  • Knowledge of the quadratic formula
  • Basic concepts of rocket dynamics
NEXT STEPS
  • Research the rocket equation to understand changing mass during flight
  • Learn about advanced projectile motion simulations in Java
  • Explore the effects of air resistance on missile trajectories
  • Investigate numerical methods for solving differential equations in motion simulations
USEFUL FOR

Engineers, software developers, and physics enthusiasts interested in missile simulation and projectile motion modeling.

gimpy
Messages
28
Reaction score
0
Ok i just want to comfirm that i did this correctly. I am making a simulator for a missile launch (simple java program). Anyways the Launch pad is located at 0m and the target is located 250m away and it is 170m high and flat and infinitly long. Now i want the missile to just display where it hits on the target (170m high, if it can fit on the screen or course). So this is what i did.

I used for the x and y positions

x = t*V*cos(alpha)
y = t*V*sin(alpha) - (g*t^2)/2

t = ?
V = 200 m/s
g = 9.81 m/s^2
alpha = 45 degrees * PI/180 (conversion to radians)

Now i know what y is (170m) so to find x (impact point) i must solve the equation y = t*V*sin(alpha) - (g*t^2)/2 for t then substitute t into x = t*V*cos(alpha).

So,

(gt^2)/2 - t*V*sin(alpha) + y = 0

then i solve this using the quadratic equation

(-b +- sqrt(b^2 - 4*a*c))/2*a

where
a = g/2
b = -(V*sin(alpha))
c = y

to obtain the roots , which are the times in seconds where the missile is at h=170m (going up and coming down). So obviously the the greater root (t) is the impact point of t (where the projectile lands on the target when it comes down).

Oh and to solve the quadratic equation i divided a, b and c by a, just to make a = 1. ( i get a different answer if i don't )

Does this sound right? I am pretty sure it is, i just want to make sure.

Thanks
 
Physics news on Phys.org
What you appear to be modeling is the case where a body is moving only under the influence of gravity. Is this correct for a rocket? Does it not start at zero velocity, accelerate to a maximum velocity at some altitude then begin the free fall situation? You need to investigate the rocket equation which takes into consideration the changing mass as the fuel burns during the acceleration phase.

What you are modeling is simply a rock thrown up at an angle with some velocity, this is not a rocket.
 

Similar threads

  • · Replies 30 ·
2
Replies
30
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K