The last lesson ended on a question. Over the crest of its wing-like contraction the centreline air sped up by , and the field had a vertical part, , pulling air toward the centreline. Where does the air go? Sideways. A streamline that starts one unit above the centreline is only units above it over the crest, and . The strip between the centreline and that streamline carries the same air per second everywhere, so where it narrows by the air in it moves times faster. That bookkeeping is conservation of mass, and over a wing it reads the same: the streamtubes above the upper surface narrow, and the air in them is faster.
Notice what it does not say. Continuity ties narrowing to speed-up but names no force; the push is pressure, the next lesson. Here we write the bookkeeping three ways: a balance on a box, a PDE, and a function whose contours are streamtubes. The tools are the divergence (2.7 Divergence: Sources & Sinks), the divergence theorem (2.10 Green, Stokes & the Divergence Theorem) and the material derivative (11.1 Continuum Hypothesis & Flow Kinematics).
Transcript
- The last lesson ended on a question. Over the crest of the contraction the centreline air sped up thirty percent. Where does the air go? Sideways. The streamline one unit above the centreline is only zero point seven six nine units above it over the crest, and one over zero point seven six nine is one point three. That strip carries the same air per second everywhere, so where it narrows by one point three, the air in it moves one point three times faster. That bookkeeping is conservation of mass.
- First, a balance on a box. Take a box one metre deep, air at one point two kilograms per cubic metre, flowing in at the left, out at the right, and squeezed from the top and bottom. The four faces give minus twelve, fourteen point four, minus one point two and minus one point two kilograms per second, and the net is zero. Delete the squeeze and the net outflow is two point four kilograms per second: the box must lose density. Speeding-up air is drawn in from the sides, or it thins out.
- Shrink the box and the divergence theorem gives continuity. Following a parcel, D rho by D t equals minus rho times the divergence of u: the divergence is the fractional rate at which a parcel's volume grows. Tracking parcels with RK4, the diverging flow, divergence zero point seven five, grows the area to four point four eight one seven. A shear keeps the area at one point zero zero zero zero. So does the source, though its streamlines fan out. Spreading streamlines are not divergence.
- If every parcel keeps its density, the divergence of u is zero. That is a property of the flow, judged by the Mach number. For air brought smoothly to rest, the density ratio is one plus point two M squared, to the minus two and a half. At Mach point three it is zero point nine five six four, a four point four percent change. At Mach point eight it is zero point seven four zero zero, a twenty-six percent change. So incompressible means below Mach point three, and an airliner near Mach point eight is far outside it.
- A streamtube's wall is made of streamlines, so what enters one end leaves the other: u one A one equals u two A two. A tunnel draws air slowly through a wide settling chamber, then squeezes it through a contraction. With a contraction ratio of nine, five metres per second becomes forty-five. The compressible model gives forty-five point four zero at Mach zero point one three three six, with density point eight eight percent below the inlet: incompressible is good to one percent.
- Run it faster. At twenty-one point one metres per second, incompressible gives one hundred eighty-nine point nine zero. The compressible model gives two hundred fifty-five point seven nine at Mach point seven nine eight one, thirty-four point seven percent faster, with density point seven four two four of the inlet value. Both conserve mass; they split the trade between density and speed differently. Past about twenty-two metres per second, the contraction chokes: no subsonic flow can push that much mass through the throat.
- In two dimensions, build incompressibility in: u is partial psi by partial y, and v is minus partial psi by partial x. The divergence is psi y x minus psi x y, which is zero. Streamlines are curves of constant psi, and the flow between two is the difference of psi, so where contours crowd, the air is fast. For a cylinder, psi is U y times one minus a squared over x squared plus y squared. At the top the speed is two U. With U and a equal to one, psi of B minus psi of A is one point five zero zero zero.
- Continuity ties narrowing to speed-up. The streamtubes squeeze over the crest, so the air in them must move faster. But it names no force. Something has to push a parcel from slow air into fast air, and that something is pressure. Next lesson, the Euler equations and Bernoulli's principle turn this speed-up into the pressure difference that holds a wing up.
Control volumes and flux
Fix a region , a control volume, and let the air flow through it. Mass in changes only by crossing its boundary . Through a patch with outward normal , the volume crossing per second is ; only the normal component carries anything through. Weight by density and add the patches:
This is the integral form of conservation of mass; is the mass flux, and the minus sign is there because means leaving.
Worked example: a box in a contraction
Take the box , (metres, one metre deep), air at kg/m, and m/s: speeding up in , squeezed in . Outflow per face:
- Left, : kg/s (inflow).
- Right, : kg/s.
- Top, , into the box: kg/s. Bottom, , also in: kg/s.
Net outflow: . The extra kg/s leaving on the right enters through top and bottom. Delete the squeeze, , and the net outflow is kg/s: the box, one cubic metre, must lose density at kg/m per second. Air that speeds up must either be drawn in from the sides (the contraction) or thin out (compressibility). Lab part A evaluates the four face integrals and prints these numbers.
From the box to a PDE
The divergence theorem turns the surface integral into , and the box is fixed, so the time derivative moves inside:
If the continuous integrand were positive somewhere, a tiny box there would give a positive integral. So it vanishes everywhere:
the continuity equation. Check it on the unsqueezed box: , so kg/m/s, as the faces said.
The parcel’s point of view
With , the first term joins to make the material derivative of the last lesson:
A parcel of volume is always the same molecules, so is constant along it: , and therefore
The divergence is the fractional rate at which a parcel’s volume grows (area, in 2D), and the density falls exactly as fast.
Worked example: parcels that grow and parcels that don’t
Lab part B follows a small square parcel’s boundary with RK4 and measures its area with the shoelace formula.
- Diverging flow : , so , which is at . The RK4 parcel: .
- Shear : divergence . The parcel becomes a parallelogram twice as wide, area : the “area factor ” of the last lesson’s sim, now explained.
- Source : the streamlines fan out, yet for (Problem 3). The parcel from is squashed radially (width ) and stretched sideways (height ); its area stays .
The source is the trap: spreading streamlines are not divergence. The air slows as it spreads, and the slowing pays for the spreading exactly.
The Reynolds transport theorem
A control volume stands still; a parcel moves and deforms. The Reynolds transport theorem connects them. For a smooth and a material volume moving with the flow,
The 3D statement is quoted without proof; in 1D it is the Leibniz rule of Calc II. A material interval has ends moving with the flow, , , so
change inside, plus ground swept at the moving ends. In 3D the ends become and becomes . Put : a material volume keeps its mass, so the left side is zero, and at the instant it coincides with a fixed box the right side is the box balance. With the same theorem turns Newton’s second law into the momentum equation, next lesson.
Incompressibility and when it holds
If every parcel keeps its density, and continuity becomes
incompressibility: every parcel keeps its volume. It is a property of the flow, not the gas. Air squeezes easily in a piston, yet the flow round a light aircraft is nearly incompressible, because its speeds change the pressure only slightly. The yardstick is the Mach number , speed over the speed of sound.
For air () brought smoothly from rest (density ) to Mach without heat exchange or friction, gas dynamics gives the isentropic relation (quoted from memory; the compressible-flow lesson, 11.12, derives it):
At : , a change. At : , a change. The rule incompressible below Mach 0.3 accepts about 4%. An airliner cruising near Mach 0.8 is far outside it: the oncoming air is a quarter less dense than air brought to rest on the nose, and is simply wrong there. The channel sim’s bottom plot draws this curve with both points labelled.
Streamtubes and the wind tunnel
A streamtube is the bundle of streamlines through a small closed loop. Its wall is made of streamlines, so no air crosses it, and in steady flow what enters one end leaves the other: , with the mean speed over each section. At constant density,
That is how a wind tunnel makes its speed. Air drifts through a wide settling chamber (where screens calm it), then a contraction squeezes it into the test section. With contraction ratio (a typical value for low-speed tunnels, from memory), m/s becomes m/s. The sim’s compressible model (the isentropic relation plus the area-Mach relation of gas dynamics, both quoted) gives m/s at Mach , with density below the inlet: incompressible is good to .
Drag the inlet speed to m/s. Incompressible: m/s. Compressible: m/s at Mach , faster, with density of the inlet value. The upper dots thin out and outrun the lower ones, yet the mass-flux curve stays flat at in both models, because both conserve mass; they split the trade between and differently. Past about m/s at this ratio the readout reports choked: no subsonic flow can push that much mass through the throat.
The stream function
In 2D, incompressibility can be built in. Take any smooth and set
Then because mixed partials are equal (2.1 Functions of Several Variables & Partial Derivatives). Two more facts:
- Streamlines are curves const. Along , , zero exactly when is parallel to .
- Flow rate is a difference of . The volume per second (per metre of depth) crossing any curve from to is .
So equally spaced contours split the flow into channels carrying equal flow, and where contours crowd, the air is fast. The last lesson’s contraction is with , since then and . Its streamline runs at upstream and over the crest: the opening of this lesson.
Worked example: flow past a cylinder
The stream function of a uniform stream past a cylinder of radius (from memory; the potential-flow lesson, 11.7, builds it) is
With and , by hand:
Far away . On , : the surface is a streamline, so no air enters the cylinder. The divergence, term by term:
and the numerators add to .
At the top, : , . The air moves twice as fast over the top as in the free stream. In streamtube terms: the streamline through has , so far upstream, where , it sits up. The tube between it and the surface carries through a gap of upstream but only at the top: mean speed , then , peaking at on the body.
With , and the readout gives , and the line integral of along , computed separately from the hand-derived velocity, also . The shaded tube is wide at (the cylinder’s influence fades only like ) and at the top; mean speed , then . The top reads , , and the largest over the grid is of order , the central-difference error at step . This is the seed of the airfoil story: a curved body narrows the streamtubes over it, and the flow there is faster. The airfoil lesson adds the circulation that makes the top faster than the bottom.
Computing it
The grid is the cylinder () with , , ; the top is u[9, 299]. The divergence must be below ; the solution prints about , round-off on values near divided by . Differencing the exact velocity instead (lab part C) lands near and would fail. The top speed and flow rate carry truncation error of order (the solution prints and ), so they are graded to .
Concept checks
Problems
A tunnel has contraction ratio 6 and a settling-chamber speed of 10 m/s. (a) Find the test-section speed from . (b) The sim’s compressible model gives m/s at Mach with . Explain the size of the incompressible error. (c) Should the error grow or shrink if the tunnel runs faster?
Show worked solution
(a) m/s.
(b) , so the incompressible answer is low. Mass conservation, , makes the true speed the incompressible one divided by , and . Below Mach 0.3, as here, that stays under a few percent.
(c) Grow: for small , , so the density drop, and with it the error, grows like . At m/s inflow the sim’s error is .
For : (a) derive , and show ; (b) find the velocity at and at ; (c) find the flow rate between the surface and the streamline through .
Show worked solution
(a) As in the worked example: , , and the numerators of and sum to . It had to: .
(b) At : , . At : , , the stagnation point on the nose, where locally the flow looks like turned to face the stream.
(c) The surface has and , so per unit depth; the sim (with ) reads both as a difference and as a line integral.
(a) For solve the pathline equations and show a parcel’s area grows like . (b) Show is divergence-free for , find a stream function, and the flow rate out through any circle around the origin.
Show worked solution
(a) , : horizontal lengths scale by , vertical ones by , area by , which is at (lab part B). Consistently, .
(b) and sum to . The polar angle works: has , . Through a circle, , the jump in once around: all the divergence sits at the origin, where the air is injected. The sim’s source-sink uses , so its jumps by .
Key Takeaways
- A fixed box gains mass only through its faces; the divergence theorem turns that into .
- For a parcel, , and is the fractional rate of volume growth. Spreading streamlines (the source) are not divergence.
- Reynolds transport theorem (stated; in 1D the Leibniz rule): derivatives of integrals over moving parcels become fixed control-volume balances. Next lesson it yields the momentum equation.
- is a property of the flow: density changes at Mach 0.3, at Mach 0.8. Airliner cruise is compressible.
- Streamtubes obey : a contraction ratio of 9 turns 5 m/s into 45 m/s, but at 21.1 m/s inflow the compressible speed is 35% higher, and a little faster the contraction chokes.
- In 2D, , is divergence-free by construction; is the flow between two streamlines, and matched central differences keep the discrete divergence at round-off.
- Over a cylinder the tubes narrow and the top speed is . Continuity says the air must speed up there, not what pushes it. That force is pressure: next, the Euler equations and Bernoulli’s principle turn the speed-up into the pressure difference that holds a wing up.