image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Astronomy & Cosmology > General Astronomy


Reply

image Semi-major axis from cartesian co-ordinates Share It Thread Tools Search this Thread image
Old Nov23-09, 06:27 PM                  #1
Spanky Deluxe

Spanky Deluxe is Offline:
Posts: 16
Semi-major axis from cartesian co-ordinates

Can anyone suggest how to calculate the semi major axis of a body in an elliptical orbit when all I've got is x,y,z,vx,vy and vz?

I'm guessing I need to calculate the eccentricity too. I really suck at conversions like this. :(
  Reply With Quote
Old Nov23-09, 07:13 PM                  #2
ideasrule
 
ideasrule's Avatar

ideasrule is Offline:
Posts: 1,311
Recognitions:
Homework Helper Homework Helper
Re: Semi-major axis from cartesian co-ordinates

Keplerian orbits are all two-dimensional, so you don't need to worry about z or vz; they can be defined as 0.

Take a look at http://en.wikipedia.org/wiki/Orbit#A...orbital_motion, especially the equation at the very end. Provided you know the mass & position of the body being orbited, the semi-major axis (a) can easily be calculated.
  Reply With Quote
Old Nov23-09, 10:17 PM                  #3
D H

D H is Offline:
Posts: 4,504
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: Semi-major axis from cartesian co-ordinates

Originally Posted by Spanky Deluxe View Post
Can anyone suggest how to calculate the semi major axis of a body in an elliptical orbit when all I've got is x,y,z,vx,vy and vz?

I'm guessing I need to calculate the eccentricity too. I really suck at conversions like this. :(
You better have at least one other thing. You need to know the body's gravitational constant, G*M, which are often combined as a single parameter μ.

Hint: How is the specific angular momentum related to the semi-major axis?
Hint: You need to calculate the eccentricity.

Originally Posted by ideasrule View Post
Keplerian orbits are all two-dimensional, so you don't need to worry about z or vz; they can be defined as 0.
No, they can't. He is given non-zero values. Ignoring them *will* yield the wrong answer.
  Reply With Quote
Old Nov23-09, 11:59 PM                  #4
ideasrule
 
ideasrule's Avatar

ideasrule is Offline:
Posts: 1,311
Recognitions:
Homework Helper Homework Helper
Re: Semi-major axis from cartesian co-ordinates

Yes, if you're actually given a set of positions and velocities in all dimensions, you can't ignore one of them. Ignoring z and Vz only works if you get to arbitrarily define your coordinate system, in which case you can set both to 0.
  Reply With Quote
Old Nov24-09, 09:27 AM                  #5
Spanky Deluxe

Spanky Deluxe is Offline:
Posts: 16
Re: Semi-major axis from cartesian co-ordinates

Originally Posted by D H View Post
You better have at least one other thing. You need to know the body's gravitational constant, G*M, which are often combined as a single parameter μ.

Hint: How is the specific angular momentum related to the semi-major axis?
Hint: You need to calculate the eccentricity.


No, they can't. He is given non-zero values. Ignoring them *will* yield the wrong answer.
aha, so I can use:

LaTeX Code: \\textbf{h}=\\textbf{r}\\times\\textbf{v}

to find the specific angular momentum and then

LaTeX Code: a\\left(1-e\\right)=\\frac{h^{2}}{GM}

But then how can I separate the eccentricity and semi-major axis?
  Reply With Quote
Old Nov24-09, 11:45 AM                  #6
D H

D H is Offline:
Posts: 4,504
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: Semi-major axis from cartesian co-ordinates

Originally Posted by Spanky Deluxe View Post
But then how can I separate the eccentricity and semi-major axis?
Simple: Compute the eccentricity vector and take its magnitude. So what's this eccentricity vector thing?

LaTeX Code: \\vec e = \\frac{\\vec v \\times \\vec h}{GM} - \\frac{\\vec r}{||\\vec r||}
  Reply With Quote
Old Nov24-09, 09:49 PM                  #7
Spanky Deluxe

Spanky Deluxe is Offline:
Posts: 16
Re: Semi-major axis from cartesian co-ordinates

Originally Posted by D H View Post
Simple: Compute the eccentricity vector and take its magnitude. So what's this eccentricity vector thing?

LaTeX Code: \\vec e = \\frac{\\vec v \\times \\vec h}{GM} - \\frac{\\vec r}{||\\vec r||}
Ok, I've done that now.

One thing though, I also found the following equations which I found here:

LaTeX Code: a=\\frac{GMr}{2GM-rv^{2}}

and

LaTeX Code: e=\\sqrt{1-\\frac{h^{2}}{GMa}}

I've tested both sets of equations and I get the same numbers for the eccentricity, which is good. However, I'm getting different results for the semi major axis. :(
  Reply With Quote
Old Nov24-09, 11:29 PM                  #8
D H

D H is Offline:
Posts: 4,504
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: Semi-major axis from cartesian co-ordinates

Originally Posted by Spanky Deluxe View Post
LaTeX Code: a=\\frac{GMr}{2GM-rv^{2}}


The vis-viva equation, doh!

LaTeX Code: v^2=GM\\left(\\frac 2 r - \\frac 1 a\\right)

I was thinking to much of your problem in term of converting Cartesian position and velocity to orbital elements (six of them). The specific angular momentum and the eccentricity vector are the keys to unlocking that puzzle. However, all you wanted was the semi-major axis. The vis-viva is the key to answering that particular problem.

I've tested both sets of equations and I get the same numbers for the eccentricity, which is good. However, I'm getting different results for the semi major axis. :(
That's because you have the relation between angular momentum wrong, here:
Originally Posted by Spanky Deluxe View Post
LaTeX Code: a\\left(1-e\\right)=\\frac{h^{2}}{GM}
That should be

LaTeX Code: a(1-e^2) = \\frac {h^2}{GM}
  Reply With Quote
Old Nov26-09, 08:29 PM                  #9
Spanky Deluxe

Spanky Deluxe is Offline:
Posts: 16
Re: Semi-major axis from cartesian co-ordinates

DH, you are an absolute star and a lifesaver!! Thanks so much for the help!!
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Semi-major axis from cartesian co-ordinates
Thread Thread Starter Forum Replies Last Post
Finding new major axis of ellipse after stretching along arbitrary axis Keys Topology & Geometry 4 Sep8-08 09:31 AM
Ratio between Semi major and Velocity phi-lin good General Astronomy 3 Apr17-08 01:40 PM
Cartesian Co-ordinates of Plane Wave Ayame17 Advanced Physics 1 Oct9-07 12:13 PM
Conics - Semi Major/Minor Axis katrina007 Precalculus Mathematics 5 May18-07 08:36 AM
Cartesian Co-ordinates and Polar Co-ordinates JasonRox General Math 3 Apr26-04 10:13 AM

Powered by vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image