Free convolution

From formulasearchengine
Revision as of 00:04, 25 January 2014 by en>BG19bot (WP:CHECKWIKI error fix for #61. Punctuation goes before References. Do general fixes if a problem exists. - using AWB (9876))
Jump to navigation Jump to search

In celestial mechanics Lambert's problem is the boundary value problem for the differential equation

r¯¨=μr̂r2  

of the two-body problem for which the Kepler orbit is the general solution.

The precise formulation of Lambert's problem is as follows:

Two different times  t1 , t2  and two position vectors r¯1=r1r̂1, r¯2=r2r̂2  are given.

Find the solution r¯(t) satisfying the differential equation above for which

r¯(t1)=r¯1
r¯(t2)=r¯2.

Initial geometrical analysis

Figure 1: F1  : The centre of attraction P1  : The point corresponding to vector r¯1  P2  : The point corresponding to vector r¯2 
Figure 2: Hyperbola with the points P1  and P2  as foci passing through F1 
Figure 3: Ellipse with the points F1  and F2  as foci passing through P1  and P2 

The three points

F1 
The centre of attraction
P1 
The point corresponding to vector r¯1 
P2 
The point corresponding to vector r¯2 

form a triangle in the plane defined by the vectors r¯1  and r¯2  as illustrated in figure 1. The distance between the points P1  and P2  is 2d , the distance between the points P1  and F1  is r1=rmA  and the distance between the points P2  and F1  is r2=rm+A . The value A  is positive or negative depending on which of the points P1  and P2  that is furthest away from the point F1 . The geometrical problem to solve is to find all ellipses that go through the points P1  and P2  and have a focus at the point F1 

The points F1 , P1  and P2  define a hyperbola going through the point F1  with foci at the points P1  and P2 . The point F1  is either on the left or on the right branch of the hyperbola depending on the sign of A . The semi-major axis of this hyperbola is |A|  and the eccentricity E  is d|A| . This hyperbola is illustrated in figure 2.

Relative the usual canonical coordinate system defined by the major and minor axis of the hyperbola its equation is

x2A2y2B2=1(1)

with

B=|A|E21=d2A2(2)

For any point on the same branch of the hyperbola as F1  the difference between the distances r2  to point P2  and r1  to point P1  is

r2r1=2A(3)

For any point F2  on the other branch of the hyperbola corresponding relation is

s1s2=2A(4)

i.e.

r1+s1=r2+s2(5)

But this means that the points P1  and P2  both are on the ellipse having the focal points F1  and F2  and the semi-major axis

a=r1+s12=r2+s22(6)

The ellipse corresponding to an arbitrary selected point F2  is displayed in figure 3.

Solution of Lambert's problem assuming an elliptic transfer orbit

First one separates the cases of having the orbital pole in the direction r¯1×r¯2  or in the direction r¯1×r¯2 . In the first case the transfer angle α for the first passage through r¯2 will be in the interval  0<α<180 and in the second case it will be in the interval 180<α<360. Then r¯(t) will continue to pass through r¯2 every orbital revolution.

In case r¯1×r¯2  is zero, i.e. r¯1 and r¯2  have opposite directions, all orbital planes containing corresponding line are equally adequate and the transfer angle α for the first passage through r¯2 will be 180.

For any α with  0<α< the triangle formed by P1  , P2  and F1  are as in figure 1 with

d=r12+r222r1r2cosα2(7)

and the semi-major axis (with sign!) of the hyperbola discussed above is

A=r2r12(8)

The eccentricity (with sign!) for the hyperbola is

E=dA(9)

and the semi-minor axis is

B=|A|E21=d2A2(10)

The coordinates of the point F1  relative the canonical coordinate system for the hyperbola are (note that E has the sign of r2r1)

x0=rmE(11)
y0=B(x0A)21(12)

where

rm=r2+r12(13)

Using the y-coordinate of the point F2  on the other branch of the hyperbola as free parameter the x-coordinate of F2  is (note that A has the sign of r2r1)

x=A1+(yB)2(14)

The semi-major axis of the ellipse passing through the points P1  and P2  having the foci F1  and F2  is

a=r1+s12=r2+s22 =rm+Ex2(15)

The distance between the foci is

(x0x)2+(y0y)2(16)

and the eccentricity is consequently

e=(x0x)2+(y0y)22a(17)

The true anomaly θ1 at point P1  depends on the direction of motion, i.e. if sinα is positive or negative. In both cases one has that

cosθ1=(x0+d)fx+y0fyr1(18)

where

fx=x0x(x0x)2+(y0y)2(19)
fy=y0y(x0x)2+(y0y)2(20)

is the unit vector in the direction from P2 to P1 expressed in the canonical coordinates.

If sinα is positive then

sinθ1=(x0+d)fyy0fxr1(21)

If sinα is negative then

sinθ1=(x0+d)fyy0fxr1(22)

With

  • semi-major axis
  • eccentricity
  • initial true anomaly

being known functions of the parameter y the time for the true anomaly to increase with the amount α is also a known function of y. If t2t1 is in the range that can be obtained with an elliptic Kepler orbit corresponding y value can then be found using an iterative algorithm.

In the special case that r1=r2 (or very close) A=0 and the hyperbola with two branches deteriorates into one single line orthogonal to the line between P1 and P2 with the equation

x=0(1)

Equations (11) and (12) are then replaced with

x0=0(11)
y0=rm2d2(12)

(14) is replaced by

x=0(14)

and (15) is replaced by

a=rm+d2+y22(15)

Numerical example

Figure 4: The transfer time with  : r1 = 10000 km : r2 = 16000 km : α = 120° as a function of y when y varies from −20000 km to 50000 km. The transfer time decreases from 20741 seconds with y = −20000 km to 2856 seconds with y = 50000 km. For any value between 2856 seconds and 20741 seconds the Lambert's problem can be solved using an y-value between −20000 km and 50000 km

Assume the following values for an Earth centred Kepler orbit

  • r1 = 10000 km
  • r2 = 16000 km
  • α = 100°

These are the numerical values that correspond to figures 1, 2, and 3.

Selecting the parameter y as 30000 km one gets a transfer time of 3072 seconds assuming the gravitational constant to be μ = 398603 km3/s2. Corresponding orbital elements are

  • semi-major axis = 23001 km
  • eccentricity = 0.566613
  • true anomaly at time t1 = −7.577°
  • true anomaly at time t2 = 92.423°

This y-value corresponds to Figure 3.

With

  • r1 = 10000 km
  • r2 = 16000 km
  • α = 260°

one gets the same ellipse with the opposite direction of motion, i.e.

  • true anomaly at time t1 = 7.577°
  • true anomaly at time t2 = 267.577° = 360° − 92.423°

and a transfer time of 31645 seconds.

The radial and tangential velocity components can then be computed with the formulas (see the Kepler orbit article)

Vr=μpesinθ 
Vt=μp(1+ecosθ).

The transfer times from P1 to P2 for other values of y are displayed in Figure 4.

Practical applications

The most typical use of this algorithm to solve Lambert's problem is certainly for the design of interplanetary missions. A spacecraft traveling from the Earth to for example Mars can in first approximation be considered to follow a heliocentric elliptic Kepler orbit from the position of the Earth at the time of launch to the position of Mars at the time of arrival. By comparing the initial and the final velocity vector of this heliocentric Kepler orbit with corresponding velocity vectors for the Earth and Mars a quite good estimate of the required launch energy and of the maneuvres needed for the capture at Mars can be obtained. This approach is often used in conjunction with the Patched Conic Approximation. This is also a method for Orbit determination. If two positions of a spacecraft at different times are known with good precision from for example a GPS fix the complete orbit can be derived with this algorithm, i.e an interpolation and an extrapolation of these two position fixes is obtained.

Open source code to solve Lambert's problem

From MATLAB central

PyKEP a Python library for space flight mechanics and astrodynamics (contains a Lambert's solver, implemented in C++ and exposed to python via boost python)