How do I add air drag to projectile motion equations?

  • Context: Undergrad 
  • Thread starter Thread starter Mgccl
  • Start date Start date
  • Tags Tags
    Sphere
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
Mgccl
Messages
1
Reaction score
0
I'm trying to simulate a sphere got thown in the air
I have find the way of knowing x,y positioning of the sphere though this equation:
x(t) = vt cos(theta)
y(t) = vt sin(theta) - (gt^2)/2
Where v is the initial velocity, theta is the angle, t is the time and g is the gravity.

But this does not take into account of the drag, what if there is drag?
suppose I know the force of drag, where should I add in the 2 functions above?
 
Physics news on Phys.org
Drag acts in the (opposite) direction of the object, and is a function of the speed.
 
Are you simulating this on a computer? If so then the easier and more flexible approach would be to use integration. You could start with Euler intergration (google it). You basically calculate the forces on the ball each frame, use that to get the velocity and use that to change the position of the ball. YOu can easily add drag by adding a force proportional to the velocity.