maths.freeFluid Dynamics › The stream function and two-dimensional incompressible flow

The stream function and two-dimensional incompressible flow

A single scalar that builds every 2D divergence-free velocity, draws the streamlines and measures flux.

In two dimensions the condition \(u_x + v_y = 0\) can be solved once and for all. Choose any smooth function \(\psi(x,y,t)\) and set \[ u = \frac{\partial\psi}{\partial y}, \qquad v = -\frac{\partial\psi}{\partial x}. \] Then \(u_x + v_y = \psi_{yx} - \psi_{xy} = 0\) automatically. Conversely, on a simply connected region every divergence-free field arises this way, because the condition says the one-form \(-v\,dx + u\,dy\) is closed, hence exact, and \(\psi\) is its potential. The function \(\psi\) is the stream function (introduced by Lagrange in 1781).

Its level curves are the streamlines. Along a curve where \(\psi\) is constant, \(\mathbf{u}\cdot\nabla\psi = \psi_y\psi_x - \psi_x\psi_y = 0\), so the velocity is tangent to the level set. Better still, the difference of \(\psi\) between two points is the volume flux across any curve joining them: \[ \int_A^B (u\,dy - v\,dx) = \int_A^B (\psi_y\,dy + \psi_x\,dx) = \psi(B) - \psi(A). \] Closely spaced streamlines therefore mean fast flow, since the same flux squeezes through a narrower gap.

The vorticity of a 2D flow is the scalar \(\omega = v_x - u_y\). In terms of the stream function, \[ \omega = -\psi_{xx} - \psi_{yy} = -\Delta\psi. \] So if you know the vorticity you recover the flow by solving a Poisson equation, \(\Delta\psi = -\omega\). This is the starting point of the vorticity-stream function formulation that makes 2D flow so much more tractable than 3D.

A few examples. \(\psi = Uy\) is a uniform stream \((U,0)\). \(\psi = xy\) gives \(\mathbf{u} = (x,-y)\), flow into a corner or towards a wall, with hyperbolic streamlines. \(\psi = -\frac{\Gamma}{2\pi}\ln r\) is a point vortex: the speed is \(\Gamma/(2\pi r)\) around circles, and \(\Delta\psi = 0\) away from the origin, so the flow is irrotational everywhere except at the centre. On a region with a hole, such as the outside of a cylinder, \(\psi\) can take different values on different boundaries, and the difference is the flux between them.

Picture it: a contour map of \(\psi\) is a map of the flow; water runs along the contours, and faster where they bunch together. Think it: in the language of forms, \(\mathbf{u}\) is divergence-free exactly when a certain one-form is closed, and the stream function is the statement that closed forms are exact on simply connected domains.

tusaale · gradient of x*y

tallaabo tallaabo

  1. f(x, y) = x y

    The gradient is the vector of partial derivatives. Differentiate with respect to each variable, holding the others constant.

  2. \frac{\partial f}{\partial x} = y

    Treat every variable except x as a constant.

  3. \frac{\partial f}{\partial y} = x

    Treat every variable except y as a constant.

  4. \nabla f = \left[\begin{matrix}y\\x\end{matrix}\right]

    Assemble the gradient vector. It points in the direction of steepest ascent.

  5. (0, 0)

    Critical points: where every partial derivative is zero.

Jawaabta muuji
\nabla f = \left[\begin{matrix}y\\x\end{matrix}\right]

Haddaad Dooro dhibaato, ama qoraal ama sawirkaaga. Talaab kasta, sawir, jawaabta qarsoon ilaa aad weydiiso.

Ku hay shaqadaada

A xisaab bilaash ah oo ku daray qoraalada waxbarasho kasta, diiwaanka waxa aad dhamaatay, dhibaatooyinka aad xal u tahay meel kaliya, iyo macallinka aad weydiisan kartaa oo ku saabsan bogga. Xisaabta oo keliya waa u furan yahay qof kasta, la diiwaan geliyey ama aan.

Ku soo biir Ku soo gal

Calaamadaha la isticmaalay halkan

Taab calaamad kasta oo loogu talagalay qeexidda buuxda, sawir, iyo waxa xarfaha oo dhan ka mid ah ka dhigan tahay.

Sida loo: The stream function and two-dimensional incompressible flow

  1. Given psi: differentiate to get u = psi_y and v = -psi_x (the gradient gives psi_x and psi_y; swap and change one sign).
  2. Given a velocity: integrate u = psi_y in y, then fix the leftover function of x from v = -psi_x.
  3. Streamlines are the curves psi = constant; the flux between two of them is the difference of their values.
  4. Vorticity is -(psi_xx + psi_yy); a harmonic psi means an irrotational flow.

Su'aalaha dadku waydiiyaan

Is there a stream function in three dimensions?

Not a single scalar in general. A 3D divergence-free field is the curl of a vector potential, and axisymmetric flows have a Stokes stream function, but the neat one-function picture is special to two dimensions.

Why the minus sign in v = -psi_x?

It is a convention that makes the flux from A to B equal to psi(B) - psi(A) with the flow crossing the path from left to right, as seen walking from A to B. Some books use the opposite sign; the physics is the same.

What do I need before starting fluid dynamics?

Multivariable calculus (divergence, curl, the divergence and Stokes theorems), linear algebra (symmetric matrices and eigenvalues) and partial differential equations (the heat and Laplace equations). The last lessons also use Sobolev spaces, which are introduced where they are needed.

What are the Navier-Stokes equations in one sentence?

Newton's second law for each particle of a viscous incompressible fluid: acceleration equals the pressure force plus viscous diffusion of momentum, with the constraint that the velocity field is divergence-free.

Why is two-dimensional flow easier than three-dimensional flow?

In 2D the vorticity is a scalar that is only carried and diffused, so its maximum never grows; in 3D vortex lines can be stretched, which amplifies vorticity, and no known bound rules out unlimited growth.

Is this course physics or mathematics?

Both, in order. The first half derives the equations from physical principles and solves classical flows; the second half treats the equations as mathematical objects and studies which of their properties can be proved.

In ka badan Fluid Dynamics