# Flight dynamics (spacecraft)

{{#invoke:Hatnote|hatnote}}

Spacecraft flight dynamics is the science of space vehicle performance, stability, and control. It requires analysis of the six degrees of freedom of the vehicle's flight, which are similar to those of aircraft: translation in three dimensional axes; and its orientation about the vehicle's center of mass in these axes, known as pitch, roll and yaw, with respect to a defined frame of reference.

Dynamics is the modeling of the changing position and orientation of a vehicle, in response to external forces acting on the body. For a spacecraft, these forces are of three types: propulsive force (usually provided by the vehicle's engine thrust); gravitational force exerted by the Earth or other celestial bodies; and aerodynamic lift and drag (when flying in the atmosphere of the Earth or other body, such as Mars or Venus). The vehicle's attitude must be taken into account because of its effect on the aerodynamic and propulsive forces. There are other reasons, unrelated to flight dynamics, for controlling the vehicle's attitude in non-powered flight (e.g., thermal control, solar power generation, communications, or astronomical observation).

The principles of flight dynamics are normally used to control a spacecraft by means of an inertial navigation system in conjunction with an attitude control system. Together, they create a subsystem of the spacecraft bus often called ADCS.

## Basic principles

A spacecraft's flight is determined by application of Newton's second law of motion:

$\mathbf {F} =m\mathbf {a} ,$ where F is the vector sum of all forces exerted on the vehicle, m is its current mass, and a is the acceleration vector, the instantaneous rate of change of velocity (v), which in turn is the instantaneous rate of change of displacement. Solving for a, acceleration equals the force sum divided by mass. Acceleration is integrated over time to get velocity, and velocity is in turn integrated to get position.

Aerodynamic forces, present near a body with significant atmosphere such as Earth, Mars or Venus, are analyzed as: lift, defined as the force component perpendicular to the direction of flight (not necessarily upward to balance gravity, as for an airplane); and drag, the component parallel to, and in the opposite direction of flight. Lift and drag are modeled as the products of a coefficient times dynamic pressure acting on a reference area:

$\mathbf {L} =C_{L}qA_{ref}$ $\mathbf {D} =C_{D}qA_{ref}$ where:

• CL is roughly linear with α, the angle of attack between the vehicle axis and the direction of flight (up to a limiting value), and is 0 at α = 0 for an axisymmetric body;
• CD varies with α2;
• CL and CD vary with Reynolds number and Mach number;
• q, the dynamic pressure, is equal to 1/2 ρ v2, where ρ is atmospheric density, modeled for Earth as a function of altitude in the International Standard Atmosphere (using an assumed temperature distribution, hydrostatic pressure variation, and the ideal gas law); and
• Aref is a characteristic area of the vehicle, such as cross-sectional area at the maximum diameter.

## Powered flight

Flight calculations are made quite precisely for space missions, taking into account such factors as the Earth's oblateness and non-uniform mass distribution; gravitational forces of all nearby bodies, including the Moon, Sun, and other planets; and three-dimensional flight path. For preliminary studies, some simplifying assumptions can be made (spherical, uniform planet; two-body patched conic approximation; and co-planar local flight path) with reasonably small loss of accuracy.

The general case of a launch from Earth must take engine thrust, aerodynamic forces and gravity into account. The acceleration equation can be reduced from vector to scalar form by resolving it into tangential and angular components. The two equations thus become:

${\dot {v}}=(F\cos \alpha )/m-D/m-g\cos \theta \,$ ${\dot {\theta }}=(F\sin \alpha )/mv+L/mv+(g/v-v/r)\sin \theta ,\,$ where θ is the flight path angle from local vertical, α is the angle of attack, F is the engine thrust, D is drag, L is lift, r is the radial distance to the planet's center, and g is the acceleration due to gravity, which varies with the inverse square of the radial distance:{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} $g=g_{0}(r_{0}/r)^{2}\,$ Mass, of course changes as propellant is consumed and rocket stages, engines or tanks are shed (if applicable). Integrating the two equations from time zero (when both v and θ are 0) gives planet-fixed values of v and θ at any time in the flight:{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

$v=\int _{t_{0}}^{t}{\dot {v}}\,dt$ $\theta =\int _{t_{0}}^{t}{\dot {\theta }}\,dt$ Finite element analysis can be used to numerically integrate often by breaking the flight into small time increments.

For most launch vehicles, relatively small levels of lift are generated, and a gravity turn is employed, depending mostly on the third term of the angle rate equation. But notice, when the angle is initially 0 immediately after liftoff, the only force which can cause the vehicle to pitch over is the engine thrust acting at a non-zero angle of attack (first term), until a non-zero pitch angle is attained. In the gravity turn, pitch-over is initiated by applying an increasing angle of attack (by means of gimballed engine thrust), followed by a gradual decrease in angle of attack through the remainder of the flight.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} Once velocity and flight path angle are known, altitude and downrange distance are computed as:{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

$h=\int _{t_{0}}^{t}v\cos \theta \,dt$ $r=r_{0}+h\,$ $s=r_{0}\int _{t_{0}}^{t}v/r\sin \theta \,dt$ ## Orbital flight

Template:Rellink Orbital mechanics are used to calculate flight in orbit about a central body. For sufficiently high orbits (generally at least Template:Convert in the case of Earth), aerodynamic force may be assumed to be negligible for relatively short term missions (though a small amount of drag may be present which results in decay of orbital energy over longer periods of time.) When the central body's mass is much larger than the spacecraft, and other bodies are sufficiently far away, the solution of orbital trajectories can be treated as a two-body problem.

This can be shown to result in the trajectory being ideally a conic section (circle, ellipse, parabola or hyperbola) with the central body located at one focus. Orbital trajectories are either circles or ellipses; the parabolic trajectory represents first escape of the vehicle from the central body's gravitational field. Hyperbolic trajectories are escape trajectories with excess velocity, and will be covered under Interplanetary flight below.

Elliptical orbits are characterized by three elements. The semi-major axis a is the average of the radius at apoapsis and periapsis:

$a=(r_{a}+r_{p})/2\,$ The eccentricity e can then be calculated for an ellipse, knowing the apses:

$e=r_{a}/a-1\,$ The time period for a complete orbit is dependent only on the semi-major axis, and is independent of eccentricity:{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} $TP=2\pi {\sqrt {a^{3}/\mu }}\,$  The angular orbital elements of a spacecraft orbiting a central body, defining orientation of the orbit in relation to its fundamental reference plane The orientation of the orbit in space is specified by three angles: • The inclination i, of the orbital plane with the fundamental plane (this is usually a planet or moon's equatorial plane, or in the case of a solar orbit, the Earth's orbital plane around the sun, known as the ecliptic.) Positive inclination is northward, while negative inclination is southward. • The longitude of the ascending node Ω, measured in the fundamental plane counter-clockwise looking southward, from a reference direction (usually the vernal equinox) to the line where the spacecraft crosses this plane from south to north. (If inclination is zero, this angle is undefined and taken as 0.) • The argument of periapsis ω, measured in the orbital plane counter-clockwise looking southward, from the ascending node to the periapsis. If the inclination is 0, there is no ascending node, so ω is measured from the reference direction. For a circular orbit, there is no periapsis, so ω is taken as 0. The orbital plane is ideally constant, but is usually subject to small perturbations caused by planetary oblateness and the presence of other bodies. The spacecraft's position in orbit is specified by the true anomaly, ν, an angle measured from the periapsis, or for a circular orbit, from the ascending node or reference direction. The semi-latus rectum, or radius at 90 degrees from periapsis, is: $p=a(1-e^{2})\,$ The radius at any position in flight is: $r={\frac {p}{(1+e\cos \nu )}}\,$ and the velocity at that position is: $v={\sqrt {\mu (2/r-1/a)}}\,$ ### Circular orbit For a circular orbit, ra = rp = a, and eccentricity is 0. Circular velocity at a given radius is: $v_{c}={\sqrt {\mu /r}}\,$ ### Elliptical orbit For an elliptical orbit, e is greater than 0 but less than 1. The periapsis velocity is: $v_{p}={\sqrt {\frac {\mu (1+e)}{a(1-e)}}}\,$ and the apoapsis velocity is: $v_{a}={\sqrt {\frac {\mu (1-e)}{a(1+e)}}}\,$ The limiting condition is a parabolic escape orbit, when e = 1 and ra becomes infinite. Escape velocity at periapsis is then $v_{e}={\sqrt {2\mu /r_{p}}}\,$ ### Flight path angle The specific angular momentum of any conic orbit, h, is constant, and is equal to the product of radius and velocity at periapsis. At any other point in the orbit, it is equal to:{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

$h=rv\cos {\phi },\,$ where φ is the flight path angle measured from the local horizontal (perpendicular to r.) This allows the calculation of φ, knowing radius and velocity at any point in the orbit:{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} $\phi =\arccos {({\frac {r_{p}v_{p}}{rv}})}\,$ Note that flight path angle is a constant 0 degrees (90 degrees from local vertical) for a circular orbit. ### True anomaly as a function of time It can be shown that the angular momentum equation given above also relates the rate of change in true anomaly to r, v and φ, thus the true anomaly can be found as a function of time since periapsis passage by integration: $\nu =r_{p}v_{p}\int _{t_{p}}^{t}{\frac {1}{r^{2}}}dt$ Conversely, the time required to reach a given anomaly is:{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

$t={\frac {1}{r_{p}v_{p}}}\int _{0}^{\nu }r^{2}d\nu$ Sample delta-v budget will enumerate various classes of maneuvers, delta-v per maneuver, number of maneuvers required over the time of the mission.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} ## Translunar flight Vehicles sent on lunar or planetary missions are generally not launched on a direct trajectory, but first put into a low Earth parking orbit; this allows the flexibility of a bigger launch window and more time for checking that the vehicle is in good condition for the flight. A popular misconception is that escape velocity is required for flight to the Moon; it is not. Rather, the vehicle's apogee is raised high enough to take it to a point (before it reaches apogee) where it enters the Moon's gravitational sphere of influence (though the required velocity is close to that of escape.) This is defined as the distance from a satellite at which its gravitational pull on a spacecraft equals that of its central body, which is: $r_{SOI}=D\left({\frac {m_{s}}{m_{c}}}\right)^{2/5},$ where D is the mean distance from the satellite to the central body, and mc and ms are the masses of the central body and satellite, respectively. This value is approximately Template:Convert from Earth's Moon. A significant portion of the vehicle's flight (other than immediate proximity to the Earth or Moon) requires accurate solution as a three-body problem, but may be preliminarily modeled as a patched conic. ### Translunar injection {{#invoke:main|main}} This must be timed so that the Moon will be in position to capture the vehicle, and might be modeled to a first approximation as a Hohmann transfer. However, the rocket burn duration is usually long enough, and occurs during the change in flight path angle, so that this is not very accurate, requiring instead integration of a simplified version of the velocity and angle rate equations given above in Powered flight: ${\dot {v}}=(F\cos \alpha )/m-g\cos \theta \,$ ${\dot {\theta }}=(F\sin \alpha )/mv+(g/v-v/r)\sin \theta ,\,$ ### Mid-course corrections A simple lunar trajectory stays in one plane, resulting in lunar flyby or orbit within a small range of inclination to the Moon's equator. This also permits a "free return", in which the spacecraft would return to the appropriate position for reentry into the Earth's atmosphere if it were not injected into lunar orbit. Relatively small velocity changes are usually required to correct for trajectory errors. Such a trajectory was used for the Apollo 8, Apollo 10, Apollo 11, and Apollo 12 manned lunar missions. Greater flexibility in lunar orbital or landing site coverage (at greater angles of lunar inclination) can be obtained by performing a plane change maneuver mid-flight; however, this takes away the free-return option, as the new plane would take the spacecraft's emergency return trajectory away from the Earth's atmospheric re-entry point, and leave the spacecraft in a high Earth orbit. This type of trajectory was used for the last five Apollo missions (13 through 17). ### Lunar orbit insertion ## Interplanetary flight In order to completely leave one planet's gravitational field to reach another, a hyperbolic trajectory relative to the departure planet is necessary, with excess velocity added to (or subtracted from) the departure planet's orbital velocity around the Sun. The desired heliocentric transfer orbit to an outer planet will have its perihelion at the departure planet, requiring the hyperbolic excess velocity to be applied in the posigrade direction, when the spacecraft is away from the Sun. To an inner destination planet, aphelion will be at the departure planet, and the excess velocity is applied in the retrograde direction when the spacecraft is toward the Sun. Since interplanetary spacecraft spend a large period of time in the heliocentric orbit between the planets, which are at relatively large distances away, the patched-conic approximation is much more accurate for interplanetary trajectories than for translunar trajectories. The patch point between the hyperbolic trajectory relative to the departure planet and the heliocentric transfer orbit can be assumed to occur at the planet's sphere of influence radius relative to the Sun, as defined above in Orbital flight. ### Hyperbolic departure {{ safesubst:#invoke:Unsubst||$N=Unreferenced section |date=__DATE__ |$B= {{ safesubst:#invoke:Unsubst||$N=Unreferenced |date=__DATE__ |\$B= {{#invoke:Message box|ambox}} }} }} Once the required excess velocity v (sometimes called characteristic velocity) is determined, the injection velocity at periapsis for a hyperbola is:

$v_{p}={\sqrt {2\mu /r_{p}+v_{\infty }^{2}}}\,$ The excess velocity vector for a hyperbola is displaced from the periapsis tangent by a characteristic angle, therefore the periapsis injection burn must lead the planetary departure point by the same angle:

$\delta =\arcsin(1/e)\,$ The geometric equation for eccentricity of an ellipse cannot be used for a hyperbola. But the eccentricity can be calculated from dynamics formulations as:

$e={\sqrt {1+{\frac {2\epsilon h^{2}}{\mu ^{2}}}}},$ where h is the specific angular momentum as given above in the Orbital flight section, calculated at the periapsis:

$h=r_{p}v_{p},\,$ and ε is the specific energy:

$\epsilon =v^{2}/2-\mu /r\,$ Also, the equations for r and v given in Orbital flight depend on the semi-major axis, and thus are unusable for an escape trajectory. But setting radius at periapsis equal to the r equation at zero anomaly gives an alternate expression for the semi-latus rectum:

$p=r_{p}(1+e),\,$ which gives a more general equation for radius versus anomaly which is usable at any eccentricity:

$r={\frac {r_{p}(1+e)}{(1+e\cos \nu )}}\,$ Substituting the alternate expression for p also gives an alternate expression for a (which is defined for a hyperbola, but no longer represents the semi-major axis). This gives an equation for velocity versus radius which is likewise usable at any eccentricity:

$v={\sqrt {\mu \left({\frac {2}{r}}-{\frac {(1-e^{2})}{r_{p}(1+e)}}\right)}}\,$ The equations for flight path angle and anomaly versus time given in Orbital flight are also usable for hyperbolic trajectories.

### Launch windows

There is a great deal of variation with time of the velocity change required for a mission, because of the constantly varying relative positions of the planets. Therefore, optimum launch windows are often chosen from the results of porkchop plots that show contours of characteristic energy (v2) plotted versus departure and arrival time.

## Atmospheric entry

{{#invoke:main|main}} Atmospheric entry is the movement of human-made or natural objects as they enter the atmosphere of a celestial body from outer space—in the case of Earth from an altitude above the Kármán Line, (100 km). This topic is heavily concerned with the process of controlled reentry of vehicles which are intended to reach the planetary surface intact, but the topic also includes uncontrolled (or minimally controlled) cases, such as the intentionally or circumstantially occurring, destructive deorbiting of satellites and the falling back to the planet of "space junk" due to orbital decay.