- #1
cscott0001
- 6
- 1
Homework Statement
When a rocket launches, it burns fuel at a constant rate of (kg/s) as it accelerates, maintaining a constant thrust of T. The weight of the rocket, including fuel is 1200 kg (including 900 kg of fuel). So, the mass of the rocket changes as it accelerates:
[tex]m(t) = 1200 - m_ft[/tex]
We’ll assume that the rocket experiences a drag force proportional to the square of velocity. Using Newton’s Second Law of Motion, we can write down the equation of the height of the rocket y(t) as a function of time, t. Namely,
[tex]m(t)(\frac{d^2y}{dt^2})=T-m(t)g-c_d(\frac{dy}{dt})^2[/tex]
Assume an initial height of y(0)=0 and an initial velocity of dy/dt(0)=0. g = 9.81. Return a vector of t-values and a vector of y values.
It's a programming assignment, so the values for T, mf, and cd, along with the range of t to solve for, are meant to be inputs.
I have never taken a differential equations class, so I'm having difficulties figuring out what I have and where to go from here to get the the point where I can use numerical methods to solve for position. I believe I have an equation for acceleration and mass, and I need to find the positions. I'm given an initial velocity of a velocity function, but I am not given a velocity function, am I to find that first?
Homework Equations
Besides what's given above, I have the Runga-Kutta equations.
The Attempt at a Solution
I haven't gotten far in any attempts, mostly because I'm completely stuck in the differential equation step, of which I'm not familiar with any formulas or processes. My only attempt involved setting the second equation to a function of (t,y) for (t,dy/dt) and used RK to find dy/dt, but that went to negative infinity immediately.