In two-dimensional incompressible fluid flow, the continuity equation is essential for ensuring mass conservation, meaning that any change in fluid entering or exiting a region is balanced by a corresponding change elsewhere. For incompressible flow, where density remains constant, this requirement simplifies to the condition that the divergence of the velocity field must be zero. Mathematically, this is expressed as,
where u and v represent the horizontal and vertical velocity components, respectively.
To inherently satisfy this equation, we introduce the stream function ψ, which allows the velocity components to be defined in terms of ψ as:

These definitions automatically satisfy the continuity equation, as the mixed partial derivatives of ψ cancel out.
The stream function ψ is constant along streamlines, which are the paths that fluid particles follow within the flow. Streamlines can therefore be visualized as contour lines of ψ, providing a clear representation of fluid motion. Each streamline is tangent to the velocity vector at any point along its path, illustrating the direction of flow without the need for calculating velocities at each point individually.
Moreover, the difference in ψpsiψ values between two streamlines represents the volumetric flow rate per unit depth between them, enabling direct calculation of flow rates. This property significantly simplifies the analysis of two-dimensional incompressible flows by removing the need to solve separate equations for u and v. As a result, the stream function ψ is a powerful tool for modeling and interpreting fluid behavior in applications involving incompressible, steady flow.
In two-dimensional incompressible flow, there are horizontal and vertical velocity components.
The continuity equation ensures mass conservation by requiring that the sum of the rates of change of these components is zero, meaning the net inflow and outflow in any region are balanced.
To satisfy this condition, the stream function is introduced.
The horizontal velocity is the partial derivative of the stream function with respect to the vertical direction, while the vertical velocity is the negative partial derivative with respect to the horizontal direction. This ensures mass conservation is automatically maintained.
A key feature of the stream function is that it remains constant along streamlines, which represent the paths of fluid particles and are tangent to the velocities in the flow field.
Streamlines, often depicted as contour lines, allow intuitive interpretation of fluid behavior.
The stream function simplifies fluid motion calculations. The difference in stream function values between two streamlines represents the volume flow rate between them.
This eliminates the need to solve for velocity components separately, making it an efficient tool for analyzing two-dimensional flow.