Algorithm for acceleration of projectile undergoing squared velocity drag?

In summary, the conversation is about trying to write a Java program to simulate the motion of a projectile with drag proportional to the velocity squared. The conversation includes an attempt at writing the acceleration part and discussing the use of indexes. The person also mentions a previously worked out solution for free fall with air resistance on Wikipedia. The solution involves starting with the equation a = dv/dt = g - k v^2.
  • #1
Levis2
43
0
I am trying to write a java program to simulate the motion of a projectile undergoing a drag proportional to the velocity squared, but i am having some issues writing the acceleration part. This is my attempt, not sure if its right though;

a=g-kv^2
da/dt=-k dv^2/dt
since dv^2/dt=2vdv/dt;
da/dt=-2vkdv/dt
da=-2vkdv
and
a=dv/dt
dv=adt inserting;
da=-2vkadt
trying to incorporate some indexes; (bear with me, first prog. algorithm :)
a_(n+1)-a_n=-2vka_n Δt
a_(n+1)=a_n-2vka_n Δt

Is this all wrong ?
 
Physics news on Phys.org
  • #2
wiki already worked out a direct solution for free fall with air resistance (for constant air density which matches your original equation):

wiki_falling_with_air_resistance.htm

Wiki doesn't show the math. To get there, you start with

a = dv/dt = g - k v2

dv / (g - k v2) = dt
 

1. What is an "Algorithm for acceleration of projectile undergoing squared velocity drag"?

An "Algorithm for acceleration of projectile undergoing squared velocity drag" is a mathematical formula or set of instructions that can be used to calculate the acceleration of a projectile that is experiencing squared velocity drag. This type of drag occurs when a projectile's velocity is high enough that it causes an increase in air resistance, resulting in a decrease in acceleration.

2. How is this algorithm different from other acceleration algorithms?

This algorithm is specifically designed to account for the effects of squared velocity drag on the acceleration of a projectile. Other acceleration algorithms may not take this type of drag into consideration, resulting in less accurate calculations for high-velocity projectiles.

3. What factors does this algorithm take into account?

This algorithm takes into account the initial velocity of the projectile, the mass of the projectile, the air density, and the drag coefficient. It also considers the effects of squared velocity drag on the projectile's acceleration.

4. How can this algorithm be applied in real-world situations?

This algorithm can be applied in various fields, such as physics, engineering, and ballistics. It can be used to accurately predict the trajectory and impact of high-velocity projectiles, such as bullets, missiles, and rockets.

5. Are there any limitations to this algorithm?

Like any mathematical model, this algorithm has some limitations. It assumes that the projectile is in a vacuum, and does not take into account other factors that may affect its acceleration, such as wind or air turbulence. Additionally, it may not be as accurate for very small or very large projectiles.

Similar threads

Replies
8
Views
792
Replies
4
Views
2K
Replies
31
Views
2K
Replies
14
Views
304
Replies
6
Views
3K
Replies
4
Views
12K
  • Mechanics
Replies
5
Views
2K
Replies
7
Views
6K
  • Introductory Physics Homework Help
Replies
3
Views
813
Back
Top