Orbital Mechanics: Modeling a Planet's Path with Programming

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
Phys_Boi
Messages
49
Reaction score
0
So I'm really interested in orbital mechanics. I'm only 16 so my knowledge of physics is restricted to an intermediate level. If there is a planet with large mass and a planet with small mass they are attracted to each other... So imagine a system where the large mass is fixed and the small object has a constant velocity. How can I model (I'm a big programmer and would like to create a script for this) the path the object takes around the plant. I know this has to do with the balance between the Fg and the velocity...
Thank you for any help.
 
Physics news on Phys.org
Phys_Boi said:
So I'm really interested in orbital mechanics. I'm only 16 so my knowledge of physics is restricted to an intermediate level. If there is a planet with large mass and a planet with small mass they are attracted to each other... So imagine a system where the large mass is fixed and the small object has a constant velocity. How can I model (I'm a big programmer and would like to create a script for this) the path the object takes around the plant. I know this has to do with the balance between the Fg and the velocity...
Thank you for any help.
I would like to also point out that i don't want only circular orbits. I would like for the program to be able to compute all orbits easily computable
 
Phys_Boi said:
So I'm really interested in orbital mechanics. I'm only 16 so my knowledge of physics is restricted to an intermediate level. If there is a planet with large mass and a planet with small mass they are attracted to each other... So imagine a system where the large mass is fixed and the small object has a constant velocity. How can I model (I'm a big programmer and would like to create a script for this) the path the object takes around the plant. I know this has to do with the balance between the Fg and the velocity...
Thank you for any help.
Phys_Boi said:
I would like to also point out that i don't want only circular orbits. I would like for the program to be able to compute all orbits easily computable
Have fun! :smile:

https://en.wikipedia.org/wiki/Orbital_mechanics
 
Phys_Boi said:
So imagine a system where the large mass is fixed and the small object has a constant velocityHow can I model (I'm a big programmer and would like to create a script for this) the path the object takes around the planet.

If the velocity is constant there is no path around the planet. Constant velocity means that the trajectory is a straight line. So there is nothing to program about it.
It is not enough to be good at programming to solve physics problems. It helps a lot if you spend some time to understand the physics and the meaning of the terms used in physics.