Slashdot Log In
The Mathematics of a Trip to Mars?
Posted by
Cliff
on Mon Aug 15, 2005 06:02 PM
from the shouldn't-it-be-more-complex-than-this dept.
from the shouldn't-it-be-more-complex-than-this dept.
hakonhaugnes wonders: "Since trips to Mars seems commonplace (NASA has sent one every 26 months), I thought it made sense to try to understand how the interplanetary trajectory is calculated. NASA's page is deploringly void of intricate details. I found this
excellent page, but it still left me feeling that I was missing something. Surely the calculus must go beyond two bodies (mars/earth)? (It seems there are commercial MATLAB scripts available but at $150 it went beyond the defensible to satisfy my curiosity). Are there any curious Slashdot readers with the usual great insight into how to calculate a trip to Mars?"
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading ... Please wait.

Extemely Complex Calculations (Score:4, Funny)
Mathematics is for Mathematicians (Score:5, Funny)
The Ronco Equant Point is a pointless mathematical abstraction that gives you that perfect Renaissance instrumentalist astronomical result! Up to 200% more accurate than the other leading brand of Ptolemaic system, the Ronco Equant point will actually reduce the number of epicycles within 20 minutes - or your money back!
Call now, and receive a *free* video, "Aristotle and You" - learn about the five elements, and find out how to justify your Ronco-enhanced Ptolemaic system in terms of Aristotelian cosmology!
Look out for more Ronco History of Science products soon, including the "Intelligent Designer's Kit" and the "Ronco Enhanced Bottle-O-Caloric"!
Why would you expect us to? (Score:4, Funny)
Security and Open and Available Software (Score:5, Informative)
I would bet that the information you desire is now considered to be highly classified and thus not available. You could produce trajectory information for ballistic missiles and who knows how it might be mis-construed as useful to those "terrorists" of whom the US is so fearful these days.
Besides... you might find a units of measure error or two if you got to see this code.
Fear and Fear Itself (Score:5, Insightful)
There was a time when such math was secret, and strategic. But we caught up to the Soviets shortly after they tested that ballistic missile math on Sputnik, in the late 1950s. A half century later, our open society has proven more than a match for such "proprietary" losers. If we can stay that way, despite the exaggerated bugbears that people throw around to justify the secrecy that kills both science and liberty.
Nope. Not really. (Score:5, Insightful)
"Elements of Spacecraft Design" by Charles D. Brown has a few good chapters on orbital mechanics. Check a local university library, cause the book cost me nigh unto $100
-everphilski-
Much more than a 2-body problem ... (Score:5, Informative)
Cheers,
IT
JPL has a good intro (Score:5, Interesting)
http://marsprogram.jpl.nasa.gov/spotlight/porkcho
Re:JPL has a good intro (Score:5, Informative)
Anyway, without at least some education in orbital mechanics/astrodynamics, the above ref will probably be a little overwhelming. To get up to speed I recommend the following:
Simple Newtonian (Score:5, Informative)
I recently had a NASA guy come to speak to my research group at my medical school in Houston. We were talking about the long term effect of micro-gravity on human physiology (round trip to Mars). Anyway he told us that most of the mathematical calculations that the Space Flight Center here in Houston use are the "simple" Newtonian laws of motion. He claimed they were suitable for calculating trajectories to the Moon, Mars, etc...
Re:Simple Newtonian (Score:5, Insightful)
Sure. To use Einstein's general relativity would be overkill as the changes are too small.
But Newtons laws can get arbitrarily complex with the number of bodies that go into the equation.
One is newton's axiom.
Two is still easy and taught in school. Kepler ellipses etc. Together with the rocket equation (also only newton), it gives everything needed to go to earth orbit.
But.. three is not analytically solvable. From there, numerics takes over and this is still a very active field of research, still far from perfect. But they're surely good enough
Orbiter (Score:5, Informative)
It has tools for calculating all sorts of interplanetary transfers and you can actually perform the flight from launch to landing on mars with all kinds of spacecraft.
Trajectory Math (Score:5, Informative)
The key here is the energy required. Space travel is still dominated by propulsion. That is, the engines and the fuel they need, and the fuel needed to launch that fuel to orbit, etc., is where most of the cost is.
It is important to travel on a trajectory, called the transfer orbit, that requires the least energy. For a high thrust spacecraft, the minimum energy trajectory is called a Holman transfer [nasa.gov]. Simply, it is an orbit that just touches the orbits of both planets. The periapsis, the closest point to the sun, touches the orbit of the one planet and the apoapsis, the furtherest point, touches the other planet. For this to work, the destination planet needs to be half an orbit away when the spacecraft arrives. This is a lot easier to see in a picture.
For Earth to Mars, the spacecraft launches and then the thrusters fire to change the spacecraft's orbit of the sun from Earth's orbit to the transfer orbit. It then travels half of the transfer orbit and fires its thrusters to change its orbit to match Mars. This can be done by aerocapture, aerobraking or propulsion. The opportunity for a Holman transfer to Mars occurs every 26 years. It is based on the length of the orbit for the bodies being transferred between. The return trip also needs to be a Holman transfer to save fuel. The opportunity does not occur until many months after arrival. I forget the actual number. That is why Mars trips will have a long stay on Mars before returning.
Low thrust is different. Low thrust spacecraft thrust all or most of the time during the trip and the trajectory is more complicated. It is not usable for manned flight because it is to slow but is useful for unmanned spacecraft sometimes.
This is called Celestial Mechanics. When you add propulsion, it becomes Orbital Mechanics.
The best site I have found is NASA's Spacefligh Basics [nasa.gov].
Also good is this site [braeunig.us].
For explanation of gravity assists see this site [ednet.ns.ca].
Also see, Science World at Wolrram [wolfram.com]
Re:Trajectory Math (Score:5, Informative)
Two more things... (Score:5, Informative)
For my mission planning software we never considered more than two bodes at a time. For the real stuff, they probably consider more than two bodies at a time, but the other bodies are just correction factors.
The Mechanical Universe [caltech.edu], is an excellent way to learn this stuff. It comes on in reruns from time to time.
Re:Trajectory Math (Score:5, Informative)
Re:Trajectory Math (Score:5, Informative)
Worth a prize (Score:5, Interesting)
I helped judge the Canada-Wide Science Fair a few years ago, and the person my judging team ranked the highest had set himself precisely this problem: how do you really calculate the trajectory of a spacecraft from Earth to Mars? His solution was a wonderful exploration of the gory details of the problem--he had parts of the orbit that could be approximated reasonably in closed form (basically when the spacecraft was far away from everything, especially Jupiter) and other bits where there were three-body and more calculations.
He understood error estimation and the importance of computing the same quantity several different ways so that they act as a check on each other. He also had modeled aspects of the spacecraft itself, the rotational moments, effects of changing fuel mass, etc, etc, etc. In short, he understood that science is more of an art than a science. It was really nice work.
TransX! (Score:5, Informative)
C'mon Orbiter [ucl.ac.uk] fans, you were thinking the exact same thing when you read this article... Planning a trip to Mars? Just hit Shift-J and start plotting your Hohmann transfer orbit insertion burn. [wikipedia.org]
For those who are lost:
ORBITER is a free flight simulator that goes beyond the confines of Earth's atmosphere. Launch the Space Shuttle from Kennedy Space Center to deploy a satellite, rendezvous with the International Space Station or take the futuristic Delta-glider for a tour through the solar system - the choice is yours.
But make no mistake - ORBITER is not a space shooter. The emphasis is firmly on realism, and the learning curve can be steep. Be prepared to invest some time and effort to brush up on your orbital mechanics background. A good starting point is JPL's Space Flight Learners' Workbook. [nasa.gov]
also...
TransX is [Duncan Sharpe's] eXtended Transfer MFD. It's designed for planning trips across the solar system, or even just to the moon. It's full-featured, with support for complex flight plans, including slingshot trajectories. And naturally, there's a manual that comes with it.
the Simple Answer and the Complex Answer (Score:5, Informative)
Here's the actual procedure.
1. surface to low earth orbit.
2. circularize low earth orbit. [hohmann transfer]
3. correct orbital parameters (longitude of ascending node, argument of periapsis, orbital inclination)
4. low earth orbit to trans-martian-injection [hohmann transfer]
(3 and 4 can be combined, to a point, in order to save delta-V.)
5. burn to circularize martian orbit [hohmann transfer]
6. correct orbital parameters (Same as 3)
7. Burn to descend to surface
The actual math is too much for a slashdot post. Sorry. If you are truly curious check out "Elements of Spacecraft Design" by Charles D. Brown.
-everphilski-
"Fundamentals of Astrodynamics" (Score:5, Informative)
The easiest way to conceive of interplanetary orbits is to first pretend that they lie in a single plane (the plane of the ecliptic) and then pretend that the planets themselves are insignificant for most of the trip -- so you consider only the gravitational field of the Sun. Then your orbit is an ellipse. It's pretty easy to show that, if you're going at Earth's orbital velocity, the ellipse that gets you from Earth's orbit to any other nearly circular orbit with the least change in velocity (ie rocket fuel) is an ellipse that is tangent to both orbits.
Once you've figured that out, you have to figure out when to launch to get to Mars's orbit in the same place that Mars happens to be. Those times happen at a particular phase of Mars's and Earth's orbit.
You can do pretty well by pretending that you can neglect the Sun entirely until you get far enough from the Earth, then you can neglect Earth and Mars entirely until you get close enough to Mars. That is the technique that was used for Apollo trajectories -- the "method of spliced conics". You can hear some evidence of it in the Apollo 13 movie, when they talk about "entering the Moon's gravitational field" or something like that -- the Moon's gravitational field extends throughout the Universe, of course, but to simplify the calculations they neglected everything but the mass with the strongest gravitational force on the capsule.
Nowadays you can get really, really good orbital elements [nasa.gov] for each of the planets online, which lets you calculate exactly where each planet is at any given time. You can just code up an insanely cheesy inverse-square-law integrator in PDL [perl.org] or one of the other free languages -- or even a spreadsheet -- and find a good orbit by trial and error using the gravitational fields of all the large bodies in the solar system.
Re:Trip to mars dont seem that "simple" (Score:5, Informative)
I once worked on a more complex version (after writing a simpler version), but got distracted to other projects somewhere between the finished code to implement Kirchoff's laws for the electrical system and the unfinished code to calculate the volume and mass of a fuel tank.
Re:Trip to mars dont seem that "simple" (Score:5, Funny)
<cheap shot> // TODO: INSERT ENGLISH-METRIC CONVERSION
Here's a line of the code:
</cheap shot>
Re:method... (Score:5, Insightful)
Re:The Slashdot "common" (Score:5, Informative)