2.2.11Fluid Mechanics

Stream function, velocity potential

1,763 words8 min readdifficulty · medium1 backlinks

1. Velocity Potential ϕ\phi

WHY does ϕ\phi exist? From vector calculus: the curl of a gradient is always zero, ×(ϕ)=0\nabla\times(\nabla\phi)=0. So if a field can be written as a gradient, it is automatically irrotational. The converse (a key theorem) says: in a simply-connected region, if ×V=0\nabla\times\vec V=0, then V\vec V can be written as ϕ\nabla\phi.


2. Stream Function ψ\psi

WHY this works (DERIVE it): Continuity in 2D is ux+vy=0.\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}=0. We want u,vu,v to come from one function so this is automatically satisfied. Try u=ψ/yu=\partial\psi/\partial y, v=ψ/xv=-\partial\psi/\partial x. Substitute: x ⁣(ψy)+y ⁣(ψx)=ψxyψyx=0.\frac{\partial}{\partial x}\!\left(\frac{\partial\psi}{\partial y}\right)+\frac{\partial}{\partial y}\!\left(-\frac{\partial\psi}{\partial x}\right)=\psi_{xy}-\psi_{yx}=0. It vanishes identically because mixed partials commute. So by construction, any ψ\psi gives a divergence-free flow. That is why the minus sign sits on vv — to cancel.


3. When BOTH exist: orthogonality & Laplace

If a flow is both incompressible and irrotational ("ideal flow"), both ϕ\phi and ψ\psi exist.

Each satisfies Laplace's equation. WHY:

  • Incompressible + V=ϕ\vec V=\nabla\phi: ϕ=02ϕ=0\nabla\cdot\nabla\phi=0\Rightarrow \nabla^2\phi=0.
  • Irrotational + ψ\psi defs: vxuy=0ψxxψyy=02ψ=0\dfrac{\partial v}{\partial x}-\dfrac{\partial u}{\partial y}=0 \Rightarrow -\psi_{xx}-\psi_{yy}=0\Rightarrow \nabla^2\psi=0.

2ϕ=0,2ψ=0\boxed{\nabla^2\phi=0,\qquad \nabla^2\psi=0}

Figure — Stream function, velocity potential

4. Worked Examples


5. Common Mistakes


Recall Feynman: explain to a 12-year-old

Imagine a river. Instead of tracking how fast water moves in the left–right and up–down directions separately (two things), we use ONE clever number for each spot:

  • The stream function ψ\psi is like a "lane number." Water never crosses lanes, so any line where ψ\psi stays the same is a path water actually follows. And the gap between two lane numbers tells you exactly how much water flows in that channel.
  • The velocity potential ϕ\phi is like "height on a hill" — water slides toward higher ϕ\phi. It only works when the water isn't spinning in little whirlpools. When the water is both un-squishable and non-spinning, both numbers exist, and their maps cross like graph paper at perfect right angles.

Flashcards

Condition for velocity potential ϕ\phi to exist
Flow must be irrotational, ×V=0\nabla\times\vec V=0 (since ×ϕ=0\nabla\times\nabla\phi=0).
Condition for stream function ψ\psi to exist
2D incompressible flow, V=0\nabla\cdot\vec V=0.
Define u,vu,v from ϕ\phi
u=ϕ/x,  v=ϕ/yu=\partial\phi/\partial x,\; v=\partial\phi/\partial y.
Define u,vu,v from ψ\psi
u=ψ/y,  v=ψ/xu=\partial\psi/\partial y,\; v=-\partial\psi/\partial x.
Why is the minus sign needed in v=ψxv=-\psi_x?
So continuity ψxyψyx=0\psi_{xy}-\psi_{yx}=0 is satisfied automatically.
What does ψ=\psi=const represent?
A streamline (curve tangent to the velocity).
What does ϕ=\phi=const represent?
An equipotential line, perpendicular to streamlines.
Flow rate between two streamlines
Q=ψ2ψ1Q=\psi_2-\psi_1 (per unit depth).
Equation satisfied by ϕ\phi and ψ\psi in ideal flow
Laplace's equation, 2ϕ=0, 2ψ=0\nabla^2\phi=0,\ \nabla^2\psi=0.
Why are equipotentials ⟂ streamlines?
ϕψ=(u)(v)+(v)(u)=0\nabla\phi\cdot\nabla\psi=(u)(-v)+(v)(u)=0.
Cauchy–Riemann (fluid) relations
ϕx=ψy\phi_x=\psi_y and ϕy=ψx\phi_y=-\psi_x.
ϕ\phi and ψ\psi for uniform flow UU
ϕ=Ux, ψ=Uy\phi=Ux,\ \psi=Uy.
ϕ\phi and ψ\psi for a source of strength mm
ϕ=m2πlnr, ψ=m2πθ\phi=\frac{m}{2\pi}\ln r,\ \psi=\frac{m}{2\pi}\theta.

