Navier–Stokes equations

<templatestyles src="Multiple image/styles.css" wrapper=".tmulti"></templatestyles>

In physics, the **Navier–Stokes equations** (/nævˈjeɪ stoʊks/) are a set of partial differential equations which describe the motion of viscous fluid substances, named after French engineer and physicist Claude-Louis Navier and Anglo-Irish physicist and mathematician George Gabriel Stokes.

The Navier–Stokes equations mathematically express conservation of momentum and conservation of mass for Newtonian fluids. They are sometimes accompanied by an equation of state relating pressure, temperature and density. They arise from applying Isaac Newton's second law to fluid motion, together with the assumption that the stress in the fluid is the sum of a diffusing viscous term (proportional to the gradient of velocity) and a pressure term—hence describing *viscous flow*. The difference between them and the closely related Euler equations is that Navier–Stokes equations take viscosity into account while the Euler equations model only inviscid flow. As a result, the Navier–Stokes are a parabolic equation and therefore have better analytic properties, at the expense of having less mathematical structure (e.g. they are never completely integrable).

The Navier–Stokes equations are useful because they describe the physics of many phenomena of scientific and engineering interest. They may be used to model the weather, ocean currents, water flow in a pipe and air flow around a wing. The Navier–Stokes equations, in their full and simplified forms, help with the design of aircraft and cars, the study of blood flow, the design of power stations, the analysis of pollution, and many other things. Coupled with Maxwell's equations, they can be used to model and study magnetohydrodynamics.

The Navier–Stokes equations are also of great interest in a purely mathematical sense. Despite their wide range of practical uses, it has not yet been proven whether smooth solutions always exist in three dimensions – i.e. they are infinitely differentiable (or even just bounded) at all points in the domain. This is called the Navier–Stokes existence and smoothness problem. The Clay Mathematics Institute has called this one of the seven most important open problems in mathematics and has offered a US$ 1 million prize for a solution or a counterexample.

## Flow velocity

The solution of the equations is a flow velocity. It is a vector field—to every point in a fluid, at any moment in a time interval, it gives a vector whose direction and magnitude are those of the velocity of the fluid at that point in space and at that moment in time. It is usually studied in three spatial dimensions and one time dimension, although two (spatial) dimensional and steady-state cases are often used as models, and higher-dimensional analogues are studied in both pure and applied mathematics. Once the velocity field is calculated, other quantities of interest such as pressure or temperature may be found using dynamical equations and relations. This is different from what one normally sees in classical mechanics, where solutions are typically trajectories of position of a particle or deflection of a continuum. Studying velocity instead of position makes more sense for a fluid; however for visualization purposes one can compute various trajectories. In particular, the streamlines of a vector field, interpreted as flow velocity, are the paths along which a massless fluid particle would travel. These paths are the integral curves whose derivative at each point is equal to the vector field, and they can represent visually the behavior of the vector field at a point in time.

## General continuum equations

Main articles: Derivation of the Navier–Stokes equations
See also: Cauchy momentum equation#Conservation form
The Navier–Stokes momentum equation can be derived as a particular form of the Cauchy momentum equation, whose general convective form is

D

u

D
t

=

1
ρ

∇
⋅
σ

g

{\displaystyle \frac{D \mathbf{u}}{D t} = \frac 1 \rho \nabla \cdot \boldsymbol{\sigma} + \mathbf{g}}

by setting the Cauchy stress tensor **σ** to be the sum of a viscosity term **τ** (the deviatoric stress) and a pressure term −*p***I** (volumetric stress) we arrive at

ρ

D

u

D
t

=
−
∇
p
∇
⋅
τ
ρ

g

{\displaystyle
\rho\frac{D\mathbf{u}}{Dt} = - \nabla p + \nabla \cdot \boldsymbol \tau + \rho\,\mathbf{g}
}

where

* *D**Dt* is the material derivative, defined as ∂∂*t* + **u** ⋅ ∇,
* *ρ* is the density,
* **u** is the flow velocity,
* ∇ ⋅ is the divergence,
* *p* is the pressure,
* *t* is time,
* **τ** is the deviatoric stress tensor, which has order 2,
* **g** represents body accelerations acting on the continuum, for example gravity, inertial accelerations, electrostatic accelerations, and so on,

In this form, it is apparent that in the assumption of an inviscid fluid – no deviatoric stress – Cauchy equations reduce to the Euler equations.

Assuming conservation of mass we can use the mass continuity equation (or simply continuity equation),

∂
ρ

∂
t

