please keep in mind that the following is homework, I do not want answers, only help. If you are confused as to what I refer to in this question, or I don't make any sense, please refer to the link below.
I'm trying to plot the path of a firework that weighs $.0008 kg$ and has a density of $1900 kg/m^3$, and has a burn rate of $0.0027 kg/s$ in 2d using java. The firework has a launch velocity of $22 m/s$. The only force acting on the x-axis is the drag force, and wind velocity which I can change.
The forces acting on the x axis are: -the initial velocity $22 m/s$
-the drag force
-gravity $9.807 m/s^2$
-the wind force: anywhere from $-15$ to $15$
The drag force is computed by $F_D=(pvAC_D)/2$
$p$=fluid density$=1.2 kg/m^3$
$v$=velocity magnitude
$A$=cross sectional area$=0.00046140621$
$C_D$=drag coefficient$=.4$
Without any wind acting on the x axis, the velocity magnitude is merely: $\sqrt(22^2+0^2)=484$ Now using the formula: $F_D=(pvAC_D)/2$ we get: $F_D=(1.2*484*0.0004614*.4)/2=.05359$
Now we also add the mass times the gravity(9.8m/s^2)to get our total force on the y axis.
$F_y=-mg-F_D(v_y/v)$ ($v_y$, the velocity of y, is the same as v, the velocity magnitude, since the x axis velocity is 0, so $v_y/v=1$)
Which translates to $F_y=-0.0008*9.8-.5359*(1)=-.54374$
So there is a total of .54374 downwards force on the y axis.
My professor then says to use the Runge-Kutta ODE solver to find the velocity of $x_k+1$ and $y_k+1$ but I'm not sure how to interpret the Runge-Kutta solver into the formulas that I've already been given.
To conclude, I know the initial downward force on the object, I know that it has an initial velocity of 22 meters/s, and I know that the mass will be reducing as my path increases. I don't want to know the wind force at this time, as I want to add that in afterwards.
Could someone please help me understand how the Runge-Kutta ODE solver applies to this assignment?
To answer Kalvotom:
The total force being placed on the sphere for each axis is as such: $F_x=-F_D(v_x/v)$ and $F_y=-mg-F_D(v_y/v)$
quoting the assignment: "Since force equals mass times acceleration and acceleration is the first differential of velocity with time, these two equations can be expressed as two differential equations:"
$dv_x/dt=(F_Dv_x/mv)$ and $dv_y/dt=-g(F_Dv_y/mv)$
"These two ordinary differential equations cannot be solved using algebra, so we are going to have to resort to a numeric technique." AKA Runge-Kutta