Fiveable

💨Fluid Dynamics Unit 4 Review

QR code for Fluid Dynamics practice questions

4.3 Stream function

4.3 Stream function

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
💨Fluid Dynamics
Unit & Topic Study Guides

Definition of stream function

The stream function gives you a single scalar function that encodes all the velocity information in a 2D incompressible flow. Instead of solving for two velocity components separately, you solve for one function ψ\psi and derive both components from it. The continuity equation is satisfied automatically, which removes an entire equation from your system.

  • Denoted by the Greek letter ψ\psi (psi), the stream function is a scalar field that can vary in both space and time.
  • It's most powerful for incompressible flows, where it guarantees mass conservation by construction.
  • For irrotational flows, ψ\psi also satisfies Laplace's equation, opening up a large toolkit of analytical solution methods.

Stream function in two-dimensional flow

Relationship between stream function and velocity components

In 2D flow, the velocity components uu (in the xx-direction) and vv (in the yy-direction) are defined through partial derivatives of ψ\psi:

  • u=ψyu = \frac{\partial \psi}{\partial y}
  • v=ψxv = -\frac{\partial \psi}{\partial x}

Why does this work? Substitute these into the 2D incompressible continuity equation:

ux+vy=2ψxy2ψyx=0\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} = \frac{\partial^2 \psi}{\partial x \partial y} - \frac{\partial^2 \psi}{\partial y \partial x} = 0

The mixed partial derivatives cancel identically (assuming ψ\psi is smooth), so continuity is satisfied no matter what form ψ\psi takes. That's the whole point: you've built mass conservation directly into the formulation.

Constant value of stream function along streamlines

A streamline is a curve that is everywhere tangent to the local velocity vector at a given instant. Along any streamline, ψ\psi is constant. Here's why: the total differential of ψ\psi is

dψ=ψxdx+ψydy=vdx+udyd\psi = \frac{\partial \psi}{\partial x}dx + \frac{\partial \psi}{\partial y}dy = -v\,dx + u\,dy

On a streamline, the direction of travel is parallel to the velocity, so dydx=vu\frac{dy}{dx} = \frac{v}{u}, which means udyvdx=0u\,dy - v\,dx = 0. Therefore dψ=0d\psi = 0 along a streamline.

This has a direct physical payoff: the volumetric flow rate per unit depth between two streamlines equals the difference in their ψ\psi values. If streamline 1 has ψ1=2  m2/s\psi_1 = 2\;\text{m}^2/\text{s} and streamline 2 has ψ2=5  m2/s\psi_2 = 5\;\text{m}^2/\text{s}, the volume flow rate per unit depth between them is 3  m2/s3\;\text{m}^2/\text{s}. Where streamlines are packed closely together, the flow is faster.

Stream function in three-dimensional flow

Relationship between stream function and velocity components

In 3D incompressible flow, the stream function becomes a vector quantity Ψ\vec{\Psi}, and the velocity is recovered through its curl:

V=×Ψ\vec{V} = \nabla \times \vec{\Psi}

Writing this out in Cartesian components:

  • u=ΨzyΨyzu = \frac{\partial \Psi_z}{\partial y} - \frac{\partial \Psi_y}{\partial z}
  • v=ΨxzΨzxv = \frac{\partial \Psi_x}{\partial z} - \frac{\partial \Psi_z}{\partial x}
  • w=ΨyxΨxyw = \frac{\partial \Psi_y}{\partial x} - \frac{\partial \Psi_x}{\partial y}

Because the divergence of any curl is identically zero, V=(×Ψ)=0\nabla \cdot \vec{V} = \nabla \cdot (\nabla \times \vec{\Psi}) = 0, so the incompressible continuity equation is again satisfied automatically.

In practice, the full 3D vector stream function is rarely used because it introduces three unknown components instead of one. It's most useful in axisymmetric flows, where a single scalar Stokes stream function can describe the entire flow field.

Constant value of stream function along stream surfaces

