×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

I'm looking for algorithms to determine an orbit.

I'm looking for algorithms to determine an orbit.

I'm looking for algorithms to determine an orbit.

(OP)
Given a point and a velocity vector, I want to be able to determine the orbit. What I really need is a polar coordinate formula for an ellipse, and a realationship between time and position in orbit.

I'm trying to write a basic program to determine orbits from launch profiles. I've already written a preliminary version, but when it calculates the position in time incrementals, it loses a few miles of altitude each orbit (ie a 298miX196mi initial orbit decays in days, rather than years).

Tony

RE: I'm looking for algorithms to determine an orbit.

Hey,
I am not sure if I can be of a lot of assistance, but there are two books I can direct you to:
Introduction to Space Dynamics by Willian Tyrell Thomson and Space Propulsion Analysis and Design byR. Humble, G. Henry, and W. Larson. Let me know how your project turns out and if these books helped.

RE: I'm looking for algorithms to determine an orbit.

Wolverine,

I too have made attempts at calculating orbits using time steps. I did so using a finite differencing routine and they decayed much faster than they should have.

You might consider using a Runge-Kutta approach. The vector summ of forces = derivative with respect to time of momentum. Momentum is mass multiplied by the vecor velocity. The vector summ of forces consists of the spacecraft tangential and radial gravitational forces and any added propulsion force.

Good luck,

MikeVV

RE: I'm looking for algorithms to determine an orbit.

http://cdeagle.cnchost.com/om-matlab.html

This site has a Matlab toolbox for numerical orbital mechanics

RE: I'm looking for algorithms to determine an orbit.

Do you want to determine the orbit analytically or numerically?

Analytically, you can simply take your spacecraft state (i.e. pos and vel) and convert this to keplerian elements. However, you say that you're interested in plotting this as a function of time...

so, I would probably propagate the orbit numerically:
 
You have an initial position and velocity vector (state)
If your orbit is near circular (low eccentricity) then I would suggest a 4th order Runge-Kutta scheme as the best "bang for your buck"

Your derivatives of your state would be as follows:
for position at any time step, you have the velocity
for velocity at any time step, you can find an equation for the acceleration (i.e. acceleration = gravitational parameter times position vector, divided by the magnitude of position cubed). Obviously, this doesn't take Earth oblateness or atmospheric drag into account, but adding in J2 and drag is pretty trivial.

I recommend the Astrodynamics book by David Vallado as a good reference book.

If you need a Matlab script that can do this, I have several coded up. Good luck...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources