Orbits of planets

  • Thread starter smize
  • Start date
78
1
As my state (Indiana) has removed Astronomy from the curriculum, my school no longer offers it. I have taken AP Physics B and that is my best knowledge provided by the modern school system, so I apologize ahead of time for any low-level or simple questions.

I am wanting to know the equations for determining:

1. The velocity of an entity orbiting another (i.e. a planet around a star)
2. The two axis (major and minor)

I'm wanting to build a rudimentary PHP program for creating a basic planetary system, so this will help me become one step closer, thank you!
 

DaveC426913

Gold Member
18,308
1,908
And you might want to look up orbital simulator algorithms to see some of the better - and poorer - ways of writing it. For example, you likely won't need major and minor axes.
 
78
1
Thank you very much! This will help a lot!
 
78
1
And you might want to look up orbital simulator algorithms to see some of the better - and poorer - ways of writing it. For example, you likely won't need major and minor axes.

I will be wanting to create a coordinate system where you can tell the specific location of the planet at a given time, which I would denote p(t). I would need to know either the eccentricity or semi-minor axis. Is there any pattern to semi-minor axes/eccentricity of planets?
 

DaveC426913

Gold Member
18,308
1,908
I will be wanting to create a coordinate system where you can tell the specific location of the planet at a given time, which I would denote p(t). I would need to know either the eccentricity or semi-minor axis. Is there any pattern to semi-minor axes/eccentricity of planets?
Well, I'll leave it you how you do the simulation. When I programed my simulator, I simply needed distance, mass and force of gravity, updating positions and velocities iteratively. Whether they actually formed ellipses at all was a totally emergent property. And in a star system with more than one planet, you should not be getting ellipses anyway, since they'll perturb each other. That's usually the point of a simulation.
 
78
1
Do you have advice on what physical laws I should integrate into my system?
 

DaveC426913

Gold Member
18,308
1,908
Do you have advice on what physical laws I should integrate into my system?
Only those three factors. Mass of the bodies, distance between them and force of attraction. Oh, and initial velocity.
 
78
1
Alright, thank-you. I really want to create a star system generator someday.
 

Drakkith

Staff Emeritus
Science Advisor
2018 Award
20,628
4,359
78
1
No. What is it programmed with?
 
78
1
No. What is it programmed with?
Nevermind; I have found it. What I'm wanting to do is be able to generate, for example, 1000 systems in a matter of minutes and collect them in a database using PHP. It could be the basis for a game engine for text-based or browser-based games (which are more realistic).
 

DaveC426913

Gold Member
18,308
1,908
Nevermind; I have found it. What I'm wanting to do is be able to generate, for example, 1000 systems in a matter of minutes and collect them in a database using PHP. It could be the basis for a game engine for text-based or browser-based games (which are more realistic).
Oooooh! You're not interested in simulating systems over time, you're interested in generating static examples of stable systems!

Sorry - I misunderstood.

That's complEEEtly different!

And not something I can help you with.
 
78
1
Oooooh! You're not interested in simulating systems over time, you're interested in generating static examples of stable systems!

Sorry - I misunderstood.

That's complEEEtly different!

And not something I can help you with.
Correct. As I get the basics of each system down, I will then make it more complex. (Adding the orbits of systems around a central mass, etc.). What is an example you were thinking of though? I think what I'm going for is the ability to actually do both, but mostly the latter.
 

DaveC426913

Gold Member
18,308
1,908
Correct. As I get the basics of each system down, I will then make it more complex. (Adding the orbits of systems around a central mass, etc.). What is an example you were thinking of though? I think what I'm going for is the ability to actually do both, but mostly the latter.
Both wouldn't make sense. It'd take millions or billions of orbits to see stable orbits materialize.

You either simulate it in time, or you model it statically using principles of orbital mechanics.
 
78
1
Alright, I believe I comprehend now. I'm just curious but how do you personally go about the former?
 
149
2
Try <http://orca.phys.uvic.ca/~tatum/celmechs.html>. [Broken] It is well written and has some nice chapters on what you are looking for.
 
Last edited by a moderator:

Related Threads for: Orbits of planets

  • Last Post
Replies
11
Views
5K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
2
Views
7K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
8
Views
4K
  • Last Post
Replies
6
Views
3K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
3
Views
3K
Top