- #1
Smoove
- 6
- 0
Hi,
I am trying to create a program (3D simulator) that reproduces the Solar system's behaviour. In this idea, I am using Newton's first and second laws:
F = G * m1 * m2 / ( r * r)
a = F / m
I already managed to create a stable system containing the Sun, Earth, Jupiter and other planets... Everything seems to be working fine so far. However, an issue appears when I introduce the Moon: as we all know, it is supposed to be turning around the earth, but my simulator fails to reproduce that.
To illustrate the problem, allow me to present to you the following results:
Data:
Sun mass: 2 * 10^30
Earth mass: 6 * 10^24
Moon mass: 7.5 * 10^22
Distance Sun - Earth: 149000000 km
Distance Earth - Moon: 380000 km
Distance Sun - Moon: 149000000 + 380000 = 149380000 km
(note: the Moon is assumed to be on the opposite side of the Earth regarding the sun here, so the farest possible).
Newton's laws results:
F (Earth - Moon) = G * 6 * 10^24 * 7.5 * 10^22 / (380000 * 380000) = G * 3.116 * 10^36
F (Sun - Moon) = G * 2 * 10^30 * 7.5 * 10^22 / (149380000 * 149380000) = G * 6.722 * 10^36
a (Moon to Earth) = G * 3.116 * 10^36 / 7.5 * 10^22 = G * 4.15 * 10^13
a (Moon to Sun) = G * 6.722 * 10^36 / 7.5 * 10^22 = G * 8.96 * 10^13 (twice more!)
In other words, the Moon accelerates more toward the Sun than toward the Earth. Or another way to put it: the Earth cannot maintains the Moon's orbit.
The visible result in my simulator is that the Moon is orbiting around the Sun like any other planet.
I am obviously missing something important here, but I just can't figure out what it is!
Any lead would be much appreciate!
Many thanks,
Philippe
I am trying to create a program (3D simulator) that reproduces the Solar system's behaviour. In this idea, I am using Newton's first and second laws:
F = G * m1 * m2 / ( r * r)
a = F / m
I already managed to create a stable system containing the Sun, Earth, Jupiter and other planets... Everything seems to be working fine so far. However, an issue appears when I introduce the Moon: as we all know, it is supposed to be turning around the earth, but my simulator fails to reproduce that.
To illustrate the problem, allow me to present to you the following results:
Data:
Sun mass: 2 * 10^30
Earth mass: 6 * 10^24
Moon mass: 7.5 * 10^22
Distance Sun - Earth: 149000000 km
Distance Earth - Moon: 380000 km
Distance Sun - Moon: 149000000 + 380000 = 149380000 km
(note: the Moon is assumed to be on the opposite side of the Earth regarding the sun here, so the farest possible).
Newton's laws results:
F (Earth - Moon) = G * 6 * 10^24 * 7.5 * 10^22 / (380000 * 380000) = G * 3.116 * 10^36
F (Sun - Moon) = G * 2 * 10^30 * 7.5 * 10^22 / (149380000 * 149380000) = G * 6.722 * 10^36
a (Moon to Earth) = G * 3.116 * 10^36 / 7.5 * 10^22 = G * 4.15 * 10^13
a (Moon to Sun) = G * 6.722 * 10^36 / 7.5 * 10^22 = G * 8.96 * 10^13 (twice more!)
In other words, the Moon accelerates more toward the Sun than toward the Earth. Or another way to put it: the Earth cannot maintains the Moon's orbit.
The visible result in my simulator is that the Moon is orbiting around the Sun like any other planet.
I am obviously missing something important here, but I just can't figure out what it is!
Any lead would be much appreciate!
Many thanks,
Philippe