Recent content by neoaikon

  1. N

    N-Body - Moon won't stay in orbit

    Ha! :redface: I figured out the issue, and a few mistakes in my implementation of VV. - Set Initial Velocity and Position - EarthX += (EarthVelX * dt) + (0.5 * OldEarthXAcceleration * (dt * dt)) - Get EarthSunDirection Vector - EarthXAcceleration = ((GC * SunMass) / (EarthSunDistance *...
  2. N

    N-Body - Moon won't stay in orbit

    I have determined my Velocity Verlet implementation to be correct, and the problem with the initial velocities. for an Earth like mass the solution for the most circular orbit was 38,677, and the solution for a Mars like mass was 38,575. Although I brute forced both of those values by trying...
  3. N

    N-Body - Moon won't stay in orbit

    I have came to the conclusion that Euler Integration will not work for me in this case, as the low compound percision of the measurements seems to affect the planetary system in a bad way. I am now using Velocity Verlet Integration, as I've read good things about it. However I'm not familiar...
  4. N

    N-Body - Moon won't stay in orbit

    Shouldn't the results of my formula provide good starting velocities? The orbits I get from that seem to fall within range, Is there anyway I can find out how much I should move the starting angles inward? or the vector needed for said velocity?
  5. N

    N-Body - Moon won't stay in orbit

    Well I actually am using velocity, but the terminology within my shortcode is wrong. - Calculate Direction Vector to Earth - Calculate Direction Vector to Sun - Calculate the Acceleration Vector from Earth and Sun - Calculate the Velocity Vector from the Earth and Sun - Moon's X = X +...
  6. N

    N-Body - Moon won't stay in orbit

    Wow! Thanks for the info D H. I was actually hoping to draw your attention, because a previous post of yours helped me out, and that's what made me choose here to post these types of questions. :). I'll add the changes you specified and see if that makes it more stable.
  7. N

    N-Body - Moon won't stay in orbit

    I do get the same results actually. The system should be stable, according to all other simulations I've seen, since I'm using real world values for these things. I wish I had the original source to peek at, all I have is my notes. I'm pretty sure the equations are correct, I've used them...
  8. N

    N-Body - Moon won't stay in orbit

    Looking back on some of my past notes I realized that the forces need to be added together before being multiplied into the vectors. The final moon routine looks like this: - Calculate Vector to Earth - Calculate Vector to Sun - Calculate the Acceleration from Earth - Calculate the Acceleration...
  9. N

    N-Body - Moon won't stay in orbit

    A long time ago, I wrote a program that takes bunches of particles and applies Newtonian gravity to each so they interact. Lately I've rewritten this program, in an effort to simulate planetary motion. However I've ran into a bit of a snag, I can get a Sun-Earth system to behave properly, and I...
Back
Top