Connections

  • Continuity Equation — source of the stream function (V=0\nabla\cdot\vec V=0).
  • Vorticity and Irrotational Flow — source of the velocity potential (×V=0\nabla\times\vec V=0).
  • Laplace Equation — both ϕ\phi and ψ\psi are harmonic.
  • Bernoulli Equation — used once ϕ\phi gives the velocity field.
  • Cauchy-Riemann Equations — complex potential w=ϕ+iψw=\phi+i\psi.
  • Electrostatic Potential — direct mathematical analogue (E=V\vec E=-\nabla V).
  • Flow Nets — orthogonal grid of ϕ\phi and ψ\psi lines.

Concept Map

constrained by

constrained by

packs into

packs into

auto-satisfies continuity

V = grad phi

constant along

difference gives

curl of gradient is zero

combined with incompressible

combined with irrotational

2D velocity field u v

Incompressibility div V=0

Irrotationality curl V=0

Stream function psi

Velocity potential phi

Streamlines psi const

Flux Q = psi2 - psi1

Potential flow

Laplace equation

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, 2D flow mein velocity ke do components hote hain, uu aur vv. Do unknown solve karna mushkil hai. Idea simple hai: physics ki do conditions in dono ko jod deti hain, toh hum unhe ek hi scalar function mein pack kar sakte hain. Agar flow incompressible hai (mass conserve, V=0\nabla\cdot\vec V=0), toh stream function ψ\psi banti hai: u=ψyu=\psi_y, v=ψxv=-\psi_x. Ye minus sign zaroori hai taaki continuity automatically satisfy ho jaaye — mixed partials cancel ho jaate hain.

Stream function ka sabse pyaara fact: ψ=\psi=constant waali lines hi streamlines hain, yaani fluid actually inhi raston pe behta hai. Aur do streamlines ke beech ka difference ψ2ψ1\psi_2-\psi_1 exactly batata hai ki utne channel mein kitna flow QQ ja raha hai. Toh ψ\psi sirf maths nahi, ekdum physical "lane number" hai.

Dusri taraf, agar flow irrotational hai (koi spinning nahi, ×V=0\nabla\times\vec V=0), toh velocity potential ϕ\phi exist karta hai, jaise electric potential. V=ϕ\vec V=\nabla\phi, matlab u=ϕxu=\phi_x, v=ϕyv=\phi_y. Yaad rakho: ϕ\phi sirf tab milta hai jab flow ghoomta nahi.

Jab flow dono ho — incompressible aur irrotational (ideal flow) — tab dono ϕ\phi aur ψ\psi exist karte hain, dono Laplace equation 2ϕ=0\nabla^2\phi=0, 2ψ=0\nabla^2\psi=0 follow karte hain, aur unki lines ek dusre se 90 degree pe milti hain (flow net). Exam mein bas yaad rakhna: ψ\psi = streamlines (cross indices + minus), ϕ\phi = equipotentials (straight indices, no minus). Ye 80/20 ka core hai.

Go deeper — visual, from zero

Test yourself — Fluid Mechanics

Connections