- #1
braindeaduser
- 1
- 0
I've written a couple of small physics simulations in the past (hey, everyone has to have a hobby) and now I'm trying to write something a little more complex so decided to attempt to write an program that simulates the motion of the planets and moons in our solar-system entirely procedurally - initially I'm starting off with just the Earth and the Sun.
With the initial values as follows:
Mass Sun: 1.989x10^30kg
Mass Earth: 5.976x10^24kg
Mean distance between the Earth and the Sun: 1.496x10^8km
I'm using Newton's law of Universal Gravitation to calculate the gravitational force between the sun and the Earth as 3.54476x10^28N
I then use F=ma to calculate the Earth's acceleration towards the sun and visa versa:
Earth towards Sun: 5.93166x10^3ms-1
Sun towards Earth: 1.78218x10^-2ms-1
My problem is, I'm not sure if these results are correct and after a good hour of scouring google and a small pile of physics textbooks I can't seem to find the correct values for my calculations to check these with. If anyone can check the math for me or point me to a site with these values i'd appreciate it greatly.
cheers
With the initial values as follows:
Mass Sun: 1.989x10^30kg
Mass Earth: 5.976x10^24kg
Mean distance between the Earth and the Sun: 1.496x10^8km
I'm using Newton's law of Universal Gravitation to calculate the gravitational force between the sun and the Earth as 3.54476x10^28N
I then use F=ma to calculate the Earth's acceleration towards the sun and visa versa:
Earth towards Sun: 5.93166x10^3ms-1
Sun towards Earth: 1.78218x10^-2ms-1
My problem is, I'm not sure if these results are correct and after a good hour of scouring google and a small pile of physics textbooks I can't seem to find the correct values for my calculations to check these with. If anyone can check the math for me or point me to a site with these values i'd appreciate it greatly.
cheers