Excel projectile trajectory

In summary, "Excel projectile trajectory" refers to using Microsoft Excel to model and analyze the motion of projectiles under the influence of gravity. It involves creating formulas to calculate key parameters such as initial velocity, launch angle, maximum height, range, and time of flight. Users can input different values to visualize and predict the paths of projectiles through graphs and charts, enhancing understanding of physics concepts related to motion.
  • #1
swemek
1
1
Hello!

I'm doing some research for a small project that I hope you can help me with. I'm not a math genius, I just have an idea.

I have an Excel document of a projectile trajectory with an angle of 8 degrees. (Can be any angle.) Blue projectile trajectory.

What I want to do is enter the maximum height (green dashed line) and get a new angle. Red projectile trajectory. Calculated on a different tab.
I only tried my way up to the angle of 6.68 degrees.

Formulas used in Excel:
X-pos =B3+D3*t
Y-pos =C3+E3*t
X-Velocity =V0*COS(LA) =D3+H3*t
Y-Velocity =V0*SIN(LA) =E3+I3*t
X-Drag =-1/2*Dc*A*p*D3^2
Y-Drag =-1/2*Dc*A*p*E3^2
X-Accel =F3/m
Y-Accel =(G3+m*g)/m
Picture.png

Is this doable?

Hope you can help me.:smile:
Thanks in advance /M
 

Attachments

  • 1716906755571.png
    1716906755571.png
    3.7 KB · Views: 32
  • 1716906889746.png
    1716906889746.png
    1.1 KB · Views: 29
  • Like
Likes berkeman
Physics news on Phys.org
  • #2
swemek said:
X-Drag =-1/2*Dc*A*p*D3^2
Y-Drag =-1/2*Dc*A*p*E3^2
This won't work. Since drag is non-linear, you cannot split its calculation into X & Y components like that. You have to compute the total XY-speed, use that for total XY-drag, and split that in X & Y drag components.

As for your main question. You probably need something like this:
https://www.tutorialspoint.com/exce...a_analysis_optimization_with_excel_solver.htm
Decision Variable Cell : launch angle
Objective Cell (to be minimized) : (MAX(Y_POS) - TARGET_MAX_Y_POS)^2
 
Last edited:
  • Like
Likes Vanadium 50, pbuk and berkeman
  • #3
A.T. said:
Objective Cell (to be minimized) : (MAX(Y_POS) - TARGET_MAX_Y_POS)^2
Is your recommendation of this rather than simply MAX(Y_POS) - TARGET_MAX_Y_POS based on experience?
 
  • #4
pbuk said:
Is your recommendation of this rather than simply MAX(Y_POS) - TARGET_MAX_Y_POS based on experience?
If you minimise the difference I would expect the optimizer to aim for max(y_pos) tending to negative infinity, since that minimises the value. If you minimise the squared difference the optimiser should aim for equality.
 
  • Like
Likes A.T.
  • #5
pbuk said:
Is your recommendation of this rather than simply MAX(Y_POS) - TARGET_MAX_Y_POS based on experience?
This won't work for the reason stated by @Ibix. One could try ABS(MAX(Y_POS) - TARGET_MAX_Y_POS), but squaring the difference is usually more numerically stable, because of the smooth 1st derivative.
 
  • Like
Likes Ibix
  • #6
A.T. said:
This won't work for the reason stated by @Ibix. One could try ABS(MAX(Y_POS) - TARGET_MAX_Y_POS), but squaring the difference is usually more numerically stable, because of the smooth 1st derivative.
Ah sorry, I should have been clearer.

In solving similar problems I have always solved for a difference of zero by using Data -> What-If Analysis -> Goal Seek.

I do this because I have always done it this way and I wondered if you had experience that showed any option within the Analysis Tool Pack was faster/more stable/more accurate precise.

In any case for the problem in the OP, using Goal Seek would be perfectly adequate.
 

FAQ: Excel projectile trajectory

What is a projectile trajectory in Excel?

A projectile trajectory in Excel refers to the graphical representation and mathematical modeling of the path that an object follows when it is thrown or projected into the air under the influence of gravity. This can be simulated using Excel's formulas and graphing capabilities to visualize the motion of the projectile based on its initial velocity, angle of projection, and other factors.

How can I calculate the range of a projectile in Excel?

The range of a projectile can be calculated using the formula: Range = (v^2 * sin(2θ)) / g, where v is the initial velocity, θ is the angle of projection, and g is the acceleration due to gravity (approximately 9.81 m/s²). In Excel, you can input these values into cells and use the formula to calculate the range, allowing you to change parameters easily and see how they affect the outcome.

What formulas are used to determine the height of a projectile in Excel?

The height of a projectile at any time t can be calculated using the formula: Height = v * sin(θ) * t - (1/2) * g * t². In Excel, you can create a table with time values and use this formula to calculate the corresponding heights, which can then be plotted to visualize the projectile's motion.

How do I create a graph of projectile motion in Excel?

To create a graph of projectile motion in Excel, you need to calculate the x (horizontal) and y (vertical) positions of the projectile at various time intervals using the formulas: x = v * cos(θ) * t and y = v * sin(θ) * t - (1/2) * g * t². Once you have these data points, you can select them and insert a scatter plot to visualize the trajectory of the projectile.

Can I simulate different angles and velocities in Excel for projectile motion?

Yes, you can easily simulate different angles and velocities in Excel by creating input cells for these parameters and then using them in your calculations. By changing the values in the input cells, you can observe how the trajectory, range, and height of the projectile are affected, allowing for a dynamic and interactive simulation of projectile motion.

Back
Top