Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some algorithms that will allow me to simulate planetary physics?

I'm interested in doing a "Solar System" simulator that will allow me to simulate the rotational and gravitational forces of planets and stars.

I'd like to be able to say, simulate our solar system, and simulate it across varying speeds (ie, watch Earth and other planets rotate around the sun across days, years, etc). I'd like to be able to add planets and change planets mass, etc, to see how it would effect the system.

Does anyone have any resources that would point me in the right direction for writing this sort of simulator?

Are there any existing physics engines which are designed for this purpose?

like image 390
Gaius Avatar asked Feb 02 '10 08:02

Gaius


People also ask

What is a simulation algorithm?

The basic simulation algorithm is to determine the execution time of each instruction in a trace. The completion time of the last instruction to execute is the total execution time for the trace. The resulting parallelism is the ratio of the sequential execution time to the parallel execution time.

How do you simulate an orbit?

The correct way to simulate orbits would be to solve a differential equation (say, Newton's equation). Such simulations are known to be unstable in the long-time regime when more than 3 bodies are present.


1 Answers

It's everything here and in general, everything that Jean Meeus has written.

alt text

like image 74
Stefano Borini Avatar answered Oct 14 '22 07:10

Stefano Borini