∇
⋅
(
ρ

u

# )
0

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

to arrive to the conservation form of the equations of motion. This is often written:

∂

∂
t

(
ρ

u

)
∇
⋅
(
ρ

u

⊗

u

# )
−
∇
p
∇
⋅
τ
ρ

g

{\displaystyle
\frac {\partial}{\partial t} (\rho\,\mathbf{u})
 + \nabla \cdot (\rho\,\mathbf{u} \otimes \mathbf{u})
 = - \nabla p + \nabla \cdot \boldsymbol \tau + \rho\,\mathbf{g}
}

where ⊗ is the outer product:

u

⊗

v

=

u

v

T

.

{\displaystyle \mathbf u \otimes \mathbf v = \mathbf u \mathbf v^{\mathrm T}.}

The left side of the equation describes acceleration, and may be composed of time-dependent and convective components (also the effects of non-inertial coordinates if present). The right side of the equation is in effect a summation of hydrostatic effects, the divergence of deviatoric stress and body forces (such as gravity).

All non-relativistic balance equations, such as the Navier–Stokes equations, can be derived by beginning with the Cauchy equations and specifying the stress tensor through a constitutive relation. By expressing the deviatoric (shear) stress tensor in terms of viscosity and the fluid velocity gradient, and assuming constant viscosity, the above Cauchy equations will lead to the Navier–Stokes equations below.

### Convective acceleration

See also: Cauchy momentum equation#Convective acceleration

A significant feature of the Cauchy equation and consequently all other continuum equations (including Euler and Navier–Stokes) is the presence of convective acceleration: the effect of acceleration of a flow with respect to space. While individual fluid particles indeed experience time-dependent acceleration, the convective acceleration of the flow field is a spatial effect, one example being fluid speeding up in a nozzle.

## Compressible flow

Remark: here, the Cauchy stress tensor is denoted **σ** (instead of **τ** as it was in the general continuum equations and in the incompressible flow section).

The compressible momentum Navier–Stokes equation results from the following assumptions on the Cauchy stress tensor:

* the stress is **Galilean invariant**: it does not depend directly on the flow velocity, but only on spatial derivatives of the flow velocity. So the stress variable is the tensor gradient ∇**u**.
* the stress is **linear** in this variable: **σ**(∇**u**) = **C** : (∇**u**), where **C** is the fourth-order tensor representing the constant of proportionality, called the viscosity or elasticity tensor, and : is the double-dot product.
* the fluid is assumed to be isotropic, as with gases and simple liquids, and consequently **V** is an isotropic tensor; furthermore, since the stress tensor is symmetric, by Helmholtz decomposition it can be expressed in terms of two scalar Lamé parameters, the bulk viscosity λ and the dynamic viscosity μ, as it is usual in linear elasticity:

# σ
λ
(
∇
⋅

u

)

I

2
μ
ε

{\displaystyle \boldsymbol \sigma = \lambda (\nabla\cdot\mathbf{u}) \mathbf I + 2 \mu \boldsymbol \varepsilon}

where **I** is the identity tensor, **ε**(∇**u**) ≡ 12∇**u** + 12(∇**u**)T is the rate-of-strain tensor and ∇ · **u** is the rate of expansion of the flow. So this decomposition can be explicitly defined as:

# σ
λ
(
∇
⋅

u

)

I

μ

(

∇

u

(
∇

u

)

T

)

.

{\displaystyle \boldsymbol \sigma = \lambda (\nabla\cdot\mathbf{u}) \mathbf I + \mu \left(\nabla\mathbf{u} + ( \nabla\mathbf{u} )^\mathrm{T}\right).}

Since the trace of the rate-of-strain tensor in three dimensions is:

tr
⁡
(
ε
# )
∇
⋅

u

.

{\displaystyle \operatorname{tr} (\boldsymbol \varepsilon) = \nabla\cdot\mathbf{u}.}

The trace of the stress tensor in three dimensions becomes:

tr
⁡
(
σ
# )
(
3
λ
2
μ
)
∇
⋅

u

.

{\displaystyle \operatorname{tr} (\boldsymbol \sigma) = (3 \lambda + 2 \mu )\nabla\cdot\mathbf{u}.}

So by alternatively decomposing the stress tensor into **isotropic** and **deviatoric** parts, as usual in fluid dynamics:

# σ

(

λ

2
3

μ

)

(

∇
⋅

u

)

I

μ

(

∇

u

(

∇

u

)

T

−

2
3

(

∇
⋅

u

)

I

)

{\displaystyle \boldsymbol \sigma = \left(\lambda + \tfrac23 \mu\right) \left(\nabla\cdot\mathbf{u}\right)\mathbf I + \mu \left(\nabla\mathbf{u} + \left( \nabla\mathbf{u} \right)^\mathrm{T} - \tfrac23 \left(\nabla\cdot\mathbf{u}\right)\mathbf I\right)}

Introducing the second viscosity ζ,

ζ
≡
λ

2
3

μ
,

{\displaystyle \zeta \equiv \lambda + \tfrac23 \mu ,}

we arrive to the linear constitutive equation in the form usually employed in thermal hydraulics:

# σ
ζ
(
∇
⋅

u

)

I

μ

(

∇

u

(
∇

u

)

T

−

2
3

(
∇
⋅

u

)

I

)

{\displaystyle \boldsymbol \sigma = \zeta (\nabla\cdot\mathbf{u}) \mathbf I + \mu \left(\nabla\mathbf{u} + ( \nabla\mathbf{u} )^\mathrm{T} - \tfrac23 (\nabla\cdot\mathbf{u})\mathbf I\right)}

Both second viscosity ζ and dynamic viscosity μ need not be constant – in general, they depend on density, on each other (the viscosity is expressed in pressure), and in compressible flows also on temperature. Any equation expliciting one of these transport coefficient in the conservation variables is called an equation of state.

The most general of the Navier-Stokes equations become

ρ

D

u

D
t

=
ρ

(

∂

u

∂
t

u

⋅
∇

u

)

=
−
∇
p
∇
⋅

{

μ

(

∇

u

(
∇

u

)

T

−

2
3

(
∇
⋅

u

)

I

)

ζ
(
∇
⋅

u

)

I

}

ρ

g

.

{\displaystyle \rho \frac{D\mathbf{u}}{D t} = \rho \left( \frac{\partial \mathbf{u}}{\partial t} + \mathbf{u} \cdot \nabla \mathbf{u} \right) = - \nabla p + \nabla \cdot \left\{ \mu \left(\nabla\mathbf{u} + ( \nabla\mathbf{u} )^\mathrm{T} - \tfrac23 (\nabla\cdot\mathbf{u})\mathbf I\right) + \zeta (\nabla\cdot\mathbf{u})\mathbf I\right\}+ \rho\mathbf{g} .}

In most cases, the second viscosity ζ can be assumed to be constant. The effect of the volume viscosity ζ is that the mechanical pressure is not equivalent to the thermodynamic pressure: Since

∇
⋅
(
∇
⋅

u

)

I

=
∇
(
∇
⋅

u

)
,

{\displaystyle \nabla\cdot(\nabla\cdot \mathbf u)\mathbf I=\nabla (\nabla \cdot \mathbf u),}

modified pressure is usually introduced

p
¯

≡
p
−
ζ

∇
⋅

u

,

{\displaystyle \bar{p} \equiv p - \zeta \, \nabla \cdot \mathbf{u} ,}

to remove the term corresponding to the second viscosity. This difference is usually neglected, sometimes by explicitly assuming *ζ* = 0, but it could have an impact in sound absorption and attenuation and shock waves. With this simplification, the Navier-Stokes equations become

ρ

D

u

D
t

=
ρ

(

∂

u

∂
t

u

⋅
∇

u

)

=
−
∇

p
¯

∇
⋅

{

μ

(

∇

u

(
∇

u

)

T

−

2
3

(
∇
⋅

u

)

I

)

}

ρ

g

.

{\displaystyle \rho \frac{D\mathbf{u}}{D t} = \rho \left( \frac{\partial \mathbf{u}}{\partial t} + \mathbf{u} \cdot \nabla \mathbf{u} \right) = - \nabla \bar p + \nabla \cdot \left\{ \mu \left(\nabla\mathbf{u} + ( \nabla\mathbf{u} )^\mathrm{T} - \tfrac23 (\nabla\cdot\mathbf{u})\mathbf I\right) \right\}+ \rho\mathbf{g} .}

If the dynamic viscosity μ is also assumed to be constant, the equations can be simplified further. By computing the divergence of the stress tensor, since the divergence of tensor ∇**u**  is ∇2**u**  and the divergence of tensor (∇**u**)T is  ∇(∇ · **u**), one finally arrives to the compressible (most general) Navier–Stokes momentum equation:

ρ

D

u

D
t

=
ρ

(

∂

u

∂
t

u

⋅
∇

u

)

=
−
∇

p
¯

μ

∇
2

u

1
3

μ

∇
(
∇
⋅

u

)
ρ

g

.

{\displaystyle \rho \frac{D\mathbf{u}}{D t} = \rho \left( \frac{\partial \mathbf{u}}{\partial t} + \mathbf{u} \cdot \nabla \mathbf{u} \right) = - \nabla \bar{p} + \mu \, \nabla^2 \mathbf u + \tfrac13 \mu \, \nabla (\nabla\cdot\mathbf{u}) + \rho\mathbf{g} .}

where *D**Dt* is the material derivative. The left-hand side changes in the conservation form of the Navier–Stokes momentum equation:

∂

∂
t

(
ρ

u

)
∇
⋅
(
ρ

u

⊗

u

# )
−
∇

p
¯

μ

∇
2

u

1
3

μ

∇
(
∇
⋅

u

)
ρ

g

.

{\displaystyle \frac {\partial}{\partial t} (\rho\,\mathbf{u})
 + \nabla \cdot (\rho\,\mathbf{u} \otimes \mathbf{u}) = - \nabla \bar{p} + \mu \, \nabla^2 \mathbf u + \tfrac13 \mu \, \nabla (\nabla\cdot\mathbf{u}) + \rho\mathbf{g} .}

Bulk viscosity is assumed to be constant, otherwise it should not be taken out of the last derivative. The convective acceleration term can also be written as

u

⋅
∇

u

=
(
∇
×

u

)
×

u

1
2

∇

u

2

{\displaystyle \mathbf u\cdot\nabla\mathbf u = (\nabla\times\mathbf u)\times\mathbf u + \tfrac12\nabla\mathbf u^2}

,
where the vector (∇ × **u**) × **u** is known as the Lamb vector.

For the special case of an incompressible flow, the pressure constrains the flow so that the volume of fluid elements is constant: isochoric flow resulting in a solenoidal velocity field with ∇ · **u** = 0.

## Incompressible flow

The incompressible momentum Navier–Stokes equation results from the following assumptions on the Cauchy stress tensor:

* the stress is **Galilean invariant**: it does not depend directly on the flow velocity, but only on spatial derivatives of the flow velocity. So the stress variable is the tensor gradient ∇**u**.
* the fluid is assumed to be isotropic, as with gases and simple liquids, and consequently **τ** is an isotropic tensor; furthermore, since the deviatoric stress tensor can be expressed in terms of the dynamic viscosity μ:

# τ
2
μ
ε

{\displaystyle \boldsymbol \tau = 2 \mu \boldsymbol \varepsilon}

where

# ε

1
2

(

∇
u

∇
u

T

)

{\displaystyle \boldsymbol{\varepsilon} = \tfrac{1}{2} \left( \mathbf{\nabla u} + \mathbf{\nabla u}^\mathrm{T} \right)}

is the rate-of-strain tensor. So this decomposition can be explicited as:

# τ
μ

(

∇

u

∇

u

T

)

{\displaystyle \boldsymbol \tau = \mu \left(\nabla\mathbf{u} + \nabla\mathbf{u} ^\mathrm{T}\right)}

Dynamic viscosity μ need not be constant – in incompressible flows it can depend on density and on pressure. Any equation expliciting one of these transport coefficient in the conservative variables is called an equation of state.

The divergence of the deviatoric stress is given by:

∇
⋅
# τ
2
μ
∇
⋅
# ε
μ
∇
⋅

(

∇

u

∇

u

T

)

=
μ

∇
2

u

{\displaystyle \nabla \cdot \boldsymbol \tau = 2 \mu \nabla \cdot \boldsymbol \varepsilon = \mu \nabla \cdot \left( \nabla\mathbf{u} + \nabla\mathbf{u} ^\mathrm{T} \right) = \mu \, \nabla^2 \mathbf{u}}

because ∇ ⋅ **u** = 0 for an incompressible fluid.

Incompressibility rules out density and pressure waves like sound or shock waves, so this simplification is not useful if these phenomena are of interest. The incompressible flow assumption typically holds well with all fluids at low Mach numbers (say up to about Mach 0.3), such as for modelling air winds at normal temperatures. For incompressible (uniform density *ρ*0) flows the following identity holds:

1

ρ
0

∇
# p
∇

(

p

ρ
0

)

≡
∇
w

{\displaystyle \frac 1 {\rho\_0} \nabla p = \nabla \left(\frac p {\rho\_0} \right) \equiv \nabla w}

where w is the specific (with the sense of *per unit mass*) thermodynamic work, the internal source term. Then the incompressible Navier–Stokes equations are best visualised by dividing for the density:

∂

u

∂
t

(

u

⋅
∇
)

u

−
ν

∇
2

u

=
−
∇
w

g

.

{\displaystyle \frac{\partial \mathbf{u}}{\partial t} + (\mathbf{u} \cdot \nabla) \mathbf{u} - \nu \,\nabla^2 \mathbf{u} = - \nabla w + \mathbf{g}.}

where *𝜈* = *μ**ρ*0 is called the kinematic viscosity.

It is well worth observing the meaning of each term (compare to the Cauchy momentum equation):

∂

u

∂
t

⏟

Variation

(

u

⋅
∇
)

u

⏟

Convection

⏞

Inertia (per volume)

−

ν

∇
2

u

⏟

Diffusion

=

−
∇
w

⏟

Internal

source

⏞

Divergence of stress

g

⏟

External

source

.

{\displaystyle
 \overbrace{
 \underbrace{\frac{\partial \mathbf{u}}{\partial t}}\_{
 \begin{smallmatrix}
 \text{Variation}
 \end{smallmatrix}} +
 \underbrace{(\mathbf{u} \cdot \nabla) \mathbf{u}}\_{
 \begin{smallmatrix}
 \text{Convection}
 \end{smallmatrix}}}^{\text{Inertia (per volume)}}
 \overbrace{-\underbrace{\nu \, \nabla^2 \mathbf{u}}\_{\text{Diffusion}}=
 \underbrace{-\nabla w}\_{
 \begin{smallmatrix}
 \text{Internal} \\
 \text{source}
 \end{smallmatrix}}}^{\text{Divergence of stress}} +
 \underbrace{\mathbf{g}}\_{
 \begin{smallmatrix}
 \text{External} \\
 \text{source}
 \end{smallmatrix}}
 .
}

The higher-order term, namely the shear stress divergence ∇ · *τ*, has simply reduced to the vector Laplacian term *μ*∇2**u**. This Laplacian term can be interpreted as the difference between the velocity at a point and the mean velocity in a small surrounding volume. This implies that – for a Newtonian fluid – viscosity operates as a *diffusion of momentum*, in much the same way as the heat conduction. In fact neglecting the convection term, incompressible Navier–Stokes equations lead to a vector diffusion equation (namely Stokes equations), but in general the convection term is present, so incompressible Navier–Stokes equations belong to the class of convection–diffusion equations.

In the usual case of an external field being a conservative field:

g

=
−
∇
φ

{\displaystyle \mathbf g = - \nabla \varphi }

by defining the hydraulic head:

h
≡
w
φ

{\displaystyle h \equiv w + \varphi }

one can finally condense the whole source in one term, arriving to the incompressible Navier–Stokes equation with conservative external field:

∂

u

∂
t

(

u

⋅
∇
)

u

−
ν

∇
2

u

=
−
∇
h
.

{\displaystyle \frac{\partial \mathbf{u}}{\partial t} + (\mathbf{u} \cdot \nabla) \mathbf{u} - \nu \, \nabla^2 \mathbf{u} = - \nabla h.}

The incompressible Navier–Stokes equations with conservative external field is the **fundamental equation of hydraulics**. The domain for these equations is commonly a 3 or less Euclidean space, for which an orthogonal coordinate reference frame is usually set to explicit the system of scalar partial differential equations to be solved. In 3-dimensional orthogonal coordinate systems are 3: Cartesian, cylindrical, and spherical. Expressing the Navier–Stokes vector equation in Cartesian coordinates is quite straightforward and not much influenced by the number of dimensions of the euclidean space employed, and this is the case also for the first-order terms (like the variation and convection ones) also in non-cartesian orthogonal coordinate systems. But for the higher order terms (the two coming from the divergence of the deviatoric stress that distinguish Navier–Stokes equations from Euler equations) some tensor calculus is required for deducing an expression in non-cartesian orthogonal coordinate systems.

The incompressible Navier–Stokes equation is composite, the sum of two orthogonal equations,

∂

u

∂
t

=

Π
S

(

−
(

u

⋅
∇
)

u

ν

∇
2

u

)

f

S

ρ

−
1

∇
p

=

Π
I

(

−
(

u

⋅
∇
)

u

ν

∇
2

u

)

f

I

{\displaystyle \begin{align}
\frac{\partial\mathbf{u}}{\partial t} &= \Pi^S\left(-(\mathbf{u}\cdot\nabla)\mathbf{u} + \nu\,\nabla^2\mathbf{u}\right) + \mathbf{f}^S \\
\rho^{-1}\,\nabla p &= \Pi^I\left(-(\mathbf{u}\cdot\nabla)\mathbf{u} + \nu\,\nabla^2\mathbf{u}\right) + \mathbf{f}^I
\end{align}}

where Π*S* and Π*I* are solenoidal and irrotational projection operators satisfying Π*S* + Π*I* = 1 and **f***S* and **f***I* are the non-conservative and conservative parts of the body force. This result follows from the Helmholtz theorem (also known as the fundamental theorem of vector calculus). The first equation is a pressureless governing equation for the velocity, while the second equation for the pressure is a functional of the velocity and is related to the pressure Poisson equation.

The explicit functional form of the projection operator in 3D is found from the Helmholtz Theorem:

Π
S

F

(

r

# )

1

4
π

∇
×
∫

∇
′

×

F

(

r

′

)

r

−

r

′

d

V
′

,

Π
I

=
1
−

Π
S

{\displaystyle \Pi^S\,\mathbf{F}(\mathbf{r}) = \frac{1}{4\pi}\nabla\times\int \frac{\nabla^\prime\times\mathbf{F}(\mathbf{r}')}{|\mathbf{r}-\mathbf{r}'|} \, dV', \quad \Pi^I = 1-\Pi^S}

with a similar structure in 2D. Thus the governing equation is an integro-differential equation similar to Coulomb and Biot–Savart law, not convenient for numerical computation.

An equivalent weak or variational form of the equation, proved to produce the same velocity solution as the Navier–Stokes equation, is given by,

(

w

,

∂

u

∂
t

)

=
−

(

w

,

(

u

⋅
∇

)

u

)

−
ν

(

∇

w

:
∇

u

)

(

w

,

f

S

)

{\displaystyle \left(\mathbf{w},\frac{\partial\mathbf{u}}{\partial t}\right) = -\bigl(\mathbf{w}, \left(\mathbf{u}\cdot\nabla\right)\mathbf{u}\bigr) - \nu \left(\nabla\mathbf{w}: \nabla\mathbf{u}\right) + \left(\mathbf{w}, \mathbf{f}^S\right)}

for divergence-free test functions **w** satisfying appropriate boundary conditions. Here, the projections are accomplished by the orthogonality of the solenoidal and irrotational function spaces. The discrete form of this is eminently suited to finite element computation of divergence-free flow, as we shall see in the next section. There one will be able to address the question "How does one specify pressure-driven (Poiseuille) problems with a pressureless governing equation?".

The absence of pressure forces from the governing velocity equation demonstrates that the equation is not a dynamic one, but rather a kinematic equation where the divergence-free condition serves the role of a conservation equation. This all would seem to refute the frequent statements that the incompressible pressure enforces the divergence-free condition.

### Variational form of the incompressible Navier–Stokes equations

#### Strong form

Consider the incompressible Navier–Stokes equations for a Newtonian fluid of constant density ρ in a domain

Ω
⊂

R

d

(
# d
2
,
3
)

{\displaystyle \Omega \subset \mathbb R^d \quad (d=2, 3)}

with boundary

∂
# Ω

Γ
D

∪

Γ
N

,

{\displaystyle \partial \Omega = \Gamma\_D \cup \Gamma\_N ,}

being Γ*D* and Γ*N* portions of the boundary where respectively a Dirichlet and a Neumann boundary condition is applied (Γ*D* ∩ Γ*N* = ∅):

{

ρ

∂
u

∂
t

ρ
(
u
⋅
∇
)
u
−
∇
⋅
σ
(
u
,
p
# )
f

 in
Ω
×
(
0
,
T
)

∇
⋅
# u
0

 in
Ω
×
(
0
,
T
)

# u
g

 on

Γ
D

×
(
0
,
T
)

σ
(
u
,
p
)

n
^

=
h

 on

Γ
N

×
(
0
,
T
)

u
(
0
# )

u
0

 in
Ω
×
{
0
}

{\displaystyle
\begin{cases}
\rho \dfrac{\partial \boldsymbol u}{\partial t} + \rho (\boldsymbol u \cdot \nabla) \boldsymbol u - \nabla \cdot \boldsymbol \sigma (\boldsymbol u, p) = \boldsymbol f & \text{ in } \Omega \times (0, T) \\
\nabla \cdot \boldsymbol u = 0 & \text{ in } \Omega \times (0, T) \\
\boldsymbol u = \boldsymbol g & \text{ on } \Gamma\_D \times (0, T) \\
 \sigma (\boldsymbol u, p) \boldsymbol{\hat n} = \boldsymbol h & \text{ on } \Gamma\_N \times (0, T) \\
\boldsymbol u(0)= \boldsymbol u\_0 & \text{ in } \Omega \times \{ 0\}
\end{cases}
}

***u*** is the fluid velocity, *p* the fluid pressure, ***f*** a given forcing term, ***n̂*** the outward directed unit normal vector to Γ*N*, and **σ**(***u***, *p*) the viscous stress tensor defined as:

σ
(
u
,
p
# )
−
p
I
2
μ
ε
(
u
)
.

{\displaystyle
\boldsymbol \sigma (\boldsymbol u, p) = -p \boldsymbol I + 2 \mu \boldsymbol \varepsilon (\boldsymbol u).
}

Let μ be the dynamic viscosity of the fluid, ***I*** the second-order identity tensor and ***ε***(***u***) the strain-rate tensor defined as:

ε
(
u
# )

1
2

(

(

∇
u

)

(

∇
u

)

T

)

.

{\displaystyle
\boldsymbol \varepsilon (\boldsymbol u) = \tfrac{1}{2} \left(\left(\nabla \boldsymbol u\right) + \left(\nabla \boldsymbol u\right)^\mathrm{T}\right).
}

The functions ***g*** and ***h*** are given Dirichlet and Neumann boundary data, while ***u***0 is the initial condition. The first equation is the momentum balance equation, while the second represents the mass conservation, namely the continuity equation.
Assuming constant dynamic viscosity, using the vectorial identity

∇
⋅

(

∇
f

)

T

=
∇
(
∇
⋅
f
)

{\displaystyle \nabla \cdot \left(\nabla \boldsymbol f\right)^\mathrm{T}= \nabla (\nabla \cdot \boldsymbol f)}

and exploiting mass conservation, the divergence of the total stress tensor in the momentum equation can also be expressed as:

∇
⋅
σ
(
u
,
p
)

=
∇
⋅

(

−
p
I
2
μ
ε
(
u
)

)

=
−
∇
p
2
μ
∇
⋅
ε
(
u
# )
−
∇
p
2
μ
∇
⋅

[

1
2

(

(

∇
u

)

(

∇
u

)

T

)

]

=
−
∇
p
μ

(

Δ
u
∇
⋅

(

∇
u

)

T

)

=
−
∇
p
μ

(

Δ
u
∇

(
∇
⋅
u
)

⏟

=
0

)

=
−
∇
p
μ

Δ
u
.

{\displaystyle
\begin{align}
\nabla \cdot \boldsymbol \sigma (\boldsymbol u, p) & = \nabla \cdot\bigl(-p \boldsymbol I + 2 \mu \boldsymbol \varepsilon (\boldsymbol u)\bigr) = - \nabla p + 2 \mu \nabla \cdot \boldsymbol \varepsilon (\boldsymbol u) = - \nabla p + 2 \mu \nabla \cdot \left [ \tfrac{1}{2} \left(\left(\nabla \boldsymbol u\right) + \left(\nabla \boldsymbol u\right)^\mathrm{T}\right) \right ] \\[5pt]
& = -\nabla p + \mu \left(\Delta \boldsymbol u + \nabla \cdot \left(\nabla \boldsymbol u\right)^\mathrm{T}\right) = -\nabla p + \mu \bigl(\Delta \boldsymbol u + \nabla \underbrace{(\nabla \cdot \boldsymbol u)}\_{=0}\bigr) = -\nabla p + \mu \, \Delta \boldsymbol u.
\end{align}
}

Moreover, note that the Neumann boundary conditions can be rearranged as:

σ
(
u
,
p
)

n
^

=

(

−
p
I
2
μ
ε
(
u
)

)

n
^

=
−
p

n
^

μ

∂
u

∂

n
^

.

{\displaystyle
 \sigma (\boldsymbol u, p) \boldsymbol{\hat n} = \bigl(-p \boldsymbol I + 2 \mu \boldsymbol \varepsilon (\boldsymbol u)\bigr)\boldsymbol{\hat n} = -p \boldsymbol{\hat n} + \mu \frac{\partial \boldsymbol u}{\partial \boldsymbol{\hat n} }.
}

#### Weak form

In order to find a variational form of the Navier–Stokes equations, firstly, consider the momentum equation

ρ

∂
u

∂
t

−
μ
Δ
u
ρ
(
u
⋅
∇
)
u
∇
# p
f

{\displaystyle
\rho \dfrac{\partial \boldsymbol u}{\partial t} - \mu \Delta \boldsymbol u + \rho (\boldsymbol u \cdot \nabla) \boldsymbol u +\nabla p = \boldsymbol f
}

multiply it for a test function ***v***, defined in a suitable space V, and integrate both members with respect to the domain Ω:

∫
Ω

ρ

∂
u

∂
t

⋅
v
−

∫
Ω

μ
Δ
u
⋅
v

∫
Ω

ρ
(
u
⋅
∇
)
u
⋅
v

∫
Ω

∇
p
⋅
# v

∫
Ω

f
⋅
v

{\displaystyle
\int\_\Omega \rho \frac{\partial \boldsymbol u}{\partial t}\cdot \boldsymbol v - \int\_\Omega \mu \Delta \boldsymbol u \cdot \boldsymbol v+ \int\_\Omega \rho (\boldsymbol u \cdot \nabla) \boldsymbol u \cdot \boldsymbol v +\int\_\Omega \nabla p \cdot \boldsymbol v = \int\_\Omega \boldsymbol f \cdot \boldsymbol v
}

Counter-integrating by parts the diffusive and the pressure terms and by using the Gauss' theorem:

**Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://mathoid-facade/v1/":): {\displaystyle \begin{align} -\int\_\Omega \mu \Delta \boldsymbol u \cdot \boldsymbol v &= \int\_\Omega \mu \nabla \boldsymbol u \cdot \nabla \boldsymbol v - \int\_{\partial \Omega} \mu \frac{\partial \boldsymbol u}{\partial {\boldsymbol \hat n}} \cdot \boldsymbol v \\[5pt] \int\_\Omega \nabla p \cdot \boldsymbol v &= -\int\_\Omega p \nabla \cdot \boldsymbol v + \int\_{\partial \Omega} p \boldsymbol v \cdot {\boldsymbol \hat n} \end{align}}**

Using these relations, one gets:

**Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://mathoid-facade/v1/":): {\displaystyle \int\_\Omega \rho \dfrac{\partial \boldsymbol u}{\partial t}\cdot \boldsymbol v +\int\_\Omega \mu \nabla \boldsymbol u \cdot \nabla \boldsymbol v + \int\_\Omega \rho (\boldsymbol u \cdot \nabla) \boldsymbol u \cdot \boldsymbol v -\int\_\Omega p \nabla \cdot \boldsymbol v= \int\_\Omega \boldsymbol f \cdot \boldsymbol v + \int\_{\partial \Omega} \left ( \mu \frac{\partial \boldsymbol u}{\partial {\boldsymbol \hat n}} - p \boldsymbol{\hat n}\right) \cdot \boldsymbol v \quad \forall \boldsymbol v \in V. }**

In the same fashion, the continuity equation is multiplied for a test function q belonging to a space Q and integrated in the domain Ω:

∫
Ω

q
∇
⋅
# u

∀
q
∈
Q
.

{\displaystyle
\int\_\Omega q \nabla \cdot \boldsymbol u = 0. \quad \forall q \in Q.
}

The space functions are chosen as follows:

# V

[

H
0
1

(
Ω
)

]

d

=

{

v
∈

[

H
1

(
Ω
)

]

d

:

# v
0
 on

Γ
D

}

,

[
5
p
t
]
Q

=

L
2

(
Ω
)

{\displaystyle \begin{align}
V=\left[H\_0^1(\Omega)\right]^d &= \left\{ \boldsymbol v \in \left[H^1(\Omega)\right]^d: \quad \boldsymbol v = \boldsymbol 0 \text{ on } \Gamma\_D \right\}, \\ [5pt]
Q &= L^2(\Omega)
\end{align}}

Considering that the test function ***v*** vanishes on the Dirichlet boundary and considering the Neumann condition, the integral on the boundary can be rearranged as:

**Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://mathoid-facade/v1/":): {\displaystyle \int\_{\partial \Omega} \left ( \mu \frac{\partial \boldsymbol u}{\partial {\boldsymbol \hat n}} - p \boldsymbol{\hat n}\right) \cdot \boldsymbol v= \underbrace{\int\_{\Gamma\_D} \left ( \mu \frac{\partial \boldsymbol u}{\partial {\boldsymbol \hat n}} - p \boldsymbol{\hat n}\right) \cdot \boldsymbol v}\_{\boldsymbol v = \boldsymbol 0 \text{ on } \Gamma\_D \ } + \int\_{\Gamma\_N} \underbrace{\left ( \mu \frac{\partial \boldsymbol u}{\partial {\boldsymbol \hat n}} - p \boldsymbol{\hat n}\right)}\_{= \boldsymbol h \text{ on } \Gamma\_N} \cdot \boldsymbol v = \int\_{\Gamma\_N} \boldsymbol h \cdot \boldsymbol v. }**

Having this in mind, the weak formulation of the Navier–Stokes equations is expressed as:

find
u
∈

L
2

(

R

[

H
1

(
Ω
)

]

d

)

∩

C
0

(

R

[

L
2

(
Ω
)

]

d

)

 such that:

{

∫

Ω

ρ

∂
u

∂
t

⋅
v

∫

Ω

μ
∇
u
⋅
∇
v

∫

Ω

ρ
(
u
⋅
∇
)
u
⋅
v
−

∫

Ω

p
∇
⋅
# v

∫

Ω

f
⋅
v

∫

Γ
N

h
⋅
v

∀
v
∈
V
,

∫

Ω

q
∇
⋅
# u
0

∀
q
∈
Q
.

{\displaystyle \begin{align}
&\text{find } \boldsymbol u \in L^2\left(\mathbb R^+\; \left[H^1(\Omega)\right]^d\right) \cap C^0\left(\mathbb R^+ \; \left[L^2(\Omega)\right]^d\right) \text{ such that: } \\[5pt]
&\quad\begin{cases}
\displaystyle \int\_{\Omega}\rho \dfrac{\partial \boldsymbol u}{\partial t}\cdot \boldsymbol v +\int\_{\Omega} \mu \nabla \boldsymbol u \cdot \nabla \boldsymbol v + \int\_{\Omega}\rho (\boldsymbol u \cdot \nabla) \boldsymbol u \cdot \boldsymbol v -\int\_{\Omega} p \nabla \cdot \boldsymbol v= \int\_{\Omega}\boldsymbol f \cdot \boldsymbol v + \int\_{\Gamma\_N} \boldsymbol h \cdot \boldsymbol v \quad \forall \boldsymbol v \in V, \\
\displaystyle \int\_{\Omega} q \nabla \cdot \boldsymbol u = 0 \quad \forall q \in Q.
\end{cases}\end{align}
}

### Discrete velocity

With partitioning of the problem domain and defining basis functions on the partitioned domain, the discrete form of the governing equation is

(

w

i

,

∂

u

j

∂
t

)

=
−

(

w

i

,

(

u

⋅
∇

)

u

j

)

−
ν

(

∇

w

i

:
∇

u

j

)

(

w

i

,

f

S

)

.

{\displaystyle \left(\mathbf{w}\_i, \frac{\partial\mathbf{u}\_j}{\partial t}\right) = -\bigl(\mathbf{w}\_i, \left(\mathbf{u}\cdot\nabla\right)\mathbf{u}\_j\bigr) - \nu\left(\nabla\mathbf{w}\_i: \nabla\mathbf{u}\_j\right) + \left(\mathbf{w}\_i, \mathbf{f}^S\right).}

It is desirable to choose basis functions which reflect the essential feature of incompressible flow – the elements must be divergence-free. While the velocity is the variable of interest, the existence of the stream function or vector potential is necessary by the Helmholtz theorem. Further, to determine fluid flow in the absence of a pressure gradient, one can specify the difference of stream function values across a 2D channel, or the line integral of the tangential component of the vector potential around the channel in 3D, the flow being given by Stokes' theorem. Discussion will be restricted to 2D in the following.

We further restrict discussion to continuous Hermite finite elements which have at least first-derivative degrees-of-freedom. With this, one can draw a large number of candidate triangular and rectangular elements from the plate-bending literature. These elements have derivatives as components of the gradient. In 2D, the gradient and curl of a scalar are clearly orthogonal, given by the expressions,

∇
φ

=

(

∂
φ

∂
x

,

∂
φ

∂
y

)

T

,

∇
×
φ

=

(

∂
φ

∂
y

,

−

∂
φ

∂
x

)

T

.

{\displaystyle \begin{align}
\nabla\varphi &= \left(\frac{\partial \varphi}{\partial x},\,\frac{\partial \varphi}{\partial y}\right)^\mathrm{T}, \\[5pt]
\nabla\times\varphi &= \left(\frac{\partial \varphi}{\partial y},\,-\frac{\partial \varphi}{\partial x}\right)^\mathrm{T}.
\end{align}}

Adopting continuous plate-bending elements, interchanging the derivative degrees-of-freedom and changing the sign of the appropriate one gives many families of stream function elements.

Taking the curl of the scalar stream function elements gives divergence-free velocity elements. The requirement that the stream function elements be continuous assures that the normal component of the velocity is continuous across element interfaces, all that is necessary for vanishing divergence on these interfaces.

Boundary conditions are simple to apply. The stream function is constant on no-flow surfaces, with no-slip velocity conditions on surfaces.
Stream function differences across open channels determine the flow. No boundary conditions are necessary on open boundaries, though consistent values may be used with some problems. These are all Dirichlet conditions.

The algebraic equations to be solved are simple to set up, but of course are non-linear, requiring iteration of the linearized equations.

Similar considerations apply to three-dimensions, but extension from 2D is not immediate because of the vector nature of the potential, and there exists no simple relation between the gradient and the curl as was the case in 2D.

### Pressure recovery

Recovering pressure from the velocity field is easy. The discrete weak equation for the pressure gradient is,

(

g

i

,
∇
p
# )
−

(

g

i

,

(

u

⋅
∇

)

u

j

)

−
ν

(

∇

g

i

:
∇

u

j

)

(

g

i

,

f

I

)

{\displaystyle (\mathbf{g}\_i, \nabla p) = -\left(\mathbf{g}\_i, \left(\mathbf{u}\cdot\nabla\right)\mathbf{u}\_j\right) - \nu\left(\nabla\mathbf{g}\_i: \nabla\mathbf{u}\_j\right) + \left(\mathbf{g}\_i, \mathbf{f}^I\right)}

where the test/weight functions are irrotational. Any conforming scalar finite element may be used. However, the pressure gradient field may also be of interest. In this case one can use scalar Hermite elements for the pressure. For the test/weight functions **g***i* one would choose the irrotational vector elements obtained from the gradient of the pressure element.

## Non-inertial frame of reference

The rotating frame of reference introduces some interesting pseudo-forces into the equations through the material derivative term. Consider a stationary inertial frame of reference K, and a non-inertial frame of reference K′, which is translating with velocity **U**(*t*) and rotating with angular velocity Ω(*t*) with respect to the stationary frame. The Navier–Stokes equation observed from the non-inertial frame then becomes

ρ

D

u

D
t

=
−
∇

p
¯

μ

∇
2

u

1
3

μ

∇
(
∇
⋅

u

)
ρ

g

−
ρ

(

2

Ω

×

u

Ω

×
(

Ω

×

x

)

d

U

d
t

d

Ω

d
t

×

x

)

.

{\displaystyle \rho \frac{D \mathbf{u}}{D t} = - \nabla \bar{p} + \mu \, \nabla^2 \mathbf u + \tfrac13 \mu \, \nabla (\nabla\cdot\mathbf{u}) + \rho\mathbf{g} - \rho \left(2\mathbf\Omega\times\mathbf u + \mathbf\Omega\times(\mathbf\Omega\times\mathbf x)+ \frac{d\mathbf U}{dt} + \frac{d\mathbf \Omega}{dt}\times\mathbf x\right).}

Here **x** and **u** are measured in the non-inertial frame. The first term in the parenthesis represents Coriolis acceleration, the second term is due to centrifugal acceleration, the third is due to the linear acceleration of K′ with respect to K and the fourth term is due to the angular acceleration of K′ with respect to K.

## Other equations

The Navier–Stokes equations are strictly a statement of the balance of momentum. To fully describe fluid flow, more information is needed, how much depending on the assumptions made. This additional information may include boundary data (no-slip, capillary surface, etc.), conservation of mass, balance of energy, and/or an equation of state.

### Continuity equation for incompressible fluid

Main articles: Continuity equation
Regardless of the flow assumptions, a statement of the conservation of mass is generally necessary. This is achieved through the mass continuity equation, given in its most general form as:

∂
ρ

∂
t

∇
⋅
(
ρ

u

# )
0

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

or, using the substantive derivative:

D
ρ

D
t

ρ
(
∇
⋅

u

# )

{\displaystyle \frac{D\rho}{Dt} + \rho (\nabla \cdot \mathbf{u}) = 0.}

For incompressible fluid, density along the line of flow remains constant over time,

D
ρ

D
t

=

{\displaystyle \frac{D\rho}{Dt} = 0.}

therefore divergence of velocity is null all the time:

∇
⋅

u

=

{\displaystyle \nabla \cdot \mathbf{u} = 0.}

## Stream function for incompressible 2D fluid

Taking the curl of the incompressible Navier–Stokes equation results in the elimination of pressure. This is especially easy to see if 2D Cartesian flow is assumed (like in the degenerate 3D case with *uz* = 0 and no dependence of anything on z), where the equations reduce to:

ρ

(

∂

u
x

∂
t

u
x

∂

u
x

∂
x

u
y

∂

u
x

∂
y

)

=
−

∂
p

∂
x

μ

(

∂
2

u
x

∂

x
2

∂
2

u
x

∂

y
2

)

ρ

g
x

ρ

(

∂

u
y

∂
t

u
x

∂

u
y

∂
x

u
y

∂

u
y

∂
y

)

=
−

∂
p

∂
y

μ

(

∂
2

u
y

∂

x
2

∂
2

u
y

∂

y
2

)

ρ

g
y

.

{\displaystyle \begin{align}
 \rho \left(\frac{\partial u\_x}{\partial t} + u\_x \frac{\partial u\_x}{\partial x} + u\_y \frac{\partial u\_x}{\partial y}\right)
 &= -\frac{\partial p}{\partial x} + \mu \left(\frac{\partial^2 u\_x}{\partial x^2} + \frac{\partial^2 u\_x}{\partial y^2}\right) + \rho g\_x \\
 \rho \left(\frac{\partial u\_y}{\partial t} + u\_x \frac{\partial u\_y}{\partial x} + u\_y \frac{\partial u\_y}{\partial y}\right)
 &= -\frac{\partial p}{\partial y} + \mu \left(\frac{\partial^2 u\_y}{\partial x^2} + \frac{\partial^2 u\_y}{\partial y^2}\right) + \rho g\_y.
\end{align}}

Differentiating the first with respect to y, the second with respect to x and subtracting the resulting equations will eliminate pressure and any conservative force.
For incompressible flow, defining the stream function ψ through

u
x

=

∂
ψ

∂
y

;

u
y

=
−

∂
ψ

∂
x

{\displaystyle u\_x = \frac{\partial \psi}{\partial y}; \quad u\_y = -\frac{\partial \psi}{\partial x}}

results in mass continuity being unconditionally satisfied (given the stream function is continuous), and then incompressible Newtonian 2D momentum and mass conservation condense into one equation:

∂

∂
t

(

∇
2

ψ

)

∂
ψ

∂
y

∂

∂
x

(

∇
2

ψ

)

−

∂
ψ

∂
x

∂

∂
y

(

∇
2

ψ

)

=
ν

∇
4

ψ

{\displaystyle \frac{\partial}{\partial t}\left(\nabla^2 \psi\right) + \frac{\partial \psi}{\partial y} \frac{\partial}{\partial x}\left(\nabla^2 \psi\right) - \frac{\partial \psi}{\partial x} \frac{\partial}{\partial y}\left(\nabla^2 \psi\right) = \nu \nabla^4 \psi}

where ∇4 is the 2D biharmonic operator and ν is the kinematic viscosity, *ν* = *μ**ρ*. We can also express this compactly using the Jacobian determinant:

∂

∂
t

(

∇
2

ψ

)

∂

(

ψ
,

∇
2

ψ

)

∂
(
y
,
x
)

=
ν

∇
4

ψ
.

{\displaystyle \frac{\partial}{\partial t}\left(\nabla^2 \psi\right) + \frac{\partial\left(\psi, \nabla^2\psi \right)}{\partial(y,x)} = \nu \nabla^4 \psi.}

This single equation together with appropriate boundary conditions describes 2D fluid flow, taking only kinematic viscosity as a parameter. Note that the equation for creeping flow results when the left side is assumed zero.

In axisymmetric flow another stream function formulation, called the Stokes stream function, can be used to describe the velocity components of an incompressible flow with one scalar function.

The incompressible Navier–Stokes equation is a differential algebraic equation, having the inconvenient feature that there is no explicit mechanism for advancing the pressure in time. Consequently, much effort has been expended to eliminate the pressure from all or part of the computational process. The stream function formulation eliminates the pressure but only in two dimensions and at the expense of introducing higher derivatives and elimination of the velocity, which is the primary variable of interest.

## Properties

### Nonlinearity

The Navier–Stokes equations are nonlinear partial differential equations in the general case and so remain in almost every real situation. In some cases, such as one-dimensional flow and Stokes flow (or creeping flow), the equations can be simplified to linear equations. The nonlinearity makes most problems difficult or impossible to solve and is the main contributor to the turbulence that the equations model.

The nonlinearity is due to convective acceleration, which is an acceleration associated with the change in velocity over position. Hence, any convective flow, whether turbulent or not, will involve nonlinearity. An example of convective but laminar (nonturbulent) flow would be the passage of a viscous fluid (for example, oil) through a small converging nozzle. Such flows, whether exactly solvable or not, can often be thoroughly studied and understood.

### Turbulence

Turbulence is the time-dependent chaotic behavior seen in many fluid flows. It is generally believed that it is due to the inertia of the fluid as a whole: the culmination of time-dependent and convective acceleration; hence flows where inertial effects are small tend to be laminar (the Reynolds number quantifies how much the flow is affected by inertia). It is believed, though not known with certainty, that the Navier–Stokes equations describe turbulence properly.

The numerical solution of the Navier–Stokes equations for turbulent flow is extremely difficult, and due to the significantly different mixing-length scales that are involved in turbulent flow, the stable solution of this requires such a fine mesh resolution that the computational time becomes significantly infeasible for calculation or direct numerical simulation. Attempts to solve turbulent flow using a laminar solver typically result in a time-unsteady solution, which fails to converge appropriately. To counter this, time-averaged equations such as the Reynolds-averaged Navier–Stokes equations (RANS), supplemented with turbulence models, are used in practical computational fluid dynamics (CFD) applications when modeling turbulent flows. Some models include the Spalart–Allmaras, k–ω, k–ε, and SST models, which add a variety of additional equations to bring closure to the RANS equations. Large eddy simulation (LES) can also be used to solve these equations numerically. This approach is computationally more expensive—in time and in computer memory—than RANS, but produces better results because it explicitly resolves the larger turbulent scales.

### Applicability

Further information: Discretization of Navier–Stokes equations
Together with supplemental equations (for example, conservation of mass) and well formulated boundary conditions, the Navier–Stokes equations seem to model fluid motion accurately; even turbulent flows seem (on average) to agree with real world observations.

The Navier–Stokes equations assume that the fluid being studied is a continuum (it is infinitely divisible and not composed of particles such as atoms or molecules), and is not moving at relativistic velocities. At very small scales or under extreme conditions, real fluids made out of discrete molecules will produce results different from the continuous fluids modeled by the Navier–Stokes equations. For example, capillarity of internal layers in fluids appears for flow with high gradients. For large Knudsen number of the problem, the Boltzmann equation may be a suitable replacement.
Failing that, one may have to resort to molecular dynamics or various hybrid methods.

Another limitation is simply the complicated nature of the equations. Time-tested formulations exist for common fluid families, but the application of the Navier–Stokes equations to less common families tends to result in very complicated formulations and often to open research problems. For this reason, these equations are usually written for Newtonian fluids where the viscosity model is linear; truly general models for the flow of other kinds of fluids (such as blood) do not exist.

## Application to specific problems

The Navier–Stokes equations, even when written explicitly for specific fluids, are rather generic in nature and their proper application to specific problems can be very diverse. This is partly because there is an enormous variety of problems that may be modeled, ranging from as simple as the distribution of static pressure to as complicated as multiphase flow driven by surface tension.

Generally, application to specific problems begins with some flow assumptions and initial/boundary condition formulation, this may be followed by scale analysis to further simplify the problem.

### Parallel flow

Assume steady, parallel, one dimensional, non-convective pressure-driven flow between parallel plates, the resulting scaled (dimensionless) boundary value problem is:

d
2

u

d

y
2

=
−
1
;

u
(
0
# )
u
(
1
# )

{\displaystyle \frac{d^2 u}{d y^2} = -1; \quad u(0) = u(1) = 0.}

The boundary condition is the no slip condition. This problem is easily solved for the flow field:

u
(
y
# )

y
−

y
2

2

.

{\displaystyle u(y) = \frac{y - y^2}{2}.}

From this point onward more quantities of interest can be easily obtained, such as viscous drag force or net flow rate.

### Radial flow

Difficulties may arise when the problem becomes slightly more complicated. A seemingly modest twist on the parallel flow above would be the *radial* flow between parallel plates; this involves convection and thus non-linearity. The velocity field may be represented by a function *f*(*z*) that must satisfy:

d
2

f

d

z
2

R

f
2

=
−
1
;

f
(
−
1
# )
f
(
1
# )

{\displaystyle \frac{d^2 f}{d z^2} + R f^2 = -1; \quad f(-1) = f(1) = 0.}

This ordinary differential equation is what is obtained when the Navier–Stokes equations are written and the flow assumptions applied (additionally, the pressure gradient is solved for). The nonlinear term makes this a very difficult problem to solve analytically (a lengthy implicit solution may be found which involves elliptic integrals and roots of cubic polynomials). Issues with the actual existence of solutions arise for *R* > 1.41 (approximately; this is not √2), the parameter R being the Reynolds number with appropriately chosen scales. This is an example of flow assumptions losing their applicability, and an example of the difficulty in "high" Reynolds number flows.

### Convection

A type of natural convection which can be described by the Navier–Stokes equation is the Rayleigh–Bénard convection. It is one of the most commonly studied convection phenomena because of its analytical and experimental accessibility.

## Exact solutions of the Navier–Stokes equations

Some exact solutions to the Navier–Stokes equations exist. Examples of degenerate cases—with the non-linear terms in the Navier–Stokes equations equal to zero—are Poiseuille flow, Couette flow and the oscillatory Stokes boundary layer. But also, more interesting examples, solutions to the full non-linear equations, exist, such as Jeffery–Hamel flow, Von Kármán swirling flow, stagnation point flow, Landau–Squire jet, and Taylor–Green vortex.
Note that the existence of these exact solutions does not imply they are stable: turbulence may develop at higher Reynolds numbers.

Under additional assumptions, the component parts can be separated.

### A three-dimensional steady-state vortex solution

A steady-state example with no singularities comes from considering the flow along the lines of a Hopf fibration. Let r be a constant radius of the inner coil. One set of solutions is given by:

ρ
(
x
,
y
,
z
)

=

3
B

r
2

x
2

y
2

z
2

p
(
x
,
y
,
z
)

=

−

A
2

B

(

r
2

x
2

y
2

z
2

)

3

u

(
x
,
y
,
z
)

=

A

(

r
2

x
2

y
2

z
2

)

2

(

2
(
−
r
y
x
z
)

2
(
r
x
y
z
)

r
2

−

x
2

−

y
2

z
2

)

g

=
0

μ

=
0

{\displaystyle \begin{align}
\rho(x, y, z) &= \frac{3B}{r^2 + x^2 + y^2 + z^2} \\
p(x, y, z) &= \frac{-A^2B}{\left(r^2 + x^2 + y^2 + z^2\right)^3} \\
\mathbf{u}(x, y, z) &= \frac{A}{\left(r^2 + x^2 + y^2 + z^2\right)^2}\begin{pmatrix} 2(-ry + xz) \\ 2(rx + yz) \\ r^2 - x^2 - y^2 + z^2 \end{pmatrix} \\
g &= 0 \\
\mu &= 0
\end{align}}

for arbitrary constants A and B. This is a solution in a non-viscous gas (compressible fluid) whose density, velocities and pressure goes to zero far from the origin. (Note this is not a solution to the Clay Millennium problem because that refers to incompressible fluids where ρ is a constant, and neither does it deal with the uniqueness of the Navier–Stokes equations with respect to any turbulence properties.) It is also worth pointing out that the components of the velocity vector are exactly those from the Pythagorean quadruple parametrization. Other choices of density and pressure are possible with the same velocity field:

## Wyld diagrams

**Wyld diagrams** are bookkeeping graphs that correspond to the Navier–Stokes equations via a perturbation expansion of the fundamental continuum mechanics. Similar to the Feynman diagrams in quantum field theory, these diagrams are an extension of Keldysh's technique for nonequilibrium processes in fluid dynamics. In other words, these diagrams assign graphs to the (often) turbulent phenomena in turbulent fluids by allowing correlated and interacting fluid particles to obey stochastic processes associated to pseudo-random functions in probability distributions.

## Navier–Stokes equations use in games

The Navier–Stokes equations are used extensively in video games in order to model a wide variety of natural phenomena. Simulations of small-scale gaseous fluids, such as fire and smoke, are often based on the seminal paper "Real-Time Fluid Dynamics for Games" by Jos Stam, which elaborates one of the methods proposed in Stam's earlier, more famous paper "Stable Fluids" from 1999. Stam proposes stable fluid simulation using a Navier–Stokes solution method from 1968, coupled with an unconditionally stable semi-Lagrangian advection scheme, as first proposed in 1992.

More recent implementations based upon this work run on the game systems graphics processing unit (GPU) as opposed to the central processing unit (CPU) and achieve a much higher degree of performance.
Many improvements have been proposed to Stam's original work, which suffers inherently from high numerical dissipation in both velocity and mass.

An introduction to interactive fluid simulation can be found in the 2007 ACM SIGGRAPH course, Fluid Simulation for Computer Animation.

## See also

* Adhémar Jean Claude Barré de Saint-Venant
* Bogoliubov–Born–Green–Kirkwood–Yvon hierarchy of equations
* Boltzmann equation
* Cauchy momentum equation
* Cauchy stress tensor
* Convection–diffusion equation
* Chapman–Enskog theory
* Churchill–Bernstein equation
* Coandă effect
* Computational fluid dynamics
* Continuum mechanics
* Euler equations
* Hagen–Poiseuille flow from the Navier–Stokes equations
* Derivation of the Navier–Stokes equations
* Einstein-Stokes equation
* Non-dimensionalization and scaling of the Navier–Stokes equations
* Pressure-correction method
* Rayleigh–Bénard convection
* Stokes equations
* Reynolds transport theorem
* Vlasov equation
* Millennium Prize Problems