# Derivation of the Navier–Stokes equations

The intent of this article is to highlight the important points of the derivation of the Navier–Stokes equations as well as the application and formulation for different families of fluids.

## Basic assumptions

The Navier–Stokes equations are based on the assumption that the fluid, at the scale of interest, is a continuum, in other words is not made up of discrete particles but rather a continuous substance. Another necessary assumption is that all the fields of interest like pressure, flow velocity, density, and temperature are differentiable, weakly at least.

The equations are derived from the basic principles of conservation of mass, momentum, and energy. For that matter, sometimes it is necessary to consider a finite arbitrary volume, called a control volume, over which these principles can be applied. This finite volume is denoted by $\Omega$ and its bounding surface $\partial \Omega$. The control volume can remain fixed in space or can move with the fluid.

## The material derivative

Main article: material derivative

Changes in properties of a moving fluid can be measured in two different ways. One can measure a given property by either carrying out the measurement on a fixed point in space as particles of the fluid pass by, or by following a parcel of fluid along its streamline. The derivative of a field with respect to a fixed position in space is called the Eulerian derivative while the derivative following a moving parcel is called the advective or material ("Lagrangian" [1]) derivative.

The material derivative is defined as the operator:

$\frac{D}{Dt} \ \stackrel{\mathrm{def}}{=}\ \frac{\partial}{\partial t} + \mathbf{u}\cdot\nabla$

where $\mathbf{u}$ is the flow velocity. The first term on the right-hand side of the equation is the ordinary Eulerian derivative (i.e. the derivative on a fixed reference frame, representing changes at a point with respect to time) whereas the second term represents changes of a quantity with respect to position (see advection). This "special" derivative is in fact the ordinary derivative of a function of many variables along a path following the fluid motion; it may be derived through application of the chain rule in which all independent variables are checked for change along the path (i.e. the total derivative).

For example, the measurement of changes in wind velocity in the atmosphere can be obtained with the help of an anemometer in a weather station or by observing the movement of a weather balloon. The anemometer in the first case is measuring the velocity of all the moving particles passing through a fixed point in space, whereas in the second case the instrument is measuring changes in velocity as it moves with the flow.

## Conservation laws

The Navier–Stokes equation is a special case of the (general) continuity equation. It, and associated equations such as mass continuity, may be derived from conservation principles of:

This is done via the Reynolds transport theorem, an integral solution relation stating that the sum of the changes of some intensive property (call it $L$) defined over a control volume $\Omega$ must be equal to what is lost (or gained) through the boundaries of the volume plus what is created/consumed by sources and sinks inside the control volume. This is expressed by the following integral equation:

$\frac{d}{dt}\int_{\Omega} L \ dV = -\int_{\partial\Omega} L\mathbf{u\cdot n} \ dA - \int_{\Omega} Q \ dV$

where u is the flow velocity of the fluid and $Q$ represents the sources and sinks in the fluid, taking the sinks as positive. Recall that $\Omega$ represents the control volume and $\partial \Omega$ its bounding surface.

The divergence theorem may be applied to the surface integral, changing it into a volume integral:

$\frac{d}{d t} \int_{\Omega} L \ dV = -\int_{\Omega} \nabla \cdot ( L\mathbf u) \ dV - \int_{\Omega} Q \ dV.$

Applying Leibniz's rule to the integral on the left and then combining all of the integrals:

$\int_{\Omega} \frac{\partial L}{\partial t} \ dV = - \int_{\Omega}\nabla \cdot (L\mathbf u) \ dV - \int_{\Omega} Q \ dV \qquad \Rightarrow \qquad \int_{\Omega} \left( \frac{\partial L}{\partial t} + \nabla \cdot (L\mathbf u) + Q\ \right) dV = 0.$

The integral must be zero for any control volume; this can only be true if the integrand itself is zero, so that:

$\frac{\partial L}{\partial t} + \nabla \cdot (L\mathbf u) + Q = 0.$

