Processing math: 100%

 

 

 

Building a code for the solar system, final coupled equations

The four coupled differential equations dvxdt=GMr3x, dxdt=vx, dvydt=GMr3y, dydt=vy, can be turned into dimensionless equations (as we did in project 2) or we can introduce astronomical units with 1 AU = 1.5×1011.

Using the equations from circular motion (with r=1AU) MEv2r=F=GMMEr2, we have GM=v2r, and using that the velocity of Earth (assuming circular motion) is v=2πr/yr=2πAU/yr, we have GM=v2r=4π2(AU)3yr2.