Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Orbits of planets

  1. Jan 24, 2012 #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!
     
  2. jcsd
  3. Jan 24, 2012 #2

    Drakkith

    User Avatar

    Staff: Mentor

  4. Jan 24, 2012 #3

    DaveC426913

    User Avatar
    Gold Member

    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.
     
  5. Jan 24, 2012 #4
    Thank you very much! This will help a lot!
     
  6. Jan 24, 2012 #5

    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?
     
  7. Jan 24, 2012 #6

    DaveC426913

    User Avatar
    Gold Member

    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.
     
  8. Jan 24, 2012 #7
    Do you have advice on what physical laws I should integrate into my system?
     
  9. Jan 24, 2012 #8

    DaveC426913

    User Avatar
    Gold Member

    Only those three factors. Mass of the bodies, distance between them and force of attraction. Oh, and initial velocity.
     
  10. Jan 24, 2012 #9
    Alright, thank-you. I really want to create a star system generator someday.
     
  11. Jan 24, 2012 #10

    Drakkith

    User Avatar

    Staff: Mentor

    Have you seen Universe Sandbox?
     
  12. Jan 24, 2012 #11
    No. What is it programmed with?
     
  13. Jan 24, 2012 #12
    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).
     
  14. Jan 24, 2012 #13

    DaveC426913

    User Avatar
    Gold Member

    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.
     
  15. Jan 24, 2012 #14
    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.
     
  16. Jan 24, 2012 #15

    DaveC426913

    User Avatar
    Gold Member

    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.
     
  17. Jan 24, 2012 #16
    Alright, I believe I comprehend now. I'm just curious but how do you personally go about the former?
     
  18. Jan 29, 2012 #17
    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: May 5, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Orbits of planets
  1. Orbiting planets (Replies: 2)

  2. Planets orbit (Replies: 6)

  3. Planets with no orbit (Replies: 6)

  4. Planet's Orbits. (Replies: 8)

  5. Orbiting planets (Replies: 3)

Loading...