I'm trying to propagate the orbit of an Earth satellite. I've tried my calculation with gravity only (no drag), and also with drag only (no gravity).
The gravity-only calculations work fine and results in an expected orbit, but the atmospheric drag-only (gravity "turned off") show that satellite’s height above the Earth rises; the satellite just flies away!
I have tried other propogators in Matlab like HPOP and also cowell. For these I've also commented-out all perturbation effects as well as gravity, leaving only atmospheric drag, and I get the same results where the satellite also flies away.
Has anyone else tried to calculate atmospheric drag without gravity and get results where satellite fly away or its just me?
Here's some representative MatLab code for acceleration:
Vector Acceleration(double const &t, Satellite &y) {
// Gravity
Satellite sat;
sat.loc = y.vel;
double p = Magnitude(y.loc);
// GM – Earth gravity parameter = 398602
sat.vel = y.loc * -GM /(p*p*p);
// Atmospheric drag
QMatrix3x3 T = NutationMatrix(t) * PreccessionMatrix(MJD_J2000, t);
sat.vel += AccelDrag(t, y.loc, y.vel, T, y.size, y.mass, Cd);
return sat;
}
edited
above and you can scroll down to view previous versions (nothing has been lost). $\endgroup$