Author Topic: Gravitation Simulator  (Read 54 times)

Gravitation Simulator
« on: September 14, 2018, 06:59:50 AM »
This is a gravitation simulator, using Newtonian mechanics.  It is an update of a previous v0.954 program but now combined with InForm.  (The previous version cannot now be accessed as The Galleon has sailed off into the sunset!).  The use of InForm has greatly enhanced the look and usability of the program.

You will need the User Manual to download the program.  The screenshot shows a simulation of the Solar System where Pluto has nearly completed one revolution.

Richard

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: Gravitation Simulator
« Reply #1 on: September 14, 2018, 01:19:49 PM »
Great job there, Richard!

By the way, I love the demonstration mode with on-screen descriptions and all.

Have you considered changing frames and their child controls' colors to match the background?


Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: Gravitation Simulator
« Reply #2 on: September 14, 2018, 01:33:12 PM »
And a suggestion: Zoom In and Zoom Out would probably be more appropriately presented as buttons instead of a checkbox. A checkbox gives the idea of a setting instead of a command. Since you're setting their value to false with every click, a user may consider their click wasn't processed (especially since the zoom applied is in small steps).
« Last Edit: September 14, 2018, 01:34:22 PM by FellippeHeitor »

Online STxAxTIC

  • QB64 Developer
Re: Gravitation Simulator
« Reply #3 on: September 14, 2018, 01:45:36 PM »
I love the writeup, cant wait to go home and try the program. Because I cant wait, I gotta know a few things...

What kind of integrator is used, as in 1st order Euler, Runge Kutta, symplectic, or so on...?

Does the sun have finite mass? i.e. If we make Jupiter just as heavy, do we get to see the solar system as binary?

And finally, now that you are this far, I am interested in wiring in weak field general relativity to see precession of Mercury. Sounds like you used realistic physics constants, right?
"An eye for an eye like a fish needs a bicycle" - Adolf Lincoln

QB64 Projects:
http://www.barnesreport.net/sxript/
http://www.barnesreport.net/sprezzo/

Re: Gravitation Simulator
« Reply #4 on: September 14, 2018, 02:43:25 PM »
STxAxTIC, I knew you'd be interested.  You were similarly interested in the previous version.  Sorry to disappoint you.  The model hasn't changed from the previous, only integrated into InForm.

What kind of integrator is used, as in 1st order Euler, Runge Kutta, symplectic, or so on...?

Does the sun have finite mass? i.e. If we make Jupiter just as heavy, do we get to see the solar system as binary?

And finally, now that you are this far, I am interested in wiring in weak field general relativity to see precession of Mercury. Sounds like you used realistic physics constants, right?

Crikey!  I don't even understand about "what kind of integrator".  All that happens is I add up all gravitational inverse-square forces from every other body.  That's why it is so slow.  If only I knew some mathematics to be able to improve the speed.

The solar bodies have all their correct masses.

Funnily enough, I had thought "will STxAxTIC want relativistic effects to see effect on Mercury"?  Completely beyond me.

@Fellppe, I knew that this program would need modifications and the more suggestions the better for the next (and final) issue.

Richard