Added: 2 years ago
From: MasterHD
Views: 2,447
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (9)

Sign In or Sign Up now to post a comment!
  • Was this GPU accelerated?

  • @xxbondsxx No, it's not even parallelized. Just a single Pentium 4 CPU.

  • I'm trying to do this but I haven't been to college and only completed algebra 2 and geometry 2 in high school so I'm just trying to get the math right on paper.

    What properties do your particles have? Do your particles have mass of their own to influence each other? What kind of scale are you working on? Any tips on what I should look up/ learn?

  • @lee155912000 I did not see your comment until now. I started by using a unit mass of 1 for each particle, then had to conjure up some kind of gravitational constant (G) that seemed to work well with the spatial domain (which was typically less than a distance of 4000 from the origin). I needed a nested loop to compute the distance and force between the i'th particle with the j'th particle (where j > i)

  • Great Job!

    Is it possible to share a link to a page with the code and explanation how u reached this result?

    I m interested expecially if u used RKF45 or ODE45 and how u implemented them in your code.

    Regards

  • I didn't use any ode solvers. I made my own. It just uses trapezoid rule for integration of the accelerations computed from Newton's law of universal gravitation (aka. the n-body problem). I think I ignored particles that were very distant from one another to save on computations.

  • thts pretty cool

  • Smart scientific people trying to understand the origins of the universe.

  • Ok,I'm smart,not helping me at all.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more