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)u(x,y) in the xx direction and v(x,y)v(x,y) in the yy direction. A stream function ψ(x,y)\psi(x,y) represents these components through their spatial derivatives. This lesson uses the convention


u=∂ψ∂y,v=−∂ψ∂x.u=\frac{\partial\psi}{\partial y},\qquad v=-\frac{\partial\psi}{\partial x}.


Some textbooks reverse both signs. Either convention works, but you must keep the velocity definitions and flow-rate signs consistent. With the convention above, ψ\psi has SI units of m2/s\text{m}^2/\text{s} because differentiating with respect to a distance produces velocity in m/s\text{m}/\text{s}.


For a sufficiently smooth function, these definitions satisfy planar incompressible continuity automatically:


∂u∂x+∂v∂y=∂2ψ∂x∂y−∂2ψ∂y∂x=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.


To construct ψ\psi from a compatible velocity field, integrate uu with respect to yy, retaining an unknown function of xx. Then use v=−∂ψ/∂xv=-\partial\psi/\partial x to determine that function. Adding a constant to ψ\psi 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 ψ\psi,


dψ=∂ψ∂x dx+∂ψ∂y dy=−v dx+u dy=0.d\psi=\frac{\partial\psi}{\partial x}\,dx+ \frac{\partial\psi}{\partial y}\,dy =-v\,dx+u\,dy=0.


Thus, wherever the velocity is nonzero, the velocity is tangent to the contour. Where u≠0u\ne0, its slope is dy/dx=v/udy/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-ψ\psi 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 xx, from a lower point AA to an upper point BB. Define positive flow across the cut as flow in the positive xx direction. The signed volume flow rate per unit span is


q′=∫yAyBu dy=∫yAyB∂ψ∂y dy=ψB−ψA.q'=\int_{y_A}^{y_B}u\,dy =\int_{y_A}^{y_B}\frac{\partial\psi}{\partial y}\,dy =\psi_B-\psi_A.


Horizontal streamlines cross a vertical section from lower endpoint A to upper endpoint B.


For flow uniform across an out-of-plane span bb, the volume flow rate is Q=bq′Q=bq', in m3/s\text{m}^3/\text{s}. Only a difference in ψ\psi matters, so the arbitrary reference value cancels.


Endpoint comparison

Signed flow across the vertical cut

ψB>ψA\psi_B>\psi_A

Net flow is in the positive xx direction.

ψB<ψA\psi_B<\psi_A

Net flow is in the negative xx direction.

ψB=ψA\psi_B=\psi_A

Net flow is zero; opposing crossings may cancel.



What to remember

  • Differentiate ψ\psi using one consistent sign convention.
  • Constant-ψ\psi 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


u=ax,v=−ay,u=ax,\qquad v=-ay,


where a=0.800 s−1a=0.800\ \text{s}^{-1} and x,yx,y are measured in metres. The flow is uniform across an out-of-plane span b=0.250 mb=0.250\ \text{m}. Use the convention u=∂ψ/∂yu=\partial\psi/\partial y, v=−∂ψ/∂xv=-\partial\psi/\partial x.



A test section shows point P, a vertical opening from A to B, and a downstream station at x equals 0.750 metres.


a) Construct the stream function, choosing ψ(0,0)=0\psi(0,0)=0.


Integrate the horizontal velocity with respect to yy. Retain a function of xx because differentiating that function with respect to yy would give ________:


ψ=∫ax dy=axy+f(x).\psi=\int ax\,dy=axy+f(x).


Use the vertical velocity to determine f(x)f(x):


−∂ψ∂x=−ay−f′(x)=−ay.-\frac{\partial\psi}{\partial x}=-ay-f'(x)=-ay.


Therefore, f′(x)=0f'(x)=0 and f(x)=Cf(x)=C. The reference condition gives C=0C=0, so


ψ=axy=(0.800 s−1)xy.\psi=axy=(0.800\ \text{s}^{-1})xy.


The units are (s−1)(m)(m)=m2/s(\text{s}^{-1})(\text{m})(\text{m})=\text{m}^2/\text{s}. Differentiating the result reproduces both supplied components.


