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)
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.
Was this GPU accelerated?
xxbondsxx 3 months ago
@xxbondsxx No, it's not even parallelized. Just a single Pentium 4 CPU.
MasterHD 3 months ago
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 1 year ago
@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)
MasterHD 3 months ago
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
VitoCocchiara 2 years ago 2
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.
MasterHD 2 years ago
thts pretty cool
SoulReaper1680 2 years ago 2
This comment has received too many negative votes show
Haha...Sadder,who watches this?
MrAnybody13 2 years ago
Smart scientific people trying to understand the origins of the universe.
MasterHD 2 years ago 4
Ok,I'm smart,not helping me at all.
MrAnybody13 2 years ago