Page 1 of 1

Algorithm of gravity simulator

Posted: Wed May 30, 2018 1:15 pm
by quodiddle
Hello,
I am a newbie :^)

With which calculation method are accelerations calculated in the Gravity Simulator?
I would like to write a text in a physics forum, with a simulation of the
Gravity Simulator, and would like to mention with which algorithm it was calculated.
(I think Runge-Kutta, Euler and so ...)

Best regards, quodiddle

Re: Algorithm of gravity simulator

Posted: Fri Jun 01, 2018 10:51 am
by testtubegames
If you're using the full (downloadable) version of GSim, you can actually control which method of integration is used by opening the 'time' menu and setting the quality manually.

The default, and the method used for the web version, is Runge-Kutta 4. There's no Barnes-Hut optimization, it's all point-to-point force calculations, and between each frame that's displayed, there are 40 sets of calculations for updating the position... and about 30 frames per second.

Re: Algorithm of gravity simulator

Posted: Wed Jun 06, 2018 9:04 pm
by quodiddle
Hello,
sorry, that took so long. Thank you for the information! I found the option :^)
I have the full (downloadable) version of GSim. The program is very valuable to me!


Best regards, quodiddle

Re: Algorithm of gravity simulator

Posted: Fri Jun 15, 2018 11:02 am
by testtubegames
Great - glad it was helpful!