Algorithm of gravity simulator

What did you draw?
Post Reply
User avatar
quodiddle
Posts: 2
Joined: Wed May 30, 2018 12:27 pm
Contact:

Algorithm of gravity simulator

Post 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
User avatar
testtubegames
Site Admin
Posts: 1148
Joined: Mon Nov 19, 2012 7:54 pm

Re: Algorithm of gravity simulator

Post 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.
User avatar
quodiddle
Posts: 2
Joined: Wed May 30, 2018 12:27 pm
Contact:

Re: Algorithm of gravity simulator

Post 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
User avatar
testtubegames
Site Admin
Posts: 1148
Joined: Mon Nov 19, 2012 7:54 pm

Re: Algorithm of gravity simulator

Post by testtubegames »

Great - glad it was helpful!
Post Reply