From this valuable relation (a very generic continuity equation), three important concepts may be concisely written: conservation of mass, conservation of momentum, and conservation of energy. Validity is retained if $L$ is a vector, in which case the vector-vector product in the second term will be a dyad.

### Conservation of momentum

The most elemental form of the Navier–Stokes equations is obtained when the conservation relation is applied to momentum. Writing momentum as $\rho \mathbf u$ gives:

$\frac{\partial}{\partial t}(\rho \mathbf u) + \nabla \cdot (\rho \mathbf u \mathbf u) + \mathbf{Q} = 0$

where $\mathbf u \mathbf u$ is a dyad, a special case of tensor product, which results in a second rank tensor; the divergence of a second rank tensor is again a vector (a first rank tensor).[2] Noting that a body force (notated $\mathbf{b}$) is a source or sink of momentum (per volume) and expanding the derivatives completely:

$\mathbf u \frac{\partial \rho}{\partial t} + \rho \frac{\partial \mathbf u}{\partial t} + \mathbf u \mathbf u \cdot \nabla \rho + \rho \mathbf u \cdot \nabla \mathbf u + \rho \mathbf u \nabla \cdot \mathbf u = \mathbf{b}$

Note that the gradient of a vector is a special case of the covariant derivative, the operation results in second rank tensors;[2] except in Cartesian coordinates, it's important to understand that this isn't simply an element by element gradient. Rearranging and recognizing that $\mathbf u \cdot \nabla \rho + \rho \nabla \cdot \mathbf u = \nabla \cdot (\rho \mathbf u)$:

$\mathbf u \left(\frac{\partial \rho}{\partial t} + \mathbf u \cdot \nabla \rho + \rho \nabla \cdot \mathbf u\right) + \rho \left(\frac{\partial \mathbf u}{\partial t} + \mathbf u \cdot \nabla \mathbf u\right) = \mathbf{b}$
$\mathbf u \left(\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \mathbf u)\right) + \rho \left(\frac{\partial \mathbf u}{\partial t} + \mathbf u \cdot \nabla \mathbf u\right) = \mathbf{b}$

The leftmost expression enclosed in parentheses is, by mass continuity (shown in a moment), equal to zero. Noting that what remains on the right side of the equation is the convective derivative:

$\rho \left(\frac{\partial \mathbf u}{\partial t} + \mathbf u \cdot \nabla \mathbf u\right) = \mathbf{b} \qquad \Rightarrow \qquad \rho\frac{D \mathbf u}{D t} = \mathbf{b}$

This appears to simply be an expression of Newton's second law (F = ma) in terms of body forces instead of point forces. Each term in any case of the Navier–Stokes equations is a body force. A shorter though less rigorous way to arrive at this result would be the application of the chain rule to acceleration:

$\rho \frac{d}{d t}(\mathbf u(x, y, z, t)) = \mathbf{b} \qquad \Rightarrow \qquad \rho \left( \frac{\partial \mathbf u}{\partial t} + \frac{\partial \mathbf u}{\partial x}\frac{d x}{d t} + \frac{\partial \mathbf u}{\partial y}\frac{d y}{d t} + \frac{\partial \mathbf u}{\partial z}\frac{d z}{d t} \right) = \mathbf{b} \qquad \Rightarrow$
$\rho \left( \frac{\partial \mathbf u}{\partial t} + u \frac{\partial \mathbf u}{\partial x} + v \frac{\partial \mathbf u}{\partial y} + w \frac{\partial \mathbf u}{\partial z} \right) = \mathbf{b} \qquad \Rightarrow \qquad \rho \left(\frac{\partial \mathbf u}{\partial t} + \mathbf u \cdot \nabla \mathbf u\right) = \mathbf{b}$

where $\mathbf u = (u, v, w)$. The reason why this is "less rigorous" is that we haven't shown that picking $\mathbf u = \left(\frac{d x}{d t}, \frac{d y}{d t}, \frac{d z}{d t}\right)$ is correct; however it does make sense since with that choice of path the derivative is "following" a fluid "particle", and in order for Newton's second law to work, forces must be summed following a particle. For this reason the convective derivative is also known as the particle derivative.

