jp-praveen / Rendezvous

1 stars 0 forks source link

Transfer orbit #12

Closed joelgeorgem closed 5 years ago

joelgeorgem commented 5 years ago

I checked the orbital parameters of the transfer orbit generated by the book method and the Prussing method (as you did).

Noticed that the book method gave a consistent transfer trajectory while the Prussing method did not. Check the implementation of the method.

By consistent trajectory, I mean the following: when I retrieve the orbital parameters providing (r1,v1) and (r2,v2), I get the same values.

jp-praveen commented 5 years ago

Dear Sir, Finding the semi-major axis in Prussing method is just a root solving problem. I implemented the Prussing method using secant method and fzero. Both gave very high values of semi-major axes in the order of 10^20. I think the problem is either with the function or with the methods used. The fzero function when it stopped gave the function value to be around 180 (which should have been 0).

joelgeorgem commented 5 years ago

What I noticed is that the numerical solution of this equation is sensitive to the initial condition.

If you use as the initial guess a0, the value of 'a' obtained for the transfer orbit from the book method, then the iteration converges.

jp-praveen commented 5 years ago

Yes sir. I tried plotting the function, by varying 'a' for a fixed dt and found the approximate zero of the function manually. The function takes positive and negative values, i.e has a zero, only for some values of dt. I then used such dt as input transfer time and gave initial a0 near the zero which I got from the graph. But still I got different answers from both methods, but they both converged. I will once again write the code and try again, maybe it will work.

joelgeorgem commented 5 years ago

See #13