b) Find the stream-function value at P=(0.500 m,0.300 m)P=(0.500\ \text{m},0.300\ \text{m}). At what height does its streamline reach x=0.750 mx=0.750\ \text{m}?


Evaluate the stream function at P to identify the contour passing through that point:


ψP=(0.800 s−1)(0.500 m)(0.300 m)=0.120 m2/s.\psi_P=(0.800\ \text{s}^{-1})(0.500\ \text{m})(0.300\ \text{m}) =0.120\ \text{m}^2/\text{s}.


The same streamline maintains this value of ψ\psi. At the downstream station,


(0.800 s−1)(0.750 m)y=0.120 m2/s.(0.800\ \text{s}^{-1})(0.750\ \text{m})y =0.120\ \text{m}^2/\text{s}.


Solving for the height gives


y=0.120 m2/s(0.800 s−1)(0.750 m)=0.200 m.y=\frac{0.120\ \text{m}^2/\text{s}} {(0.800\ \text{s}^{-1})(0.750\ \text{m})} =0.200\ \text{m}.


The streamline moves ________ as xx increases, consistent with v=−ay<0v=-ay<0 in this region.


c) Calculate the volume flow rate through the vertical opening at x=0.500 mx=0.500\ \text{m} from yA=0.100 my_A=0.100\ \text{m} to yB=0.400 my_B=0.400\ \text{m}. Take positive xx 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\psi_B-\psi_A. Evaluate the endpoints using the same reference:


ψA=(0.800)(0.500)(0.100)=0.0400 m2/s,ψB=(0.800)(0.500)(0.400)=0.160 m2/s.\begin{aligned} \psi_A&=(0.800)(0.500)(0.100)=0.0400\ \text{m}^2/\text{s},\\ \psi_B&=(0.800)(0.500)(0.400)=0.160\ \text{m}^2/\text{s}. \end{aligned}


Thus,


q′=0.160−0.0400=0.120 m2/s,q'=0.160-0.0400=0.120\ \text{m}^2/\text{s},


Q=bq′=(0.250 m)(0.120 m2/s)=0.0300 m3/s.Q=bq'=(0.250\ \text{m})(0.120\ \text{m}^2/\text{s}) =0.0300\ \text{m}^3/\text{s}.


As a check, u=ax=0.400 m/su=ax=0.400\ \text{m}/\text{s} is ________ along this opening. Its area is (0.400−0.100)(0.250)=0.0750 m2(0.400-0.100)(0.250)=0.0750\ \text{m}^2, so uu times area also gives 0.0300 m3/s0.0300\ \text{m}^3/\text{s} in the positive xx direction.

A planar incompressible flow has stream function


ψ=Uy+Kx,\psi=Uy+Kx,


where U=2.40 m/sU=2.40\ \text{m}/\text{s}, K=0.600 m/sK=0.600\ \text{m}/\text{s}, and x,yx,y are distances in metres. Using u=∂ψ/∂yu=\partial\psi/\partial y and v=−∂ψ/∂xv=-\partial\psi/\partial x, which pair gives the velocity components?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A steady, two-dimensional flow is described by a stream function ψ(x,y)\psi(x, y), with velocity components u=∂ψ/∂yu = \partial\psi/\partial y and v=−∂ψ/∂xv = -\partial\psi/\partial 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 ψ\psi are equal, these velocity components satisfy the equation identically, whatever function ψ\psi is chosen.


Curves along which ψ\psi is constant are , so no fluid crosses them.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Water flows in a planar test section with stream function ψ=ky2\psi=ky^2, where k=1.20 s−1k=1.20\ \text{s}^{-1} and yy is measured in metres. Use u=∂ψ/∂yu=\partial\psi/\partial y and v=−∂ψ/∂xv=-\partial\psi/\partial x.


A vertical opening at fixed xx extends from yA=0.20 my_A=0.20\ \text{m} to yB=0.65 my_B=0.65\ \text{m}. The flow is uniform across an out-of-plane span of b=0.30 mb=0.30\ \text{m}. Find the volume flow rate through the opening, taking the positive xx direction as positive. Give your answer in m3/s\text{m}^3/\text{s}, to three decimal places.


A vertical opening extends from y equals 0.20 metres to y equals 0.65 metres with an out-of-plane span of 0.30 metres.


Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice