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.

작업 예제 · gradient of x*y

단계별로

  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.

답을 드러내세요
\nabla f = \left[\begin{matrix}y\\x\end{matrix}\right]

이제 너 문제를 선택하거나, 타이핑하거나, 자신만의 문제를 그려보세요. 모든 단계는 그림으로 표시되며, 답은 질문을 할 때까지 숨겨져 있습니다.

자신의 작업을 유지

무료 계정은 모든 수업에 노트를 추가, 당신이 완료 한 기록, 당신이 해결 한 문제를 한 곳에, 그리고 당신이이 페이지에 대해 물어 수업 지도자. 수학 자체는 모두에게 열려 있습니다, 로그인 여부.

가입하기 로그인

여기서 사용된 기호

기호를 탭하면 전체 정의, 이미지 및 각 문자의 의미를 확인할 수 있습니다.

어떻게: 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.

사람들이 묻는 질문

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.

에 더 Fluid Dynamics