WD0HHU

30 Reputation

3 Badges

3 years, 61 days

MaplePrimes Activity


These are replies submitted by WD0HHU

Thank you again for your help.  I have worked with events before with Rosenbrock and RKF45 because one of the important things I need to know is when the spacecraft gets with the Sphere of Influence (SOI) of a planet's gravitional field.  When the spacecraft leaves Earth orbit, its orbit is highly influenced by the Earth's gravitional field.  But as it moves on its way to Mars, the spacecraft leaves the Earth's SOI AT 925,000 km.  I have so far been keeping that influence out of the picture and just focusing on the Sun's influence and Mars.  It considerably simplifies the problem but not by much.  You still need to know where Mar's is located and its state vector for every integration step.  But I set up an "event" to happen when the distance from Mars is less than 577,000 km.  Then I stop with the event, capture the state vector of the spacecraft, and do a simple coordinate transformation, and then I start the simulation this time with the only influence on the spacecraft is Mar's gravitional field.  I am pretty sure this is how the folks at Jet Propulsion Laboratory (JPL) do their mission planning for Mars missions.  

I will look at using "events" and see if that is a better way to simulate firing thrusters at a specific time.  As I say, finding the location of Mars and its position and velocity vectors in a heliocentric orbit takes a lot of computation effort.  I go to this website and "pull" the position and velocity vectors of Mars for the time frame I am interested.  The normal trajectory is about 500 days in duration.  I curve fit those state vectors using "ArrayInterpolation" with the "method" = linear.  Check out this JPL Horizions website if you would like to know more details.  Horizons System (nasa.gov)

This is a very facinating problem doing mission design and analysis.  Since some day Space X will probably go to Mars.  It will be a tough mission: 259 days to fly to Mars using a Hohmman transfer, then you have to spend about time on Mars to wait until the Earth comes around again to be in a position (454 days) to fly back, and 259 days to come home. 

Thank you again.  I'll start examing the "events" option. 

Dave

Thank you very much for your help on this problem.  When I took out the last condition that wasn't needed as you recommended, I got it to work!! The thrusters fired both times and I was sure it happened by plotting the fuel consumption and also seeing the behavior of the spacecraft's trajectory around Mars.  But I have to wonder whether some of the popular variable step solvers were "missing" the event (conditions) in the piecewise function.  I am now thinking that they can.  Perhaps I can come up with a simple case to present for a Bug report.  I wonder if I should think about using the "classical" methods that will only do a fixed step integration.  And I can make sure the events and conditions happen at a time that is an even number for the integration step size.  That would be a good experiment.  I will work on that.  When you fly a trajectory to Mars, you are talking a 500 day mission! That is over 43e6 seconds of integration.  You also have to keep track of where Mars is located and its distance from the Sun.  These trajectory studies can take a day to complete! And that is if you use a variable step solver!!!

Thank you for your help.  

Dave

Dear Mr. @Christian Wolinski, I was wondering how you derived that simplification to the OP's initial equation.  I am just curious where it came from.

 

Thank you.

This is some pretty amazing plotting you have done along with some interesting interpolation.  I find it awe inspiring!

Thank you for sharing this.

Thank you.  This time I hope my worksheet will get loaded and you can see what I am talking about and help me.  I would prefer not to use the zoom function but I don't want to destroy my eyesight with the Explore's and Document Tools 8 sized font.  I have already had my eye prescription changed this year to account for all the 8-12 sized fonts that I have been forced to read over the past 40 years!

@Scot Gould Please see my uploaded version of this fine example of using the Explore command.  Isn't there something in the Document Tools to increase the font on the slider bars?

Hello! Thank you for your great example of using the Explore command.  I had one question: How do you change the font of the parameters because they seem to be really, really small both in the slider bar and the values on the right hand side? Likewise the font on the name/symbols of the parameters you are varying with the Explore command. 

@acer Thank you for the best explanation I have ever seen about the issue of using "unevaluated" quotes.  The Maple folks who write the Help pages should take a good look at your reponse here and "re-tool" the help pages on this topic for a better explanation.  I have never really understood the Maple help page on two point BVPs example because of the quotes issue.  Acer, you not only deserve a "thumbs-up" but a GOLD STAR!!

P.S. Are you a college math professor somehere?

@AHSAN I admire your patience to write such a gigantic equation! What are you computing with this monster equation?

For that you need the really "Big" guns, such as Acer or dharr or a Carl Love to help you there.

Yes, your worksheet shows the same plot as I got when I corrected exp(k*p) issue and the "local D" issue.

Just as a aside, you include the package "linalg" which has been "deprecated" and it is not recommended by

the "Big" guns; you should use "LinearAlgebra" instead.

You should use "exp(k*p)" instead of plain old "e".  Also, you have several "D" and that should be made local.  I got a plot after fixing those syntax errors but I can't tell you if it is right!

@mmcdara Thank you all for your great insight! 

Page 1 of 1