12.6 Lateral-Directional Modes closed the aircraft chapter. Now leave the atmosphere: no lift, no fin, no table of derivatives, only the of 12.4 6-DOF Aircraft Equations of Motion with one force, gravity, falling off as the inverse square of distance. That force is simple enough to solve exactly, which makes it the best test bed for an integrator, and it is where integrator choice decides whether a simulated satellite survives a thousand orbits.
Tools: 7.8 Conservative Systems & Lyapunov Functions, 4.7 Energy & Symplectic Integrators, 7.10 Chaos & the Lorenz System.
Transcript
- Now leave the atmosphere: no lift, no fin, only F equals m a, with one force, gravity, falling off as the inverse square of distance. That force can be solved exactly, so it is the best test bed for an integrator.
- Two bodies pull on each other equally and oppositely. Divide each force by its own mass and subtract, and the centre of mass drops out: six equations become three. r double dot equals minus mu r over r cubed, with mu for the Earth 3.986004418 times ten to the fourteenth.
- The force is central, so two things are conserved. Energy, kinetic plus potential, trades back and forth around the orbit while the sum stays flat at minus 8.144. And angular momentum h, x y dot minus y x dot, which keeps the orbit in one plane.
- In polar form gravity has no sideways part, so r squared theta dot is constant: that is h. The radius sweeps area at the steady rate h over two. Kepler's second law: equal areas in equal times, fast at perigee, slow at apogee.
- Trade time for angle and let u be one over r. The radial equation becomes a harmonic oscillator with a constant push: u double prime plus u equals mu over h squared. Its solution is a conic, with the Earth at a focus. Kepler's first law is a theorem, and only an inverse square force makes it so.
- Both apsides solve one quadratic, so energy is minus mu over two a, and vis-viva follows. The ellipse area, swept at rate h over two, gives T equals two pi root a cubed over mu, whatever the eccentricity. For a parking orbit at 6778 kilometres: 7668.64 metres per second, 92.56 minutes, and escape at 10,845.09.
- To reach geostationary orbit at 42,164 kilometres: burn prograde, coast half an ellipse that touches both circles, burn again. That ellipse has semi-major axis 24,471 kilometres and eccentricity 0.72302. Burn along the velocity, where the craft is fastest.
- Vis-viva at perigee gives 10,066.14 metres per second against 7668.64 for the circle: burn one is 2397.51. At apogee the ellipse gives 1618.17 against 3074.67, so burn two is 1456.50. Total 3854.01 metres per second, after 19,048.4 seconds. The simulation flies it with RK4.
- Burn one lifts the energy from minus 29.404 to minus 8.144. Burn two, only 61 percent as big, lifts it to minus 4.727. The same delta v does more where the craft is fast.
- Now the integrators. Fly the transfer ellipse for 1000 orbits at a 120 second step. RK4 drifts in a straight line, always losing energy, 1.66 times ten to the minus five per orbit. Verlet jumps to a band of 1.435 times ten to the minus two in its first orbit and never leaves it. RK4 crosses that band after 866 orbits.
- At equal cost, one RK4 step equals four Verlet steps, so compare Verlet at 30 seconds: it holds 8.912 times ten to the minus four, and RK4 passes it after 53 orbits. Yet over 10 orbits RK4 is 83 times better: use it for one transfer or re-entry, and Verlet for the long run.
- Euler is worse. One step multiplies angular momentum by one plus tau squared mu over r cubed, exactly. In low Earth orbit at 60 seconds that is 1.0046 per step, and 93 steps, one orbit, multiply h by 1.239 and leave the craft at 12,010 kilometres. Verlet's kicks and drifts never change h.
- Add the Moon and the clean picture breaks: the restricted three-body problem has no closed form, and energy and angular momentum are no longer conserved. Start a craft at 6778 kilometres with 10.733 kilometres per second, plus a twin one micrometre per second faster, for 217 days.
- With the Moon off, the twins stay within 1.56 kilometres. With the Moon on they are 0.254 kilometres apart by day 87, 69.2 by day 174 and 4660 by day 217, after a pass 3180 kilometres from the Moon. Close encounters stretch small differences, with no friction anywhere.
- To recap. One inverse-square equation conserves energy and angular momentum, and Kepler's laws fall out of it. LEO to GEO costs 3854.01 metres per second. Verlet keeps an orbit in a band while RK4 drifts, and with the Moon a micrometre per second grows to 4660 kilometres.
- Next, the heat equation. Conservation of energy plus Fourier's law gives a PDE for the temperature along a bar, and its diffusion term returns in Navier–Stokes as viscosity. This lesson's own sequels are the n-body problem and the orbit planner.
Two bodies become one
A satellite of mass at and the Earth, mass at , pull on each other with equal and opposite forces of size , where . Divide each force by its own mass and subtract:
The centre of mass feels no net force, coasts, and drops out: six equations become three. For a satellite is the Earth’s, m/s, known far better than or because it is measured directly from orbits. The force points along : it is central, and that fact gives everything that follows.
Two conserved quantities
Energy. Dot the equation with . The left side is ; on the right, , so the term is . Hence
the specific energy, in joules per kilogram: 7.8 Conservative Systems & Lyapunov Functions‘s conserved for a particle in the potential . It is negative for a bound orbit.
Angular momentum, and why the orbit is flat. The acceleration changes only by adding multiples of , and the velocity changes by multiples of . Neither can leave the plane containing and , so the motion stays in it. In that plane define
Then (the terms cancel), and with , for the same , this is . Any central force conserves ; the inverse square was not used.
Polar coordinates and the second law
Write the position as a complex number, , and differentiate twice with the product rule:
The real part in brackets is the acceleration along , the imaginary part the acceleration across it. Gravity has no cross component, so
So , the same in polar form. In a short time the radius sweeps a thin triangle of area , so : Kepler’s second law, equal areas in equal times.
The shape: conic sections
With the radial equation is one ODE for . Trade time for angle and use . By the chain rule , and again, . Substitute, with :
This is the harmonic oscillator of 5.3 Mechanical Vibrations: Spring–Mass–Damper with a constant force: the particular solution plus a cosine. So
with the amplitude , the eccentricity, and the direction of the closest point. This is a conic with the Earth at a focus: a circle for , an ellipse for , a parabola for , a hyperbola for . Kepler’s first law is now a theorem. Here the inverse square mattered: only a force makes the right side constant, and then the orbit closes every turn.
The closest point, periapsis (perigee for the Earth), is at , apoapsis at . Their average is the semi-major axis , which gives .
Energy sets the size: vis-viva
At the apsides the velocity is purely sideways, so and . Multiply by :
Both apsides solve this quadratic, so they are its two roots, whose sum is . With :
The second form is the vis-viva equation. Size depends only on energy; shape also on . Eliminating between and gives , the sim’s readout.
The period: Kepler’s third law
The radius sweeps the ellipse’s area , with , at the steady rate , so . With the eccentricity cancels:
Kepler’s third law: a circle and a long ellipse with the same take the same time.
Worked example: the parking orbit
Circular LEO at km (about km up):
- Vis-viva with : m/s.
- minutes; MJ/kg.
- Escape needs : m/s, times more.
Orbital elements
Six numbers replace a position and velocity:
- size and shape: and ;
- plane: inclination to the equator, and the longitude of the ascending node, where the orbit crosses the equator going north;
- orientation in the plane: argument of periapsis ;
- where the craft is: the true anomaly (or the mean anomaly, which grows uniformly in time).
The sim is planar (). It finds from , from and , and from the eccentricity vector , which points at periapsis. It draws the osculating ellipse: the conic the craft would follow from this instant on.
The Hohmann transfer
To go from a circle of radius to one of with two burns, use the ellipse touching both: perigee , apogee , . Burn prograde at , coast half an orbit, burn prograde at .
Why along the velocity? A burn along raises by , more than in any other direction, and most where is largest; a sideways burn mostly turns the velocity. (From memory: Hohmann is the cheapest two-burn transfer between coplanar circles, and a three-burn bi-elliptic transfer beats it only when exceeds about , the capstone’s subject.)
Worked example: LEO to GEO
m/s, km, km.
- Transfer ellipse: km, .
- Perigee: circular m/s; on the ellipse m/s. m/s.
- Apogee: on the ellipse m/s; circular m/s. m/s.
- Total m/s. Transfer time, half a period: s h.
- Check: km/s, so .
Burn 1 lifts from to MJ/kg, burn 2, its size, only to : the same does more where the craft is fast.
What the sim shows. Three craft fly the same plan, one per integrator. The Hohmann preset fires at and arms , which each craft fires at the first step boundary after its turns negative (just past apogee). At the default step s:
- RK4 fires at s at km, s late, and ends with .
- Verlet fires at s at km and ends with km, . It follows a slightly larger “shadow” orbit (4.7 Energy & Symplectic Integrators), an error that shrinks as .
- Euler spirals outward (Problem 3 shows why), reaches “apogee” at km at s, and is left far above GEO with , still drifting.
In the circular-LEO preset a m/s prograde burn gives RK4 an apogee of km, as vis-viva predicts; Verlet’s sits within a few kilometres.
Integrating orbits for a long time
The drift test preset flies the transfer ellipse with no burns, from perigee, and plots for all three integrators at the same step. The numbers are the sim’s readout; the lab cell reproduces the first two columns.
| method | force evaluations per orbit | max , 10 orbits | 100 orbits | 1000 orbits | |
|---|---|---|---|---|---|
| RK4 | s | ||||
| Verlet | s | ||||
| Verlet | s |
The period is s, so s is steps per orbit, and one step at perigee covers about km, ten degrees of arc.
- RK4 drifts in a straight line, per orbit, always losing energy. Its osculating apogee falls , and km after , and orbits, and reaches .
- Verlet does not drift. Its error is larger at first, a band of that it fills in the first orbit and never leaves; RK4 crosses it after orbits. Its apogee readout is off by , , km: large, but no trend.
- At equal cost Verlet wins early. A Verlet step can reuse the previous step’s last force, so one RK4 step at s costs four Verlet steps at s. That Verlet run holds , sixteen times smaller (second order), and RK4 passes it after orbits.
Why Verlet keeps exactly. A kick adds to the velocity, changing by . A drift adds to the position, changing by . Verlet is kicks and drifts, so holds to rounding: the sim shows near . Each step also preserves phase-space area, which keeps the energy in a band. RK4’s error per orbit has the same sign every orbit, because every orbit has the same geometry, so it accumulates.
When RK4 wins. Over orbits RK4 is times better at the same step: for a single transfer or a re-entry, a high-order or adaptive method is the right tool. And bounded energy is not position accuracy: a symplectic orbit precesses and runs ahead or behind.
A three-body glimpse
Add the Moon and the clean picture breaks. Even the restricted problem, a massless craft moving under the Earth and the Moon on their circular orbit, has no general closed-form solution. In a frame rotating with the Moon, in units of km and days, with the Moon’s mass fraction :
with , the distances to the Earth at and the Moon at . The , terms are the Coriolis force and the bare , the centrifugal force of the rotating frame. Energy and angular momentum are no longer conserved; one combination survives, the Jacobi constant .
The second lab cell starts a craft at km with km/s (with the Moon off, an ellipse with apogee km and period days) and a twin micrometre per second faster. With the Moon off the twins are at most km apart after days: a two-body error grows only linearly, because the faster twin has a slightly longer period. With the Moon on they are km apart by day , km by day , and km by day , after a pass km from the Moon’s centre on day . Close encounters stretch small differences enormously: the sensitive dependence of 7.10 Chaos & the Lorenz System, with no friction anywhere. The Jacobi constant drifts by only , so the growth belongs to the problem, not the solver.
Computing it
The same algorithms as the sim. Change RK4’s 120.0 to 60.0: its drift falls -fold, as fourth order predicts for half the step.
The reference coast arrives m above GEO radius, round, with m/s of radial velocity, m/s short after burn 2. With steps the miss falls to m, a quarter: second order.
Concept checks
Problems
After burn 1 the craft is at km moving sideways at m/s. (a) Compute and . (b) Solve for the apsides. (c) Find , and the period.
Show worked solution
(a) In km and s, : km/s; km/s.
(b) gives km and km: the craft is at perigee, and apogee is GEO radius, as planned.
(c) km; ; s h.
A geostationary satellite turns once per sidereal day, s (from memory). (a) Find its radius from Kepler’s third law. (b) Find its speed. (c) Why the sidereal day?
Show worked solution
(a) km.
(b) km/s, matching m/s.
(c) The Earth turns once per sidereal day relative to the stars, so an equatorial circular orbit with that period stays over one point. The solar day, s, would give km.
One forward Euler step of size is , with . (a) Show that the angular momentum obeys exactly. (b) Evaluate the factor in LEO with s. (c) Why does Verlet not do this?
Show worked solution
(a) Write , . Then . The terms give ; the terms give ; the terms give . So . The kick uses the old position after the drift has moved the craft, so it is no longer parallel to the new .
(b) s: a factor per step. A direct run of steps (one orbit is ) multiplies by and leaves the craft at km.
(c) Each Verlet kick uses the acceleration at the position the craft has during that kick, so it is parallel to and leaves alone, and each drift is parallel to .
Key Takeaways
- Two bodies reduce to ; for the Earth m/s.
- A central force conserves and keeps the orbit flat; gravity also conserves .
- Kepler’s laws are theorems: equal areas from , conics from , from the area .
- The apsides are the roots of , which gives and vis-viva.
- LEO to GEO: m/s, m/s, total m/s, h.
- Over orbits RK4 drifts in a straight line while Verlet stays in a band and keeps to rounding; at equal cost Verlet wins after orbits.
- With the Moon, a micrometre per second difference grows to km in days.
- Next in the build order, 9.2 The Heat (Diffusion) Equation, leaves orbits for fields. Here conservation laws came out of an ODE; there one goes in: conservation of energy plus Fourier’s law gives a PDE for the temperature along a bar, and its diffusion term returns in Navier–Stokes as viscosity. This lesson’s own sequels are 14.7 N-Body Simulation and 16.5 Capstone: Orbital Transfer Planner.