### Conservation of mass

Mass may be considered also. Taking $Q = 0$ (no sources or sinks of mass) and putting in density:

$\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \mathbf{u}) = 0$

where $\rho$ is the mass density (mass per unit volume), and $\mathbf{u}$ is the flow velocity. This equation is called the mass continuity equation, or simply "the" continuity equation. This equation generally accompanies the Navier–Stokes equation.

In the case of an incompressible fluid, $\rho$ is a constant and the equation reduces to:

$\nabla\cdot\mathbf{u} = 0$

which is in fact a statement of the conservation of volume.

## General form of the equations of motion

The generic body force $\mathbf{b}$ seen previously is made specific first by breaking it up into two new terms, one to describe forces resulting from stresses and one for "other" forces such as gravity. By examining the forces acting on a small cube in a fluid, it may be shown that

$\rho\frac{D\mathbf u}{D t} = \nabla \cdot \boldsymbol{\sigma} + \mathbf{f}$

where $\boldsymbol{\sigma}$ is the Cauchy stress tensor, and $\mathbf{f}$ accounts for other body forces present. This equation is called the Cauchy momentum equation and describes the non-relativistic momentum conservation of any continuum that conserves mass. $\boldsymbol{\sigma}$ is a rank two symmetric tensor given by its covariant components. In orthogonal cohordinates in three dimensions it is represented as the 3x3 matrix:

$\sigma_{ij} = \begin{pmatrix} \sigma_{xx} & \tau_{xy} & \tau_{xz} \\ \tau_{yx} & \sigma_{yy} & \tau_{yz} \\ \tau_{zx} & \tau_{zy} & \sigma_{zz} \end{pmatrix}$

where the $\sigma$ are normal stresses and $\tau$ shear stresses. This matrix is split up into two terms:

$\sigma_{ij} = \begin{pmatrix} \sigma_{xx} & \tau_{xy} & \tau_{xz} \\ \tau_{yx} & \sigma_{yy} & \tau_{yz} \\ \tau_{zx} & \tau_{zy} & \sigma_{zz} \end{pmatrix} = -\begin{pmatrix} \pi &0&0\\ 0&\pi &0\\ 0&0&\pi \end{pmatrix} + \begin{pmatrix} \sigma_{xx}+\pi & \tau_{xy} & \tau_{xz} \\ \tau_{yx} & \sigma_{yy}+\pi & \tau_{yz} \\ \tau_{zx} & \tau_{zy} & \sigma_{zz}+\pi \end{pmatrix} = -\pi I + \boldsymbol \tau$

where $I$ is the 3 x 3 identity matrix and $\boldsymbol \tau$ is the deviatoric stress tensor. Note that the mechanical pressure π is equal to minus the mean normal stress:[3]

$\pi = -\frac{1}{3} \left( \sigma_{xx} + \sigma_{yy} + \sigma_{zz} \right).$

The motivation for doing this is that pressure is typically a variable of interest, and also this simplifies application to specific fluid families later on since the rightmost tensor $\boldsymbol \tau$ in the equation above must be zero for a fluid at rest. Note that $\boldsymbol \tau$ is traceless. The Navier–Stokes equation may now be written in the most general form:

$\rho\frac{D\mathbf u}{D t} = -\nabla \pi + \nabla \cdot\boldsymbol \tau + \mathbf{f}$

This equation is still incomplete. For completion, one must make hypotheses on the forms of $\boldsymbol \tau$ and $\pi$, that is, one needs a constitutive law for the stress tensor which can be obtained for specific fluid families and on the pressure; additionally, if the flow is assumed compressible an equation of state will be required, which will likely further require a conservation of energy formulation.

## Application to different fluids

The general form of the equations of motion is not "ready for use", the stress tensor is still unknown so that more information is needed; this information is normally some knowledge of the viscous behavior of the fluid. For different types of fluid flow this results in specific forms of the Navier–Stokes equations.

