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
Algorithm of gravity simulator
- testtubegames
- Site Admin
- Posts: 1164
- Joined: Mon Nov 19, 2012 7:54 pm
Re: Algorithm of gravity simulator
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.
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
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
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
- testtubegames
- Site Admin
- Posts: 1164
- Joined: Mon Nov 19, 2012 7:54 pm
Re: Algorithm of gravity simulator
Great - glad it was helpful!