In fluid dynamics, two types of stream function (or streamfunction) are defined:
The properties of stream functions make them useful for analyzing and graphically illustrating flows.
The remainder of this article describes the two-dimensional stream function.
The two-dimensional stream function is based on the following assumptions:
Although in principle the stream function doesn't require the use of a particular coordinate system, for convenience the description presented here uses a right-handed Cartesian coordinate system with coordinates ( x , y , z ) {\displaystyle (x,y,z)} .
Consider two points A {\displaystyle A} and P {\displaystyle P} in the x y {\displaystyle xy} plane, and a continuous curve A P {\displaystyle AP} , also in the x y {\displaystyle xy} plane, that connects them. Then every point on the curve A P {\displaystyle AP} has z {\displaystyle z} coordinate z = 0 {\displaystyle z=0} . Let the total length of the curve A P {\displaystyle AP} be L {\displaystyle L} .
Suppose a ribbon-shaped surface is created by extending the curve A P {\displaystyle AP} upward to the horizontal plane z = b {\displaystyle z=b} ( b > 0 ) {\displaystyle (b>0)} , where b {\displaystyle b} is the thickness of the flow. Then the surface has length L {\displaystyle L} , width b {\displaystyle b} , and area b L {\displaystyle b\,L} . Call this the test surface.
The total volumetric flux through the test surface is
where s {\displaystyle s} is an arc-length parameter defined on the curve A P {\displaystyle AP} , with s = 0 {\displaystyle s=0} at the point A {\displaystyle A} and s = L {\displaystyle s=L} at the point P {\displaystyle P} . Here n ^ {\displaystyle {\hat {\mathbf {n} }}} is the unit vector perpendicular to the test surface, i.e.,
where R {\displaystyle R} is the 3 × 3 {\displaystyle 3\times 3} rotation matrix corresponding to a 90 ∘ {\displaystyle 90^{\circ }} anticlockwise rotation about the positive z {\displaystyle z} axis:
The integrand in the expression for Q {\displaystyle Q} is independent of z {\displaystyle z} , so the outer integral can be evaluated to yield
Lamb and Batchelor define the stream function ψ {\displaystyle \psi } as follows.[3]
Using the expression derived above for the total volumetric flux, Q {\displaystyle Q} , this can be written as
In words, the stream function ψ {\displaystyle \psi } is the volumetric flux through the test surface per unit thickness, where thickness is measured perpendicular to the plane of flow.
The point A {\displaystyle A} is a reference point that defines where the stream function is identically zero. Its position is chosen more or less arbitrarily and, once chosen, typically remains fixed.
An infinitesimal shift d P = ( d x , d y ) {\displaystyle \mathrm {d} P=(\mathrm {d} x,\mathrm {d} y)} in the position of point P {\displaystyle P} results in the following change of the stream function:
From the exact differential
so the flow velocity components in relation to the stream function ψ {\displaystyle \psi } must be
Notice that the stream function is linear in the velocity. Consequently if two incompressible flow fields are superimposed, then the stream function of the resultant flow field is the algebraic sum of the stream functions of the two original fields.
Consider a shift in the position of the reference point, say from A {\displaystyle A} to A ′ {\displaystyle A'} . Let ψ ′ {\displaystyle \psi '} denote the stream function relative to the shifted reference point A ′ {\displaystyle A'} :
Then the stream function is shifted by
which implies the following:
The velocity u {\displaystyle \mathbf {u} } can be expressed in terms of the stream function ψ {\displaystyle \psi } as
where R {\displaystyle R} is the 3 × 3 {\displaystyle 3\times 3} rotation matrix corresponding to a 90 ∘ {\displaystyle 90^{\circ }} anticlockwise rotation about the positive z {\displaystyle z} axis. Solving the above equation for ∇ ψ {\displaystyle \nabla \psi } produces the equivalent form
From these forms it is immediately evident that the vectors u {\displaystyle \mathbf {u} } and ∇ ψ {\displaystyle \nabla \psi } are
Additionally, the compactness of the rotation form facilitates manipulations (e.g., see Condition of existence).
In general, a divergence-free field like u {\displaystyle \mathbf {u} } , also known as a solenoidal vector field, can always be represented as the curl of some vector potential A {\displaystyle {\boldsymbol {A}}} :
The stream function ψ {\displaystyle \psi } can be understood as providing the strength of a vector potential that is directed perpendicular to the plane:[4]
in other words A = ψ z ^ {\displaystyle {\boldsymbol {A}}=\psi {\hat {\mathbf {z} }}} , where z ^ {\displaystyle {\hat {\mathbf {z} }}} is the unit vector pointing in the positive z {\displaystyle z} direction.
This can also be written as the vector cross product
where we've used the vector calculus identity
Noting that z ^ = ∇ z {\displaystyle {\hat {\mathbf {z} }}=\nabla z} , and defining ϕ = z {\displaystyle \phi =z} , one can express the velocity field as
This form shows that the level surfaces of ψ {\displaystyle \psi } and the level surfaces of z {\displaystyle z} (i.e., horizontal planes) form a system of orthogonal stream surfaces.
An alternative definition, sometimes used in meteorology and oceanography, is
In two-dimensional plane flow, the vorticity vector, defined as ω = ∇ × u {\displaystyle {\boldsymbol {\omega }}=\nabla \times \mathbf {u} } , reduces to ω z ^ {\displaystyle \omega \,{\hat {\mathbf {z} }}} , where
or
These are forms of Poisson's equation.
Consider two-dimensional plane flow with two infinitesimally close points P = ( x , y , z ) {\displaystyle P=(x,y,z)} and P ′ = ( x + d x , y + d y , z ) {\displaystyle P'=(x+dx,y+dy,z)} lying in the same horizontal plane. From calculus, the corresponding infinitesimal difference between the values of the stream function at the two points is
Suppose ψ {\displaystyle \psi } takes the same value, say C {\displaystyle C} , at the two points P {\displaystyle P} and P ′ {\displaystyle P'} . Then this gives
implying that the vector ∇ ψ {\displaystyle \nabla \psi } is normal to the surface ψ = C {\displaystyle \psi =C} . Because u ⋅ ∇ ψ = 0 {\displaystyle \mathbf {u} \cdot \nabla \psi =0} everywhere (e.g., see In terms of vector rotation), each streamline corresponds to the intersection of a particular stream surface and a particular horizontal plane. Consequently, in three dimensions, unambiguous identification of any particular streamline requires that one specify corresponding values of both the stream function and the elevation ( z {\displaystyle z} coordinate).
The development here assumes the space domain is three-dimensional. The concept of stream function can also be developed in the context of a two-dimensional space domain. In that case level sets of the stream function are curves rather than surfaces, and streamlines are level curves of the stream function. Consequently, in two dimensions, unambiguous identification of any particular streamline requires that one specify the corresponding value of the stream function only.
It's straightforward to show that for two-dimensional plane flow u {\displaystyle \mathbf {u} } satisfies the curl-divergence equation
where R {\displaystyle R} is the 3 × 3 {\displaystyle 3\times 3} rotation matrix corresponding to a 90 ∘ {\displaystyle 90^{\circ }} anticlockwise rotation about the positive z {\displaystyle z} axis. This equation holds regardless of whether or not the flow is incompressible.
If the flow is incompressible (i.e., ∇ ⋅ u = 0 {\displaystyle \nabla \cdot \mathbf {u} =0} ), then the curl-divergence equation gives
Then by Stokes' theorem the line integral of R u {\displaystyle R\,\mathbf {u} } over every closed loop vanishes
Hence, the line integral of R u {\displaystyle R\,\mathbf {u} } is path-independent. Finally, by the converse of the gradient theorem, a scalar function ψ ( x , y , t ) {\displaystyle \psi (x,y,t)} exists such that
Here ψ {\displaystyle \psi } represents the stream function.
Conversely, if the stream function exists, then R u = ∇ ψ {\displaystyle R\,\mathbf {u} =\nabla \psi } . Substituting this result into the curl-divergence equation yields ∇ ⋅ u = 0 {\displaystyle \nabla \cdot \mathbf {u} =0} (i.e., the flow is incompressible).
In summary, the stream function for two-dimensional plane flow exists if and only if the flow is incompressible.
For two-dimensional potential flow, streamlines are perpendicular to equipotential lines. Taken together with the velocity potential, the stream function may be used to derive a complex potential. In other words, the stream function accounts for the solenoidal part of a two-dimensional Helmholtz decomposition, while the velocity potential accounts for the irrotational part.
The basic properties of two-dimensional stream functions can be summarized as follows:
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 ψ {\displaystyle \psi } is defined such that
and represents the mass flux (rather than volumetric flux) per unit thickness through the test surface.
{{citation}}