Newton's Cannon: Finding the displacement, velocity, acceleration

In summary, you would use the equation d = d_0 + v_0d*Δt + 1/2*a_d*Δt^2 to calculate the displacement, velocity, and acceleration of the projectile after a time Δt. You would use the equation v_d = a_d*Δt to calculate the velocity of the projectile at a specific time.
  • #1
Duvno
1
0
I'm working on a Java project to simulate Newton's Cannon (example: http://spaceplace.nasa.gov/how-orbits-work/).

How do I find the x and y components of displacement, velocity and acceleration of the projectile after a time Δt?

I know that I need to use Newton's law of gravitation, however I haven't come much further.

A simple answer would be welcomed warmly. Thanks in advance. :)
 
Physics news on Phys.org
  • #2
Use an iterative method to track the position and velocity of the ball in small time steps, or use the analytic solutions of the Kepler problem. The first one is easier to implement, the second one is more robust.
 
  • #3
Form a differential equation using the Newton's Law of Gravitation, resolving x and y components of velocity.

Then solve the differential equation, which can be very hard, and you'll get an exact solution.
 
  • #4
I modeled something similar earlier this summer. The method I ended up using is really easy.

Your program needs the inital x, y, and z components and the inital v_x, v_y, v_z components. For each time, you want to find what the acceleration is using a = (GM)/(x+y+z)^2.

Once you have that, you can use the motion equations that deal with constant acceleration bodies. This is an approximation that can produce infinitesimally small error given that your Δt is small enough. The relevant equations are:

d = d_0 + v_0d*Δt + 1/2*a_d*Δt^2 (for x, y and z)
v_d = a_d*Δt (for v_x, v_y, v_z)

so the workflow would look like this:

-give the program x0, y0, z0, and v0x,v0y, v0z
-calculate a1 using gravitation equation and x0, y0, z0
-calculate v1x, v1y, v1z using a1x, a1y, a1z (make sure you aren't using a1)
-calculate x1, y1, z1, using v1x, v1y, v1z, and a1x, a1y, a1z
-calculate a2 using gravitation equation and x1, y1, z1
-that is the iterative process you would use should you choose this method.

I found it really incredible that your accuracy is limited only by how small your Δt is. It's cool that even if you found some function x(t), y(t), z(t), the constant acceleration equation produces the same result as Δt->0.

Hope this helped.
 
Last edited:
  • #5


Hello! It's great to hear that you are working on a Java project to simulate Newton's Cannon. This is a very interesting and important concept in physics.

To find the x and y components of displacement, velocity, and acceleration of the projectile after a time Δt, you will need to use Newton's laws of motion and gravitation. To do this, you will need to first understand the basic equations for these quantities.

For displacement, you can use the equation x = x0 + v0Δt + 1/2at^2, where x0 is the initial position, v0 is the initial velocity, a is the acceleration, and t is the time. This equation will give you the displacement in both the x and y directions.

To find the velocity, you can use the equation v = v0 + at, where v0 is the initial velocity, a is the acceleration, and t is the time. Again, this equation will give you the velocity in both the x and y directions.

Finally, to find the acceleration, you can use Newton's second law of motion, F = ma, where F is the net force acting on the projectile, m is the mass of the projectile, and a is the acceleration. Remember to consider the forces acting on the projectile, such as gravity and air resistance, when calculating the net force.

Once you have these equations, you can use them to find the x and y components of displacement, velocity, and acceleration at any given time Δt. You can also use these equations to track the motion of the projectile over time and see how it changes.

I hope this helps and good luck with your project!
 

What is Newton's Cannon?

Newton's Cannon is a thought experiment created by Sir Isaac Newton to illustrate the principle of gravitational acceleration.

How does Newton's Cannon work?

In the thought experiment, a cannon is placed on top of a high mountain and fired horizontally. The cannonball travels in a straight line until gravity pulls it down, causing it to follow a curved trajectory and eventually fall back to the ground.

What is displacement in relation to Newton's Cannon?

Displacement refers to the change in position of an object. In the case of Newton's Cannon, displacement can be calculated by measuring the distance between the starting point of the cannonball and its final landing point.

How is velocity calculated in Newton's Cannon?

Velocity is a measure of the speed and direction of an object's motion. In Newton's Cannon, velocity can be calculated by dividing the displacement by the time it takes for the cannonball to travel that distance.

What is acceleration in relation to Newton's Cannon?

Acceleration is the rate at which an object's velocity changes. In Newton's Cannon, the acceleration of the cannonball is due to the force of gravity pulling it towards the ground. It can be calculated by dividing the change in velocity by the time it takes for the change to occur.

Similar threads

Replies
10
Views
1K
Replies
49
Views
1K
  • Mechanics
Replies
4
Views
632
Replies
8
Views
1K
Replies
4
Views
843
Replies
15
Views
963
Replies
3
Views
8K
Replies
27
Views
1K
  • General Engineering
Replies
23
Views
2K
Replies
2
Views
2K
Back
Top