Gas Dynamics & Supersonic FlowCompressible Flow Equations of Motion 1D Isentropic Relations Wave Propagation Flow through Nozzles and Ducts 2D Compressible Flow PrandtlMeyer Expansion Shock Interactions ShockExpansion Techniques for Aerofoils Method of Characteristics Unsteady Supersonic Flow Flow Tables/Software 
Equations of Motion for a Compressible FlowIn this section the equations of motion for a compressible flow are derived. For an incompressible flow velocity is calculated from continuity or momentum equation. Pressure is obtained through the Bernoulli Equation. This simple approach is not possible for a compressible flow where temperature is not a constant. The energy equation needs to be solved in addition to the continuity and momentum equations. The latter equations have previously been derived for incompressible flows in the section on Fluid Mechanics. In this case, they will be applied considering that there will be changes in density. The Integral Approach is used based on a control volume as show below. Equations are derived under the following assumptions.
Figure 8: Control Volume for a Compressible Flow Continuity EquationFor a steady flow, the mass flow rates at entry (1) and exit (2) of the control volume must be equal. Hence, $$ρ_1u_1A_1=ρ_2u_2A_2$$Written in a differential form the above equation becomes, $${dρ}/ρ+{du}/u+{dA}/A=0$$ Momentum EquationThe derivation of Momentum Equation closely follows that for incompressible flows. Basically, it equates net force on the control volume to the rate of change of momentum of the gas entering or exiting the control volume. Defining P_{m} as the average pressure between the entry (1) and exit (2),(see Fig. 8), then for a steady flow, For a steady flow through a duct of constant area the momentum equation assumes a simple form, It should be noted that the above equations can be applied even for the cases where frictional or viscous effects occur between locations (1) and (2). But it is necessary that these effects be absent at (1) and (2). Energy EquationFrom the first law of Thermodynamics, for a unit mass, where q is the heat added. Work done is given by Considering only internal and kinetic energies. Accordingly, where e is specific internal energy and u is flow velocity Substituting produces the energy equation for a gas flow as, Noting that enthalpy, $h= e + P.v, then Considering an adiabatic process, q = 0, then, This equation demands that the states (1) and (2) be in equilibrium, but does allow nonequilibrium conditions between (1) and (2). If the flow is such that equilibrium exists all along the path from (1) to (2) then, at any location along 12, Differentiating the above equation, For a thermally perfect gas i.e., enthalpy, h depends only on temperature, T (h =c_{p}T) the above equation becomes, Further, for a calorically perfect gas, i.e., c_{p} is constant, then, Stagnation ConditionsThe "constant" on the RHS of the above equation can be determined by looking at the flow at either stagnation conditions, as was the case for incompresible flow, or at sonic (M=1) conditions. Constant based on Stagnation ConditionsStagnation conditions are reached when the flow is brought to rest,i.e., u = 0. Temperature, pressure, density, entropy and enthalpy become equal to "Stagnation Temperature" , T_{0}, "Stagnation Pressure", P_{0} , "Stagnation Density", ρ_{0} "Stagnation Entropy", s_{0} and "Stagnation Enthalpy, h_{0}. These are also known as "Total" conditions. This is in contrast to incompressible flows where only the Stagnation Pressure is considered. The previous equation can be rewritten as, Note that h = c_{p}T for a calorically perfect gas, hence, The constant arrived at is thus h_{0} or c_{p}T_{0}. It is to be noted that there does not have to be a stagnation point in a flow in order to use the above equations. Stagnation or Total conditions are only reference conditions. There is only one stagnation condition for a given flow, although in fact this only is true for isentropic flows. In a nonisentropic flow different locations can have different stagnation conditions depending on the energy or heat supply to the different points in the flow. In an adiabatic flow (a flow where heat is not added or taken away) the stagnation or total temperature,T_{0} does not change. This is true even in presence of shock waves as described later. However the total pressure p_{0} can change from point to point. Considering the control volume shown in Fig. 8, as long as the flow is adiabatic, then, To predict the conditions for total (stagnation) pressure, the Second Law of Thermodynamics, is used, For a perfect gas the above equation becomes, Since $(T_0)_1=(T_0)_2$ "Equals" sign applies when the flow is isentropic and "greater than " sign applies for any nonisentropic flow. Thus for any natural process involving dissipation, total pressure drops. It is preserved for an isentropic flow. An example of a nonisentropic flow is that of a shock wave. Across a shock wave there is a reduction of total pressure. AreaVelocity RelationIn incompressible flow velocity changes inversely with area changes  as the area offered to the flow increases, velocity decreases and vice versa. But a compressible flow at supersonic speeds reverses this relationship due to the effect of the speed of sound in the gas. The Continuity equation is, Considering also the Euler Equation (derived before for incompressible flows) Rewriting the equation, brings in the speed of sound, given by $a=√{dP\/dρ}$. By introducing Mach Number, M = u/a the above equation becomes, Upon substituting this in the continuity equation, Figure 9 : Response of Subsonic and Supersonic Flows to Area Changes Applying this equation produces the effects shown in Fig. 9
