If the fluid density is time-invariant at all points within the flow, i.e.,
then the continuity equation (e.g., see Continuity equation#Fluid dynamics) for two-dimensional plane flow becomes
In this case the stream function  is defined such that
and represents the mass flux (rather than volumetric flux) per unit thickness through the test surface.