Ummm... something isn't right, though. When trying to implement, I noticed that specific orbital energy is always smaller than zero for an eliptical orbit, zero for a parabolic orbit and larger than zero for a hyperbolic orbit. However, it might well be that a planet escapes when the star looses mass, so it's specific orbital energy wouldn't be the same anymore (it would be larger than zero, in any case).
It's probably the "specific" that gives me trouble here, I'll have to look at it a bit more...
edit: small correction... the orbit wouldn't get hyperbolic unless some other star interferes if the mass-loss occurs gradually... That's the reason why I'm getting planets at 4e10 AU's out. Unless I define a sensible sphere of influence, the math still sys that the planet is in Orbit. On the other hand, it seems like my AGB giants would loose pretty much ALL their planets. Is that possible?
second edit: forgett what I just wrote. converting meters back to AU before feeding it to stargen hepls a lot to get more believable results... :lol:
---------- Post added at 08:49 PM ---------- Previous post was at 04:48 PM ----------
(M_1+m)/(2a_1)=(M_2+m)/(2a_2)
After some further analysis, I have concluded that this formula can't be right (I noticed it after watching my debugger for a while, and when I took the thing apart it became obvious that it doesn't work, because in this constellation the smaller M_2 leads to a smaller a_2, while a should increase the smaller the mass is. I'll have to look a bit further into it, but it doesn't seem to be as easy as this, unfortunately.
---------- Post added 05-10-10 at 05:45 PM ---------- Previous post was 05-09-10 at 08:49 PM ----------
Hmmm... I'll need a bit of help here, or I will loose myself in assumptions that might not be correct...
Specific orbital energy is the sum of the body's kinetic energy and its potential energy, right?
Now, if the mass of the central body decreases, obviously the planet looses potential energy. The radius will have to increase to keep it constant (which is obviously exactly what I want).
I ASSUME that kinetic energy is also relative to the central body. That would stay the same, unless the body looses speed, which obviously won't happen, since there's nothing there to loose it on. So the kinetic energy would lead to a bigger radius, restoring the potential energy of the body. From this train of thought, I would expect specific orbital energy to stay the same, since kinetic energy never changes, and potential energy is restored by increasing the radius. Hence, the calculation of the new radius via specific energy SHOULD work.
which leaves me completely baffeled why the above formula doesn't work. Either my assumptions here are just wrong (verifying that is the major purpouse of this post) or the formula has been oversimplified so that that specific property got lost along the way (allthough I cannot really explain how this could happen).
However, if kinetic energy never changes, and above assumptions are correct, that would mean that I could calculate the new radius SOLELY on the basis of potential energy. Right or wrong?