Question about orbital mechanics
Posted: 26.01.2003, 21:11
Hey,
I've been messing around with Celestia for a while now, and I think it's quite impressive. I recently programmed a little program for my TI-86 calculator that would simulate two particles of different masses and how they would interact given a position and a starting velocity.
I used newton's law of universal gravitation, which seems to work quite nicely, but I'm having trouble understanding the application of Keplerian orbits. I know Keplerian orbits are composed of the conic sections, but I've gotten some orbits in my program that don't seem to be uniformly elliptical or of a determined shape.
For example, if I set one particle to have a great mass, lets say 5x10^10 and the other to have a mass of 20, and they are five units apart, and the large particle is stationary, and the small particle starts out with a velocity of about .5 perpendicular to the direction of the large body, then the small particle orbits around a few times, but its orbit seems to rotate and expand for each rotation, which certainly is not explained with Keplerian orbits. Do orbits have to be in the shape of a conic section when there are only two bodies?
Do you think this discrepency can be explained because of the limit on the precision for values on my calculator? There are only 14 decimal digits per floating point value allowed.
I can show you the source code if any of you are familiar with it. Its very very similar to BASIC.
Thanks.
I've been messing around with Celestia for a while now, and I think it's quite impressive. I recently programmed a little program for my TI-86 calculator that would simulate two particles of different masses and how they would interact given a position and a starting velocity.
I used newton's law of universal gravitation, which seems to work quite nicely, but I'm having trouble understanding the application of Keplerian orbits. I know Keplerian orbits are composed of the conic sections, but I've gotten some orbits in my program that don't seem to be uniformly elliptical or of a determined shape.
For example, if I set one particle to have a great mass, lets say 5x10^10 and the other to have a mass of 20, and they are five units apart, and the large particle is stationary, and the small particle starts out with a velocity of about .5 perpendicular to the direction of the large body, then the small particle orbits around a few times, but its orbit seems to rotate and expand for each rotation, which certainly is not explained with Keplerian orbits. Do orbits have to be in the shape of a conic section when there are only two bodies?
Do you think this discrepency can be explained because of the limit on the precision for values on my calculator? There are only 14 decimal digits per floating point value allowed.
I can show you the source code if any of you are familiar with it. Its very very similar to BASIC.
Thanks.