Calculus 4Applications

Fluid Flow, Sources and Circulation

Interpret flux and curl for moving fluids.

Not started Jump to practice

Vector calculus was built largely to describe fluids. A moving fluid has a velocity field $\mathbf{v}$, and the ideas of this course become physical laws: flux is the volume of fluid crossing a surface per second, divergence measures sources, and curl measures spin, which engineers call vorticity.

Key idea

For a fluid with velocity $\mathbf{v}$ and density $\rho$:
  • Volume flow rate through $S$: $\iint_S \mathbf{v} \cdot d\mathbf{S}$. Mass flow rate: $\iint_S \rho\mathbf{v} \cdot d\mathbf{S}$.
  • Conservation of mass (continuity equation): $\dfrac{\partial \rho}{\partial t} + \nabla \cdot (\rho\mathbf{v}) = 0$.
  • Incompressible flow (constant density): $\nabla \cdot \mathbf{v} = 0$. Irrotational flow: $\nabla \times \mathbf{v} = \mathbf{0}$, so $\mathbf{v} = \nabla\phi$ on a region without holes.
  • Both at once: $\nabla \cdot \nabla\phi = \phi_{xx} + \phi_{yy} + \phi_{zz} = 0$, Laplace's equation.

Why it works

Continuity equation: take any fixed region $E$ with surface $S$. The mass inside, $\iiint_E \rho\,dV$, changes only because mass flows across $S$: $$\frac{d}{dt}\iiint_E \rho\,dV = -\iint_S \rho\mathbf{v} \cdot d\mathbf{S} = -\iiint_E \nabla \cdot (\rho\mathbf{v})\,dV$$ by the divergence theorem. So $\iiint_E \left[\rho_t + \nabla \cdot (\rho\mathbf{v})\right] dV = 0$ for every region $E$, and a continuous function with zero integral over every small region is ${}0$.
The flow $\langle x, -y \rangle$, like water coming down onto a floor and spreading sideways. Divergence ${}1 - 1 = 0$ (no fluid is created) and curl ${}0$ (no spin): it is $\nabla\phi$ with $\phi = \frac{1}{2}(x^2 - y^2)$, which satisfies Laplace's equation.

Worked examples

Worked example: Flow through a window

Water moves with constant velocity $\mathbf{v} = \langle 1, 2, 3 \rangle$ m/s. How much crosses the square $[0, 1] \times [0, 1]$ in the plane $z = 0$, upward, each second?
  1. Normal $\mathbf{k}$, area ${}1$: flow rate $= \mathbf{v} \cdot \mathbf{k} \times 1 = 3$ m$^3$/s.
  2. The other components run along the square and carry nothing through it.

Answer: ${}3$ m$^3$/s

Worked example: An ideal flow

Is $\mathbf{v} = \langle x, -y, 0 \rangle$ incompressible? Irrotational? Find a velocity potential.
  1. $\nabla \cdot \mathbf{v} = 1 - 1 + 0 = 0$: incompressible.
  2. $\nabla \times \mathbf{v} = \langle 0, 0, 0 - 0 \rangle = \mathbf{0}$: irrotational.
  3. $\phi = \frac{1}{2}(x^2 - y^2)$ has $\nabla\phi = \mathbf{v}$ and $\phi_{xx} + \phi_{yy} = 1 - 1 = 0$.

Answer: yes, yes, $\phi = \frac{1}{2}(x^2 - y^2)$

Worked example: Net outflow from a box

For $\mathbf{v} = \langle x^2, y^2, z^2 \rangle$, find the net rate at which fluid leaves the unit cube $[0, 1]^3$.
  1. Divergence theorem: net outflow $= \iiint (2x + 2y + 2z)\,dV$.
  2. Each of ${}2x$, ${}2y$, ${}2z$ averages to ${}1$ over the cube, so the answer is ${}3$.
  3. Positive: this flow is not incompressible; fluid must be created inside (or the density must be dropping).

Answer: ${}3$

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 3 XP.

Loading practice…

Builds on

Leads to

This is one of the top rungs of Calculus 4: Vector Calculus.

Sources and further reading

  • OpenStax Calculus Volume 3, 6.8 The Divergence Theorem
  • OpenStax Calculus Volume 3, 6.5 Divergence and Curl
@teddyrookbook GitHub