Using a Stream Function to Describe Planar Flow
A stream function packages a two-dimensional incompressible velocity field into one scalar function. You can differentiate it to recover velocity, trace its contours to find streamlines, and subtract its values to calculate flow rate. These connections make it useful when you describe a flow from measured velocities or check whether a proposed boundary allows fluid to pass through it.
Definition and velocity convention
For planar flow in Cartesian coordinates, write the velocity components as u(x,y) in the x direction and v(x,y) in the y direction. A stream function ψ(x,y) represents these components through their spatial derivatives. This lesson uses the convention
Some textbooks reverse both signs. Either convention works, but you must keep the velocity definitions and flow-rate signs consistent. With the convention above, ψ has SI units of m2/s because differentiating with respect to a distance produces velocity in m/s.
For a sufficiently smooth function, these definitions satisfy planar incompressible continuity automatically:
To construct ψ from a compatible velocity field, integrate u with respect to y, retaining an unknown function of x. Then use v=−∂ψ/∂x to determine that function. Adding a constant to ψ changes neither velocity component.
Contours, streamlines, and walls
A streamline is a curve tangent to the local velocity at a given instant. Along a contour of constant ψ,
Thus, wherever the velocity is nonzero, the velocity is tangent to the contour. Where u=0, its slope is dy/dx=v/u. At a stagnation point, the zero velocity vector does not specify a unique tangent direction.
In steady flow, a fluid particle follows a streamline. In unsteady flow, a streamline describes the instantaneous direction field; it need not match a particle's complete path.
A stationary impermeable wall has zero normal velocity. Its connected boundary is therefore a constant-ψ curve. Tangential velocity may remain nonzero: impermeability alone does not require both velocity components to vanish.
Differences give flow rate
Consider a vertical cut at fixed x, from a lower point A to an upper point B. Define positive flow across the cut as flow in the positive x direction. The signed volume flow rate per unit span is
For flow uniform across an out-of-plane span b, the volume flow rate is Q=bq′, in m3/s. Only a difference in ψ matters, so the arbitrary reference value cancels.
Endpoint comparison | Signed flow across the vertical cut |
|---|---|
ψB>ψA | Net flow is in the positive x direction. |
ψB<ψA | Net flow is in the negative x direction. |
ψB=ψA | Net flow is zero; opposing crossings may cancel. |
What to remember
- Differentiate ψ using one consistent sign convention.
- Constant-ψ contours are streamlines wherever velocity is nonzero.
- A stream-function difference gives signed flow rate per unit span.
- Zero net flow does not necessarily mean zero local crossing.
Example: Tracking Flow Through a Planar Test Section
A steady incompressible flow in a planar test section is modeled by
where a=0.800 s−1 and x,y are measured in metres. The flow is uniform across an out-of-plane span b=0.250 m. Use the convention u=∂ψ/∂y, v=−∂ψ/∂x.
a) Construct the stream function, choosing ψ(0,0)=0.
Integrate the horizontal velocity with respect to y. Retain a function of x because differentiating that function with respect to y would give ________:
Use the vertical velocity to determine f(x):
Therefore, f′(x)=0 and f(x)=C. The reference condition gives C=0, so
The units are (s−1)(m)(m)=m2/s. Differentiating the result reproduces both supplied components.
b) Find the stream-function value at P=(0.500 m,0.300 m). At what height does its streamline reach x=0.750 m?
Evaluate the stream function at P to identify the contour passing through that point:
The same streamline maintains this value of ψ. At the downstream station,
Solving for the height gives
The streamline moves ________ as x increases, consistent with v=−ay<0 in this region.
c) Calculate the volume flow rate through the vertical opening at x=0.500 m from yA=0.100 m to yB=0.400 m. Take positive x as the positive crossing direction.
For a vertical opening oriented from its lower endpoint A to its upper endpoint B, the signed flow rate per unit span is ψB−ψA. Evaluate the endpoints using the same reference:
Thus,
As a check, u=ax=0.400 m/s is ________ along this opening. Its area is (0.400−0.100)(0.250)=0.0750 m2, so u times area also gives 0.0300 m3/s in the positive x direction.
A steady, two-dimensional flow is described by a stream function ψ(x,y), with velocity components u=∂ψ/∂y and v=−∂ψ/∂x. Complete the three statements about this description.
In this form, a stream function can be defined for any two-dimensional flow that is .
Because the mixed second derivatives of ψ are equal, these velocity components satisfy the equation identically, whatever function ψ is chosen.
Curves along which ψ is constant are , so no fluid crosses them.
Water flows in a planar test section with stream function ψ=ky2, where k=1.20 s−1 and y is measured in metres. Use u=∂ψ/∂y and v=−∂ψ/∂x.
A vertical opening at fixed x extends from yA=0.20 m to yB=0.65 m. The flow is uniform across an out-of-plane span of b=0.30 m. Find the volume flow rate through the opening, taking the positive x direction as positive. Give your answer in m3/s, to three decimal places.