2.2.11 · D4Fluid Mechanics

Exercises — Stream function, velocity potential

2,764 words13 min readBack to topic

Level 1 — Recognition

Recall Solution L1.1

Two independent tests. WHY two? Because needs no spin (irrotational) and needs no squishing (incompressible) — different physics.

Test for (incompressibility, the Continuity Equation): Divergence is zero ⇒ exists.

Test for (irrotationality): in 2D the only vorticity component is Non-zero spin ⇒ does NOT exist.

This field is solid-body rotation (like a spinning turntable): every particle circles the origin, so there is real spin, and no single "height" scalar can describe it.


Recall Solution L1.2

Rule from the parent note: are streamlines (the fluid runs along them); are equipotentials (crossed perpendicularly by the flow).

  • → straight lines of slope . These are the streamlines.
  • → straight lines of slope . These are the equipotentials.

Slopes multiply to : they are perpendicular, exactly as a flow net demands.


Level 2 — Application

Recall Solution L2.1

Apply the definitions (, ). WHY these and not 's? Because we were handed . Incompressible? By construction any gives . Check: ✓. Irrotational? Zero spin ⇒ also irrotational. So a exists too — this is an ideal flow. (It is the classic "flow toward a corner" / stagnation flow.)

Recall Solution L2.2

We integrate, because is the anti-derivative of velocity (). Here is an unknown function of only — it vanishes when we differentiate by , so integration cannot see it yet. Pin it down using the other equation : So (constant absorbed). Check: ✓, ✓.


Level 3 — Analysis

Recall Solution L3.1

The two scalars must agree on and . The bridge is and . Second equation: → only true at . Refuted. These do not describe the same flow.

Deeper reason: has , so it fails the Laplace Equation that every valid velocity potential of an incompressible flow must satisfy. It was never a legal potential to begin with.

Recall Solution L3.2

From : , . Now build from : Fix with : . So . Laplace check:


Level 4 — Synthesis

Figure — Stream function, velocity potential
Recall Solution L4.1

WHY superpose? Because the Laplace Equation is linear: if and each solve , so does their sum. Streamfunctions add.

From to a Cartesian velocity — do it carefully. The source stream function is . Its velocity in polar coordinates comes from the polar definitions of the stream function, So (pure radial outflow) and . WHY convert to Cartesian? Because the stream flows horizontally (-direction), so to add the two flows we need both expressed in the same basis. A purely radial velocity of magnitude points along the unit vector , so its Cartesian components are That is where the vector form comes from — it is nothing more than "radial speed times the outward unit vector." Adding the uniform stream : Stagnation on the -axis: set (then automatically) and : With : . Stagnation point at . Read it off the figure above: the amber dot sits at , upstream (to the left) of the white source dot. The white arrows on the far left are the incoming uniform stream; the cyan curves are streamlines of the combined . Exactly at the amber dot the source's outward push (pointing left, in , on that side) cancels the stream's rightward push — so the flow halts, splits, and wraps around the "half-body." The analytic is precisely that amber dot.


Recall Solution L4.2

Key fact from the parent note: flux between two streamlines is just . WHY: flux .

Evaluate with , so (with ).

  • At : on the negative -axis , .
  • At : , . WHY the minus sign — it is orientation, not a mistake. The quantity measures flux crossing a curve from streamline to streamline with a fixed handedness (positive when the flow crosses left-to-right as you walk from the first streamline to the second). Here actually decreases going from to , so the fluid crosses in the opposite sense to our chosen walking order — hence the negative sign. Swap the two endpoints (walk from to ) and you get . The physical amount of fluid is the same either way: its magnitude is The sign only records which way it flows; the size is what "how much fluid" means.

Level 5 — Mastery

Recall Solution L5.1

First, the tool we need: velocity from a potential in polar coordinates. The gradient is the vector "steepest-increase of ." In Cartesian it is . In polar coordinates, a step in the radial direction of length changes by , but a step in the angular direction sweeps an arc length (not ) — because moving through angle at radius physically moves you a distance . Since velocity is change-in- per unit distance, the tangential component must divide by that arc length: That extra is the whole reason the angular formula looks different from the radial one.

(a) Stream function. In polar form . So Streamlines : concentric circles — correct, fluid whirls around.

Velocity potential. Using the polar rule just derived, Note this and are the swapped mirror of the source in the parent note — vortex and source are conjugates.

(b) Irrotational check + single-valuedness. The vorticity of a purely azimuthal flow is So although each particle orbits, it does not spin about its own axis — that is why it is irrotational everywhere except the singular core .

But is multivalued. Walk one full loop around the origin: increases by , so jumps by even though you returned to the same physical point. A genuine single-valued height cannot do that. This is precisely the L1 caveat in action: the flow region (the plane minus the origin) is not simply-connected — it has a hole at , and loops around that hole cannot be shrunk to a point. So "curl " holds yet is only single-valued if we cut the plane along a ray (a branch cut, e.g. the negative -axis) so that no path can encircle the core. The jump across the cut is exactly the circulation — the vortex's defining quantity. (The velocity itself stays perfectly single-valued; only the potential carries the ambiguity.)

(c) Bernoulli. For irrotational flow, everywhere. Speed . With : . So the pressure is lower near the centre by units — exactly why the middle of a whirlpool dips down.


Figure — Stream function, velocity potential
Recall Solution L5.2
  • Streamlines: concentric circles.
  • Equipotentials: radial rays.
  • A circle and a radius always cross at .

Match this to the figure above: the cyan circles are the streamlines (), the amber rays are the equipotentials (), and the white dot marks the singular core (where 's branch cut lives). Every place a cyan circle meets an amber ray, they cross at a right angle — that is the flow net, drawn.

Algebraic proof of orthogonality (matches the picture). The gradient of a scalar points across its level curves, so: Their dot product: Zero dot product ⇒ perpendicular gradients ⇒ perpendicular level curves. So the algebra () is the exact statement of what your eye sees in the figure: circles ⟂ rays.


Recall One-line self-test recap

Existence test ::: needs ; needs and a simply-connected (hole-free) region for single-valuedness. Recover from velocity ::: integrate over , then fix the leftover using . Superposition rule ::: and add because Laplace's equation is linear. Polar velocity from a potential ::: (the is arc-length weighting). Orbiting vs spinning ::: free vortex () is irrotational (but jumps by per loop); solid-body () genuinely spins. Flux meaning of ::: between two streamlines; its sign records orientation, its magnitude the amount.