C# 3D N-Body Problem (Solar System) C#

AI Thread Summary
The discussion centers on solving the N-Body problem to simulate the solar system in 3D. The user expresses frustration with understanding how to calculate velocity, force, and position over time, despite having explored various integrators like Verlet and RK4. They specifically mention wanting to simulate the Sun as a static body at the origin, with planets including Mercury, Venus, Earth, Moon, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto. A suggested approach is to start with the equations of motion for each planet and convert them into a system of first-order differential equations, which can then be applied using general-purpose integrators like Runge-Kutta for the simulation.
mrtree
Messages
1
Reaction score
0
Hey there, first time posting, I have casually browsed this forum for a while.

Anyway on to the question, I am trying to solve in the best way possible the N-Body problem, I am at a complete loss, I have no idea what I can do, I have tried figuring out my self different integrators such as Verlet and RK4, but I cannot figure out anything.

What I need to be able to do is simulate our solar system in 3D, I have seen many implementations in 2D, but I can't find out how to calculate velocity, force and position as a function of time.

Any help would be amazing, and I would be eternally grateful.

EDIT: I should point the orbital bodies to be simulated.

Sun is Static in the center, 0,0,0
Mercury, Venus, Earth, Moon, Mars, Jupiter, Saturn, Uranus, Neptune and Pluto
 
Technology news on Phys.org
Start from the equations of motion for each planet. Convert this to a system of first-order differential equations, and you should be able to use that with any general-purpose integrator, such as Runge-Kutta.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
2
Views
3K
Replies
19
Views
4K
Replies
2
Views
3K
Replies
15
Views
3K
Replies
2
Views
4K
Replies
7
Views
3K
Replies
2
Views
2K
Replies
24
Views
4K
Back
Top