In fluid dynamics, the Stokes stream function is used to describe the streamlines and flow velocity in a three-dimensional incompressible flow with axisymmetry. A surface with a constant value of the Stokes stream function encloses a streamtube, everywhere tangential to the flow velocity vectors. Further, the volume flux within this streamtube is constant, and all the streamlines of the flow are located on this surface. The velocity field associated with the Stokes stream function is solenoidalâÂÂit has zero divergence. This stream function is named in honor of George Gabriel Stokes.
Consider a cylindrical coordinate system ( à, à, z ), with the zâÂÂaxis the line around which the incompressible flow is axisymmetrical, àthe azimuthal angle and àthe distance to the zâÂÂaxis. Then the flow velocity components u<sub>ÃÂ</sub> and u<sub>z</sub> can be expressed in terms of the Stokes stream function by:
The azimuthal velocity component u<sub>ÃÂ</sub> does not depend on the stream function. Due to the axisymmetry, all three velocity components ( u<sub>ÃÂ</sub> , u<sub>ÃÂ</sub> , u<sub>z</sub> ) only depend on ÃÂ and z and not on the azimuth ÃÂ.
The volume flux, through the surface bounded by a constant value ÃÂ of the Stokes stream function, is equal to 2ÃÂ ÃÂ.
In spherical coordinates ( r , ø , à), r is the radial distance from the origin, ø is the zenith angle and àis the azimuthal angle. In axisymmetric flow, with ø = 0 the rotational symmetry axis, the quantities describing the flow are again independent of the azimuth ÃÂ. The flow velocity components u<sub>r</sub> and u<sub>ø</sub> are related to the Stokes stream function through:
Again, the azimuthal velocity component u<sub>ÃÂ</sub> is not a function of the Stokes stream function ÃÂ. The volume flux through a stream tube, bounded by a surface of constant ÃÂ, equals 2ÃÂ ÃÂ, as before.
The vorticity is defined as:
with the unit vector in the âÂÂdirection.
As a result, from the calculation the vorticity vector is found to be equal to:
The cylindrical and spherical coordinate systems are related through
As explained in the general stream function article, definitions using an opposite sign convention â for the relationship between the Stokes stream function and flow velocity â are also in use.
In cylindrical coordinates, the divergence of the velocity field u becomes:
as expected for an incompressible flow.
And in spherical coordinates:
From calculus it is known that the gradient vector is normal to the curve (see e.g. Level set#Level sets versus the gradient). If it is shown that everywhere using the formula for in terms of then this proves that level curves of are streamlines.
In cylindrical coordinates,
and
So that
And in spherical coordinates
and
So that