Jump to content

Recommended Posts

Posted

another general question....

 

if you have an object in space (ie. a spaceship) and you want it to orbit nearby planets, can you do it by taking the centre of mass of the 2 planets.

 

Cheers guys (i hope this thread is in the right place :))

 

Sarah

Posted

Not sure if I understand the question.

 

The rocket is going to orbit the center of mass of the system, the mechanical energy of the system has to be negative, and the orbit is going to be elliptical (following Kepler's laws for orbits)

Posted

i was thinkning about doing this problem using a computer, ie. making a program to do it. but i have limited skills in this area. is there anyone here who could help me with this?

 

Cheers

 

Sarah :)

Posted

That's not particularly easy due to the nature of the problem (elliptic orbits are a bit nasty to deal with). You might want to take a look at Orbiter, which is a space simulator (free). It's rather good - perhaps qiute a way off what you were thinking - but it gives you an idea about how complex these things can become.

Posted

If you want to use some math to model it for you, you can write a fairly simple program using OpenGL and C. But if you knew enough programming to succesfully do that, then you wouldn't have asked. However, you can download a mathematics program such as Livemath (not too good but it will suffice for your purposes) to model elliptical orbits.

 

To do so just use the polar formula for an ellipse, a/(1+b*sin(theta)) and model it for whichever a and b you desire in order to model the orbit you want. If you want to add even more realism, you can program this orbit in relationship to the velocity of the orbiting body, and this velocity is going to be determined by amount initially given and the acceleration of the body due to gravity (-Gm_1m_2/r^2). Anyway, all you really need is 1/(1+bsin(theta)) and you should be able to get what you want.

Posted

yeah the problem is to do with a small object orbiting 2 much larger objects, so do you think it would work for something like that? ie. have to work out the time it takes and so on...

Posted

yes you can do it using the animation variable. For some use 2*a to make it move faster, 1/2*a to move slower, tec.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.