### Newtonian fluid

Main article: Newtonian fluid

#### Compressible Newtonian fluid

The formulation for Newtonian fluids stems from an observation made by Newton that, for most fluids,

$\tau \propto \frac{\partial u}{\partial y}$

In order to apply this to the Navier–Stokes equations, three assumptions were made by Stokes:

• The stress tensor is a linear function of the strain rates.
• The fluid is isotropic.
• For a fluid at rest, $\nabla \cdot \boldsymbol \tau$ must be zero (so that hydrostatic pressure results).

Applying these assumptions will lead to:

$\tau_{ij} = \mu\left(\frac{\partial u_i}{\partial x_j} + \frac{\partial u_j}{\partial x_i} - \tfrac{2}{3} \delta_{ij} \frac{\partial u_k}{\partial x_k} \right) + \delta_{ij} \lambda \frac{\partial u_k}{\partial x_k}$

That is, the deviatoric of the deformation rate tensor is identified to the deviatoric of the stress tensor, up to a factor μ.[4]

$\delta_{ij}$ is the Kronecker delta. μ and λ are proportionality constants associated with the assumption that stress depends on strain linearly; μ is called the first coefficient of viscosity (usually just called "viscosity") and λ is the second coefficient of viscosity (related to bulk viscosity). The value of λ, which produces a viscous effect associated with volume change, is very difficult to determine, not even its sign is known with absolute certainty. Even in compressible flows, the term involving λ is often negligible; however it can occasionally be important even in nearly incompressible flows and is a matter of controversy. When taken nonzero, the most common approximation is λ ≈ - ⅔ μ.[5]

A straightforward substitution of $\tau_{ij}$ into the momentum conservation equation will yield the Navier–Stokes equations for a compressible Newtonian fluid:

$\rho \left(\frac{\partial u}{\partial t} + u \frac{\partial u}{\partial x} + v \frac{\partial u}{\partial y} + w \frac{\partial u}{\partial z}\right) = -\frac{\partial p}{\partial x} + \frac{\partial}{\partial x}\left(2 \mu \frac{\partial u}{\partial x} - \frac{2\mu}{3} \nabla \cdot \mathbf u\right) + \frac{\partial}{\partial y}\left(\mu\left(\frac{\partial u}{\partial y} + \frac{\partial v}{\partial x}\right)\right) + \frac{\partial}{\partial z}\left(\mu\left(\frac{\partial u}{\partial z} + \frac{\partial w}{\partial x}\right)\right) + \rho g_x$
$\rho \left(\frac{\partial v}{\partial t} + u \frac{\partial v}{\partial x} + v \frac{\partial v}{\partial y}+ w \frac{\partial v}{\partial z}\right) = -\frac{\partial p}{\partial y} + \frac{\partial}{\partial x}\left(\mu\left(\frac{\partial v}{\partial x} + \frac{\partial u}{\partial y}\right)\right) + \frac{\partial}{\partial y}\left(2 \mu \frac{\partial v}{\partial y} - \frac{2\mu}{3} \nabla \cdot \mathbf u\right) + \frac{\partial}{\partial z}\left(\mu\left(\frac{\partial v}{\partial z} + \frac{\partial w}{\partial y}\right)\right) + \rho g_y$
$\rho \left(\frac{\partial w}{\partial t} + u \frac{\partial w}{\partial x} + v \frac{\partial w}{\partial y}+ w \frac{\partial w}{\partial z}\right) = -\frac{\partial p}{\partial z} + \frac{\partial}{\partial x}\left(\mu\left(\frac{\partial w}{\partial x} + \frac{\partial u}{\partial z}\right)\right) + \frac{\partial}{\partial y}\left(\mu\left(\frac{\partial w}{\partial y} + \frac{\partial v}{\partial z}\right)\right) + \frac{\partial}{\partial z}\left(2 \mu \frac{\partial w}{\partial z} - \frac{2\mu}{3} \nabla \cdot \mathbf u\right) + \rho g_z$

