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 » Wed May 30, 2018 1:15 pm

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: 1083
Joined: Mon Nov 19, 2012 7:54 pm

Re: Algorithm of gravity simulator

Post by testtubegames » Fri Jun 01, 2018 10:51 am

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 » Wed Jun 06, 2018 9:04 pm

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: 1083
Joined: Mon Nov 19, 2012 7:54 pm

Re: Algorithm of gravity simulator

Post by testtubegames » Fri Jun 15, 2018 11:02 am

Great - glad it was helpful!

Post Reply