In 3D flow, the analog of a streamline is a stream surface: a surface formed by all the streamlines passing through a given closed curve. The stream function remains constant on each stream surface, and the volumetric flow rate between two stream surfaces equals the difference in their stream function values.

Properties of stream function

Relationship between stream function and velocity components, Fluid Dynamics – University Physics Volume 1

Orthogonality of stream function and velocity potential

For flows that are both incompressible and irrotational (×V=0\nabla \times \vec{V} = 0), you can also define a velocity potential ϕ\phi such that V=ϕ\vec{V} = \nabla \phi. In this case:

  • Lines of constant ϕ\phi (equipotential lines) and lines of constant ψ\psi (streamlines) intersect at right angles everywhere.
  • Together, ϕ\phi and ψ\psi form an orthogonal net that completely describes the flow.

This orthogonality is not a coincidence. The gradient of ϕ\phi points in the flow direction, while the gradient of ψ\psi points perpendicular to the flow (across streamlines). Their dot product is zero:

ϕψ=u(v)+v(u)=0\nabla \phi \cdot \nabla \psi = u(-v) + v(u) = 0

Laplace's equation for stream function

When a 2D flow is both incompressible and irrotational, ψ\psi satisfies Laplace's equation:

2ψ=2ψx2+2ψy2=0\nabla^2 \psi = \frac{\partial^2 \psi}{\partial x^2} + \frac{\partial^2 \psi}{\partial y^2} = 0

This follows from the irrotationality condition (zero vorticity). Laplace's equation is one of the most well-studied PDEs in mathematics, so a huge library of analytical techniques (separation of variables, conformal mapping, Green's functions) and numerical methods become available.

Determination of stream function

Calculation of stream function from velocity field