or, more compactly in vector form,

$\rho \left(\frac{\partial \mathbf u}{\partial t} + \mathbf u \cdot \nabla \mathbf u\right) = -\nabla p + \nabla \cdot \left(\mu (\nabla \mathbf u + (\nabla \mathbf u)^T)\right) + \nabla \left( - \frac{2\mu}{3}\nabla \cdot \mathbf u\right) + \rho \mathbf{g}$

where the transpose has been used. Gravity has been accounted for as "the" body force, i.e. $\mathbf{f} = \rho \mathbf{g}$. The associated mass continuity equation is:

$\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \mathbf u) = 0$

In addition to this equation, an equation of state and an equation for the conservation of energy is needed. The equation of state to use depends on context (often the ideal gas law), the conservation of energy will read:

$\rho \frac{D h}{D t} = \frac{D p}{D t} + \nabla \cdot (k \nabla T) + \Phi$

Here, $h$ is the enthalpy, $T$ is the temperature, and $\Phi$ is a function representing the dissipation of energy due to viscous effects:

$\Phi = \mu \left(2\left(\frac{\partial u}{\partial x}\right)^2 + 2\left(\frac{\partial v}{\partial y}\right)^2 + 2\left(\frac{\partial w}{\partial z}\right)^2 + \left(\frac{\partial v}{\partial x} + \frac{\partial u}{\partial y}\right)^2 + \left(\frac{\partial w}{\partial y} + \frac{\partial v}{\partial z}\right)^2 + \left(\frac{\partial u}{\partial z} + \frac{\partial w}{\partial x}\right)^2\right) + \lambda (\nabla \cdot \mathbf u)^2$

With a good equation of state and good functions for the dependence of parameters (such as viscosity) on the variables, this system of equations seems to properly model the dynamics of all known gases and most liquids.

#### Incompressible Newtonian fluid

For the special (but very common) case of incompressible flow, the momentum equations simplify significantly. Taking into account the following assumptions:

• Viscosity $\mu$ will now be a constant
• The second viscosity effect $\lambda = 0$
• The simplified mass continuity equation $\nabla \cdot \mathbf u = 0$

then looking at the viscous terms of the $x$ momentum equation for example we have:

\begin{align} &\frac{\partial}{\partial x}\left(2 \mu \frac{\partial u}{\partial x} + \lambda \nabla \cdot \mathbf u\right) + \frac{\partial}{\partial y}\left(\mu\left(\frac{\partial u}{\partial y} + \frac{\partial v}{\partial x}\right)\right) + \frac{\partial}{\partial z}\left(\mu\left(\frac{\partial u}{\partial z} + \frac{\partial w}{\partial x}\right)\right) \\ \\ & = 2 \mu \frac{\partial^2 u}{\partial x^2} + \mu \frac{\partial^2 u}{\partial y^2} + \mu \frac{\partial^2 v}{\partial y \, \partial x} + \mu \frac{\partial^2 u}{\partial z^2} + \mu \frac{\partial^2 w}{\partial z \, \partial x} \\ \\ & = \mu \frac{\partial^2 u}{\partial x^2} + \mu \frac{\partial^2 u}{\partial y^2} + \mu \frac{\partial^2 u}{\partial z^2} + \mu \frac{\partial^2 u}{\partial x^2} + \mu \frac{\partial^2 v}{\partial y \, \partial x} + \mu \frac{\partial^2 w}{\partial z \, \partial x} \\ \\ & = \mu \nabla^2 u + \mu \frac{\partial}{\partial x} \cancelto{0}{\left(\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} + \frac{\partial w}{\partial z}\right)} = \mu \nabla^2 u \end{align}\,

Similarly for the $y$ and $z$ momentum directions we have $\mu \nabla^2 v$ and $\mu \nabla^2 w$.

### Non-Newtonian fluids

Main article: Non-Newtonian fluid

