Thursday, January 25, 2018

newtonian gravity - What are common methods for calculating the time dependency of elliptical orbit?


After playing a game called "Kerbal Space Program" I got interested in orbital mechanics and started messing with simplified calculations to determine Δv requirements. In which I compared two trajectories to get into orbit/land from orbit to see how much it would matter if you would burn vertical or horizontal (Hohmann) at the surface. Graphs of some results can be seen here.


However after this I also wanted to know how much time it would take to perform these maneuvers. I assumed that changes in velocity are instantaneous, so this would be equal to the time between the two changes in velocity. For the Hohmann-like-transfer it is simple, since you travel from periapsis tot apoapsis, which takes half of the orbital period (due to symmetry). But for the other transfer, which applies a vertical change in velocity at the surface, it is very difficult (if there is a sidereal rotational velocity). I tried solving it using Kepler's second law, given this formula:


r=a(1e2)1+ecosθ


Since the area underneath the path from θ0 to θ1 can be calculated like this:



Aθ0,θ1=θ1θ012r2dθ


Which can be used to determine the amount of time it would take, since the total area of the ellipse would take one orbital period T=2πa3μ:


tθ0,θ1=Tθ1θ012r2dθ2π012r2dθ=Tθ1θ012r2dθπa21e2


I am not that good at solving integrals, so I both tried to solve it with MATLAB and WolframAlpha, which gave me this as the result:


12r2dθ=a21e2(tan1(1e2tanθ21+e)e1e2sinθ2(1+ecosθ))


So:


tθ0,θ1=a3μ[2tan1(1e2tanθ21+e)e1e2sinθ1+ecosθ]θ1θ0


However when I tried to determine the integral with symbolic parameters and bounderies, MATLAB returned "Warning: Explicit integral could not be found." probably because there is not a general solution for both closed and open orbits. But if I use this formula and filled in the boundaries myself, it seemed that I got wrong results. However when I let MATLAB calculate the integral for given values of a, e, θ0 and θ1 I do get results which seem correct.


So is this a good approach to find a time dependency of an (elliptical) orbit. If so is there an (continuous) equation derivable from this. And what might be a better approach?


EDIT 1: The unexpected results form this formula might be caused by the fact that tan1 returns results from π2 to π2. Since when I calculated the time from θ=0 to θ=π I got results which agree with the conservation of energy and angular momentum. For this is used the following equations to determine the time derivatives:



ω=δθδt=δθ/δθδt/δθ=μa3(1e2)3(1+ecosθ)2


˙r=δrδt=δr/δθδt/δθ=ωδrδθ=ωae(1e2)sinθ(1+ecosθ)2


Which yields that the specific orbital energy ϵ and specific angular momentum h are constant when substituting theses therms into there expressions:


ϵ=v22μr=˙r2+ω2r22μr=μ2a


h=ωr2=aμ(1e2)


Edit 2: To show that equation (5) is equivalent to Kepler's equation without relying on Wolfram Alpha or Mathematica to do trigonometric simplifications, you can multiply both sides by μa3, which turns the left hand side into the mean anomaly. The first term can easilly be shown to be equal to the eccentric anomaly, because the relation between them is defined as


tanθ2=1+e1etanE2,


from which follows


tanE2=1e1+e1+e1+etanθ2=1e21+etanθ2,


E=2tan1(1e21+etanθ2).



For the second term it is a little more work to show that it is equal to minus esinE. The minus and e can be factored out in both terms, such that we need to prove that


sinE=1e2sinθ1+ecosθ.


The following trigonometric identities will be used:



  • tanx=sinxcosx

  • sin2x=2tanx1+tan2x

  • sin2x+cos2x=1

  • sin2x=2sinxcosx

  • cos2x=cos2xsin2x



We have an expression for tanE2 as a function of θ from equation (10a), this will initially be represented by α


sinE=2tanE21+tan2E2=2α1+α2.


Substituting equation (10b) for α into the last equation yields


sinE=21e21+etanθ21+(1e21+etanθ2)2=21e21+esinθ2cosθ21+1e2(1+e)2sin2θ2cos2θ2=21e2sinθ2cosθ2(1+e)cos2θ2+(1e)sin2θ2=1e2sinθcos2θ2+sin2θ2+e(cos2θ2sin2θ2)=1e2sinθ1+ecosθ.


So this shows that equation (11) is true and equation (5) is equivalent to Kepler's equation.



Answer



Your equation is equivalent to Kepler's equation, just in terms of true anomaly θ instead of eccentric anomaly E. Read more about it here.


tanθ2=1+e1etanE2E=2tan1(1e1+etanθ2)=2tan1(1e21+etanθ2)nt=M=EesinEt=P2π(EesinE)


Having Wolfram Alpha or Mathematica do the trig simplification, we get (moving i inside the square root)


sinE=1e2sinθ1+ecosθ



No comments:

Post a Comment

classical mechanics - Moment of a force about a given axis (Torque) - Scalar or vectorial?

I am studying Statics and saw that: The moment of a force about a given axis (or Torque) is defined by the equation: $M_X = (\vec r \times \...