If you already know the velocity field, you can find ψ\psi by integration. The procedure for 2D flow:

  1. Start with one of the defining relations, say u=ψyu = \frac{\partial \psi}{\partial y}. Integrate with respect to yy: ψ(x,y)=u(x,y)dy+f(x)\psi(x, y) = \int u(x, y)\,dy + f(x) where f(x)f(x) is an unknown function of xx only (it acts like a "constant" of integration that can still depend on the other variable).

  2. Differentiate this result with respect to xx and set it equal to v-v: ψx=xudy+f(x)=v(x,y)\frac{\partial \psi}{\partial x} = \frac{\partial}{\partial x}\int u\,dy + f'(x) = -v(x,y)

  3. Solve for f(x)f'(x) and integrate to find f(x)f(x).

  4. Combine to get the full expression for ψ(x,y)\psi(x, y). The result is unique up to an additive constant (you're free to set ψ=0\psi = 0 on any convenient streamline).

Boundary conditions for stream function

To solve for ψ\psi when the velocity field is not already known, you need boundary conditions:

  • Solid walls: A stationary solid boundary is itself a streamline, so ψ=constant\psi = \text{constant} along it. Typically you set ψ=0\psi = 0 on one wall for convenience.
  • Inflow/outflow boundaries: Specify the value of ψ\psi (or its normal derivative) consistent with the known velocity profile at that boundary.
  • Free-stream conditions: Far from an object, ψ\psi should match the undisturbed uniform flow. For a uniform flow of speed UU in the xx-direction, ψ=Uy\psi = Uy.

The choice of boundary conditions depends on the geometry and what information you have about the flow.

Applications of stream function

Visualization of flow patterns

Plotting contours of constant ψ\psi directly gives you the streamlines of the flow. This is one of the most intuitive ways to visualize a velocity field:

  • Closely spaced streamlines indicate high-speed regions.
  • Widely spaced streamlines indicate low-speed regions.
  • Closed streamline loops reveal recirculation zones.
  • Points where streamlines appear to cross (they don't literally cross for steady flow) indicate stagnation points.
Relationship between stream function and velocity components, Fluid Dynamics – TikZ.net

Calculation of mass flow rate

Because the volume flow rate per unit depth between two streamlines equals ψ2ψ1\psi_2 - \psi_1, the mass flow rate per unit depth between two points is:

m˙=ρ(ψ2ψ1)\dot{m}' = \rho(\psi_2 - \psi_1)

where ρ\rho is the (constant) fluid density. This works regardless of the path you choose between the two points, which makes it very convenient for computing flow rates through channels or around bodies.

Determination of stagnation points

Stagnation points are locations where the velocity is zero (u=0u = 0 and v=0v = 0). In terms of ψ\psi, this means:

ψy=0andψx=0\frac{\partial \psi}{\partial y} = 0 \quad \text{and} \quad \frac{\partial \psi}{\partial x} = 0

Geometrically, stagnation points appear where streamlines meet or diverge. The stream function has a saddle point at these locations. Identifying stagnation points is critical for understanding pressure distributions (via Bernoulli's equation) and forces on immersed bodies.

Relationship between stream function and other flow properties

Stream function and vorticity

Vorticity ωz\omega_z in 2D flow measures the local spinning motion of fluid elements. It's related to ψ\psi by:

ωz=vxuy=2ψ\omega_z = \frac{\partial v}{\partial x} - \frac{\partial u}{\partial y} = -\nabla^2 \psi

This is a Poisson equation: given a vorticity distribution, you can solve for ψ\psi, and vice versa. For irrotational flow (ωz=0\omega_z = 0), this reduces to Laplace's equation as discussed above. For rotational flows, the vorticity acts as a source term driving the stream function field.

Stream function and circulation

Circulation Γ\Gamma is the line integral of velocity around a closed curve CC:

Γ=CVdl\Gamma = \oint_C \vec{V} \cdot d\vec{l}

For a closed curve that doesn't enclose any singularities in an irrotational flow, Γ=0\Gamma = 0. But when singularities (like point vortices) are enclosed, circulation is nonzero and directly connects to lift through the Kutta-Joukowski theorem: L=ρUΓL' = \rho U \Gamma, where LL' is lift per unit span and UU is the free-stream velocity.

Note that the relationship Γ=ψBψA\Gamma = \psi_B - \psi_A stated in some references applies only along specific paths (not arbitrary closed curves). For a closed curve, the start and end points coincide, so this difference would be zero unless the stream function is multi-valued (as it is around a body with circulation).

Advantages and limitations of stream function approach

Simplification of flow analysis

The stream function reduces the number of unknowns. In 2D incompressible flow, instead of solving for two velocity components plus the continuity equation, you solve for a single scalar ψ\psi. The continuity equation is eliminated entirely. If the flow is also irrotational, ψ\psi satisfies Laplace's equation, and you have a single linear PDE to solve.

This approach is especially powerful when combined with the velocity potential ϕ\phi in potential flow theory, where superposition of elementary solutions (uniform flow, sources, sinks, vortices, doublets) lets you build up complex flow fields analytically.

Limitations in compressible and unsteady flows

  • Compressible flows: The standard stream function definition only guarantees V=0\nabla \cdot \vec{V} = 0. In compressible flow, the continuity equation is (ρV)=0\nabla \cdot (\rho \vec{V}) = 0 for steady flow, so the density variation breaks the simple relationship. You can define a compressible stream function using ρu=ψy\rho u = \frac{\partial \psi}{\partial y} and ρv=ψx\rho v = -\frac{\partial \psi}{\partial x}, but this is less commonly used and the resulting equations are nonlinear.
  • Unsteady flows: The stream function can still be defined for unsteady incompressible flows (continuity doesn't involve time derivatives of density for incompressible flow). However, the streamlines you get from ψ\psi at a given instant are instantaneous streamlines, not pathlines or streaklines. The flow visualization becomes less straightforward because the streamline pattern changes with time.
  • Three dimensions: As noted earlier, the 3D vector stream function introduces three components, which doesn't simplify the problem much. The stream function approach is most valuable in 2D and axisymmetric geometries.