A non-Newtonian fluid is a fluid whose flow properties differ in any way from those of Newtonian fluids. Most commonly the viscosity of non-Newtonian fluids is not independent of shear rate or shear rate history. However, there are some non-Newtonian fluids with shear-independent viscosity, that nonetheless exhibit normal stress-differences or other non-Newtonian behaviour. Many salt solutions and molten polymers are non-Newtonian fluids, as are many commonly found substances such as ketchup, custard, toothpaste, starch suspensions, paint, blood, and shampoo. In a Newtonian fluid, the relation between the shear stress and the shear rate is linear, passing through the origin, the constant of proportionality being the coefficient of viscosity. In a non-Newtonian fluid, the relation between the shear stress and the shear rate is different, and can even be time-dependent. The study of the non-Newtonian fluids is usually called rheology. A few examples are given here.

### Bingham fluid

Main article: Bingham plastic

In Bingham fluids, the situation is slightly different:

$\frac{\partial u}{\partial y} = \left\{ \begin{matrix} 0 &, \quad \tau < \tau_0 \\ (\tau - \tau_0)/ {\mu} &, \quad \tau \ge \tau_0 \end{matrix}\right.$

These are fluids capable of bearing some shear before they start flowing. Some common examples are toothpaste and clay.

### Power-law fluid

Main article: Power-law fluid

A power law fluid is an idealised fluid for which the shear stress, $\tau$, is given by

$\tau = K \left(\frac{\partial u}{\partial y}\right)^n$

This form is useful for approximating all sorts of general fluids, including shear thinning (such as latex paint) and shear thickening (such as corn starch water mixture).

## Stream function formulation

In the analysis of a flow, it is often desirable to reduce the number of equations or the number of variables being dealt with, or both. The incompressible Navier-Stokes equation with mass continuity (four equations in four unknowns) can, in fact, be reduced to a single equation with a single dependent variable in 2D, or one vector equation in 3D. This is enabled by two vector calculus identities:

$\nabla \times (\nabla \phi) = 0$
$\nabla \cdot (\nabla \times \mathbf{A}) = 0$

for any differentiable scalar $\phi$ and vector $\mathbf{A}$. The first identity implies that any term in the Navier-Stokes equation that may be represented as the gradient of a scalar will disappear when the curl of the equation is taken. Commonly, pressure and gravity are what eliminate, resulting in (this is true in 2D as well as 3D):

$\nabla \times \left(\frac{\partial \mathbf u}{\partial t} + \mathbf u \cdot \nabla \mathbf u\right) = \nu \nabla \times (\nabla^2 \mathbf u)$

where it's assumed that all body forces are describable as gradients (true for gravity), and density has been divided so that viscosity becomes kinematic viscosity.

The second vector calculus identity above states that the divergence of the curl of a vector field is zero. Since the (incompressible) mass continuity equation specifies the divergence of flow velocity being zero, we can replace the flow velocity with the curl of some vector $\vec \psi$ so that mass continuity is always satisfied:

$\nabla \cdot \mathbf u = 0 \quad \Rightarrow \quad \nabla \cdot (\nabla \times \vec \psi) = 0 \quad \Rightarrow \quad 0 = 0$

So, as long as flow velocity is represented through $\mathbf u = \nabla \times \vec \psi$, mass continuity is unconditionally satisfied. With this new dependent vector variable, the Navier-Stokes equation (with curl taken as above) becomes a single fourth order vector equation, no longer containing the unknown pressure variable and no longer dependent on a separate mass continuity equation:

$\nabla \times \left(\frac{\partial}{\partial t}(\nabla \times \vec \psi) + (\nabla \times \vec \psi) \cdot \nabla (\nabla \times \vec \psi)\right) = \nu \nabla \times (\nabla^2 (\nabla \times \vec \psi))$

Apart from containing fourth order derivatives, this equation is fairly complicated, and is thus uncommon. Note that if the cross differentiation is left out, the result is a third order vector equation containing an unknown vector field (the gradient of pressure) that may be determined from the same boundary conditions that one would apply to the fourth order equation above.

### 2D flow in orthogonal coordinates

The true utility of this formulation is seen when the flow is two dimensional in nature and the equation is written in a general orthogonal coordinate system, in other words a system where the basis vectors are orthogonal. Note that this by no means limits application to Cartesian coordinates, in fact most of the common coordinates systems are orthogonal, including familiar ones like cylindrical and obscure ones like toroidal.

The 3D flow velocity is expressed as (note that the discussion has been coordinate free up till now):

$\mathbf u = u_1 \mathbf e_1 + u_2 \mathbf e_2 + u_3 \mathbf e_3$

where $\mathbf e_i$ are basis vectors, not necessarily constant and not necessarily normalized, and $u_i$ are flow velocity components; let also the coordinates of space be $(x_1, x_2, x_3)$.

Now suppose that the flow is 2D. This doesn't mean the flow is in a plane, rather it means that the component of flow velocity in one direction is zero and the remaining components are independent of the same direction. In that case (take component 3 to be zero):

$\mathbf u = u_1 \mathbf e_1 + u_2 \mathbf e_2$
$\frac{\partial u_1}{\partial x_3} = \frac{\partial u_2}{\partial x_3} = 0$

The vector function $\vec \psi$ is still defined via:

$\mathbf u = \nabla \times \vec \psi$

but this must simplify in some way also since the flow is assumed 2D. If orthogonal coordinates are assumed, the curl takes on a fairly simple form, and the equation above expanded becomes:

$u_1 \mathbf e_1 + u_2 \mathbf e_2 = \frac{\mathbf{e}_{1}}{h_{2} h_{3}} \left[ \frac{\partial}{\partial x_{2}} \left( h_{3} \psi_{3} \right) - \frac{\partial}{\partial x_{3}} \left( h_{2} \psi_{2} \right) \right] + \frac{\mathbf{e}_{2}}{h_{3} h_{1}} \left[ \frac{\partial}{\partial x_{3}} \left( h_{1} \psi_{1} \right) - \frac{\partial}{\partial x_{1}} \left( h_{3} \psi_{3} \right) \right] + \frac{\mathbf{e}_{3}}{h_{1} h_{2}} \left[ \frac{\partial}{\partial x_{1}} \left( h_{2} \psi_{2} \right) - \frac{\partial}{\partial x_{2}} \left( h_{1} \psi_{1} \right) \right]$

Examining this equation shows that we can set $\psi_1 = \psi_2 = 0$ and retain equality with no loss of generality, so that:

$u_1 \mathbf e_1 + u_2 \mathbf e_2 = \frac{\mathbf{e}_{1}}{h_{2} h_{3}} \frac{\partial}{\partial x_{2}} \left( h_{3} \psi_{3} \right) - \frac{\mathbf{e}_{2}}{h_{3} h_{1}} \frac{\partial}{\partial x_{1}} \left( h_{3} \psi_{3} \right)$

the significance here is that only one component of $\vec \psi$ remains, so that 2D flow becomes a problem with only one dependent variable. The cross differentiated Navier–Stokes equation becomes two 0 = 0 equations and one meaningful equation.

The remaining component $\psi_3 = \psi$ is called the stream function. The equation for $\psi$ can simplify since a variety of quantities will now equal zero, for example:

$\nabla \cdot \vec \psi = \frac{1}{h_{1} h_{2} h_{3}} \frac{\partial}{\partial x_3} \left(\psi h_1 h_2\right) = 0$

if the scale factors $h_1$ and $h_2$ also are independent of $x_3$. Also, from the definition of the vector Laplacian

$\nabla \times (\nabla \times \vec \psi) = \nabla(\nabla \cdot \vec \psi) - \nabla^2 \vec \psi = -\nabla^2 \vec \psi$

Manipulating the cross differentiated Navier–Stokes equation using the above two equations and a variety of identities[6] will eventually yield the 1D scalar equation for the stream function:

$\frac{\partial}{\partial t}(\nabla^2 \psi) + (\nabla \times \vec \psi) \cdot \nabla(\nabla^2 \psi) = \nu \nabla^4 \psi$

where $\nabla^4$ is the biharmonic operator. This is very useful because it is a single self-contained scalar equation that describes both momentum and mass conservation in 2D. The only other equations that this partial differential equation needs are initial and boundary conditions.

The assumptions for the stream function equation are listed below:

• The flow is incompressible and Newtonian.
• Coordinates are orthogonal.
• Flow is 2D: $u_3 = \frac{\partial u_1}{\partial x_3} = \frac{\partial u_2}{\partial x_3} = 0$
• The first two scale factors of the coordinate system are independent of the last coordinate: $\frac{\partial h_1}{\partial x_3} = \frac{\partial h_2}{\partial x_3} = 0$, otherwise extra terms appear.

The stream function has some useful properties:

• Since $-\nabla^2 \vec \psi = \nabla \times (\nabla \times \vec \psi) = \nabla \times \mathbf u$, the vorticity of the flow is just the negative of the Laplacian of the stream function.
• The level curves of the stream function are streamlines.

## The stress tensor

The derivation of the Navier-Stokes equation involves the consideration of forces acting on fluid elements, so that a quantity called the stress tensor appears naturally in the Cauchy momentum equation. Since the divergence of this tensor is taken, it is customary to write out the equation fully simplified, so that the original appearance of the stress tensor is lost.

However, the stress tensor still has some important uses, especially in formulating boundary conditions at fluid interfaces. Recalling that $\sigma = -\pi I + \boldsymbol \tau$, for a Newtonian fluid the stress tensor is:

$\sigma_{ij} = -p\delta_{ij}+ \mu\left(\frac{\partial u_i}{\partial x_j} + \frac{\partial u_j}{\partial x_i}\right) + \delta_{ij} \lambda \nabla \cdot \mathbf u.$

If the fluid is assumed to be incompressible, the tensor simplifies significantly:

\begin{align} \sigma &= -\begin{pmatrix} p&0&0\\ 0&p&0\\ 0&0&p \end{pmatrix} + \mu \begin{pmatrix} 2 \displaystyle{\frac{\partial u}{\partial x}} & \displaystyle{\frac{\partial u}{\partial y} + \frac{\partial v}{\partial x}} &\displaystyle{ \frac{\partial u}{\partial z} + \frac{\partial w}{\partial x}} \\ \displaystyle{\frac{\partial v}{\partial x} + \frac{\partial u}{\partial y}} & 2 \displaystyle{\frac{\partial v}{\partial y}} & \displaystyle{\frac{\partial v}{\partial z} + \frac{\partial w}{\partial y}} \\ \displaystyle{\frac{\partial w}{\partial x} + \frac{\partial u}{\partial z}} & \displaystyle{\frac{\partial w}{\partial y} + \frac{\partial v}{\partial z}} & 2\displaystyle{\frac{\partial w}{\partial z}} \end{pmatrix} \\ &= -p I + \mu (\nabla \mathbf u + (\nabla \mathbf u)^T) = -p I + 2 \mu e\\ \end{align}

$e$ is the strain rate tensor, by definition:

$e_{ij} = \frac{1}{2}\left(\frac{\partial u_i}{\partial x_j} + \frac{\partial u_j}{\partial x_i}\right).$

## Notes

1. ^ Munson, Bruce R. Fundamentals of Fluid Mechanics. 7th. Jefferson City: John Wiley and Sons, Inc., 2013. Print.
2. ^ a b Lebedev, Leonid P. (2003). Tensor Analysis. World Scientific. ISBN 981-238-360-3.
3. ^ Batchelor 2000, pp. 141.
4. ^ Landau and Lifshitz, Fluid Mechanics, Second Edition: Volume 6 (Course of Theoretical Physics) page 45
5. ^ Batchelor 2000, pp. 144.
6. ^ Eric W. Weisstein. "Vector Derivative". MathWorld. Retrieved 2008-06-07.