The Euler equations in fluid mechanics

Jordan Bell
April 14, 2014

1 Continuity equation

Let Ω be a domain in ℝn and let ρ∈C∞⁢(Ω×ℝ); perhaps later we will care about functions that are in larger spaces, and to justify making conclusions about those we will have to check that what we have said here applies to them.

Let U be a Lipschitz domain in Ω. Thinking of ρ as a density, the amount of stuff in U at time t is

∫Uρ⁢(x,t)⁢𝑑x.

Let q∈C∞⁢(Ω×ℝ) and F∈C∞⁢(Ω×ℝ,ℝn). We think about q⁢(x,t) as the rate at which new stuff appears at point x at time t, and F as the flux of the stuff. A change in the total amount of stuff in U occurs from stuff appearing inside U and from stuff going through the boundary of U. We formalize this as the statement

dd⁢t⁢∫Uρ⁢(x,t)⁢𝑑x=∫Uq⁢(x,t)⁢𝑑x-∫∂⁡UF⁢(s,t)⋅N⁢(s)⁢𝑑s,

where N⁢(s) is the outward pointing unit normal to the surface ∂⁡U at the point s∈∂⁡U. Using the divergence theorem we get

∫∂⁡UF⁢(s,t)⋅N⁢(s)⁢𝑑s=∫U(div⁢F)⁢(x,t)⁢𝑑x,

and hence

∫U(∂t⁡ρ)⁢(x,t)=dd⁢t⁢∫Uρ⁢(x,t)⁢𝑑x=∫U(q⁢(x,t)-(div⁢F)⁢(x,t))⁢𝑑x,

or,

∫U(∂t⁡ρ-q+div⁢F)⁢(x,t)⁢𝑑x.

Because this is true for any Lipschitz domain U in Ω, it follows that the integrand is 0: for all x∈Ω and t∈ℝ, we have

(∂t⁡ρ-q+div⁢F)⁢(x,t)=0,

i.e.

∂t⁡ρ+div⁢F=q.

This is called a continuity equation.

If ρ⁢(x,t) denotes the density of stuff at the point x at time t and u denotes the velocity of the stuff at the point x and time t, then the flux F (in other words, the momentum), is F=ρ⁢u. If there is no stuff spontaneously appearing, but rather stuff only moves around, then q=0, and so

∂t⁡ρ+div⁢(ρ⁢u)=0. (1)

One can describe the statement that stuff is not spontaneously appearing as conservation of mass, and hence (1) can be thought of as a consequence of conservation of mass.

2 Momentum

The integral ∫U(ρ⁢u)⁢(x,t)⁢𝑑x is the total amount of momentum of the stuff at points in U at time t. We postulate that there is a function p∈C∞⁢(Ω,ℝ), which we call pressure, such that the rate of change of the total amount of momentum over a set at time t is equal to the flow of momentum from outside to inside the set at time t plus the total amount of inward directed pressure over the boundary of the set at time t, which here means

dd⁢t⁢∫U(ρ⁢u)⁢(x,t)⁢𝑑x=-∫∂⁡U(ρ⁢u)⁢(s,t)⁢u⁢(s,t)⋅N⁢(s)⁢𝑑s-∫∂⁡Up⁢(s,t)⁢N⁢(s)⁢𝑑s,

where N⁢(s) is the outward pointing unit normal to the surface ∂⁡U at s∈∂⁡U. Using the divergence theorem,

dd⁢t⁢∫U(ρ⁢u)⁢(x,t)⁢𝑑x=-∫Udiv⁢(ρ⁢u⊗u)⁢(x,t)-∫U(∇⁡p)⁢(x,t)⁢𝑑x.

Combined with

dd⁢t⁢∫U(ρ⁢u)⁢(x,t)⁢𝑑x=∫U∂t⁡(ρ⁢u)⁡(x,t)⁢𝑑x,

this gives

∫U(∂t⁡(ρ⁢u)+div⁢(ρ⁢u⊗u)+∇⁡p)⁢(x,t)⁢𝑑x.

Because this is true for any Lipschitz domain U in Ω, we obtain

(∂t⁡(ρ⁢u)+div⁢(ρ⁢u⊗u)+∇⁡p)⁢(x,t)=0

for all x∈Ω and t∈ℝ, or

∂t⁡(ρ⁢u)+div⁢(ρ⁢u⊗u)+∇⁡p=0. (2)

To state that the stuff we are talking about is incompressible means that ρ is constant. For the rest of this note, unless we state otherwise we take ρ to be a nonzero constant, with which equation (1) becomes

div⁢(u)=0, (3)

and (2) becomes

∂t⁡u+div⁢(u⊗u)+1ρ⁢∇⁡p=0. (4)

The two equations (3) and (4) are called the Euler equations for an incompressible fluid.

Taking the divergence of (4) yields

∂t⁡div⁢(u)+div⁢(div⁢(u⊗u))+1ρ⁢div⁢(∇⁡p)=0.

Using (3) and writing Δ⁢p=div⁢(∇⁡p),

div⁢(div⁢(u⊗u))+1ρ⁢Δ⁢p=0. (5)

As

div⁢(u⊗u)=∂j⁡(ui⁢uj)⁡ei,

we have, using (3),

div⁢(div⁢(u⊗u)) = ∂i⁡∂j⁡(ui⁢uj)
= ∂i⁡((∂j⁡ui)⁢uj+ui⁢∂j⁡uj)
= ∂i⁡((∂j⁡ui)⁢uj+ui⁢div⁢(u))
= ∂i⁡((∂j⁡ui)⁢uj)
= (∂i⁡∂j⁡ui)⁢uj+(∂j⁡ui)⁢∂i⁡uj
= (∂j⁡(div⁢(u)))⁢uj+(∂j⁡ui)⁢∂i⁡uj
= (∂j⁡ui)⁢∂i⁡uj.

Therefore, using this with (5) we get

-Δ⁢p=ρ⁢(∂j⁡ui)⁢∂i⁡uj. (6)

The use of this equation is to give us more information about the pressure p.

Furthermore, with u=ui⁢ei and writing

∇⁡u=(∂j⁡u)⊗ej=(∂j⁡(ui⁢ei))⊗ej=∂j⁡ui⁢ei⊗ej,

the contraction of the tensor ∇⁡u with itself is

(∇⁡u)⁢(∇⁡u) = (∂j⁡ui⁢ei⊗ej)⁢(∂l⁡uk⁢ek⊗el)
= (∂j⁡ui)⁢(∂l⁡uk)⁢(ei⊗ej)⁢(ek⊗el)
= (∂j⁡ui)⁢(∂l⁡uk)⁢δj,k⁢ei⊗el
= (∂j⁡ui)⁢(∂l⁡uj)⁢ei⊗el,

for which

Tr⁢((∇⁡u)⁢(∇⁡u))=(∂j⁡ui)⁢(∂i⁡uj).

With this, equation (6) becomes

-Δ⁢p=ρ⁢Tr⁢((∇⁡u)⁢(∇⁡u)).

As

div⁢(u⊗u)=∂j⁡(ui⁢uj)⁡ei=(∂j⁡ui)⁢uj⁢ei+ui⁢∂j⁡uj⁢ei=(∂j⁡ui)⁢uj⁢ei+ui⁢div⁢(u)⁢ei,

using (3) we have

div⁢(u⊗u)=(∂j⁡ui)⁢uj⁢ei,

and hence it follows from (3) that

div⁢(u⊗u)=u⋅∇⁡u. (7)

This expression for div⁢(u⊗u) may be easier to work with than the original expression.

3 Energy

If v=vi⁢ei is a vector field, we write

∇⁡v=(∂j⁡v)⊗ej=(∂j⁡vi)⁢ei⊗ej.

Then,

v⋅∇⁡v=(vk⁢ek)⋅((∂j⁡vi)⁢ei⊗ej)=vj⁢∂j⁡vi⁢ei=vj⁢∂j⁡v.

If u (velocity of stuff) and p (pressure of stuff) satisfy (3) and (4), then applying u⋅ to both sides of (4) we get

u⋅(∂t⁡u)+u⋅div⁢(u⊗u)+1ρ⁢u⋅∇⁡p=0. (8)

First,

∂t⁡(u⋅u)=∂t⁡(ui⁢ui)=(∂t⁡ui)⁢ui+ui⁢(∂t⁡ui)=2⁢ui⁢(∂t⁡ui)=2⁢u⋅(∂t⁡u).

Second,

div⁢(u⊗u)=∂j⁡(ui⁢uj)⁡ei

so

u⋅div⁢(u⊗u)=ui⁢∂j⁡(ui⁢uj)=ui⁢(∂j⁡ui)⁢uj+ui⁢ui⁢∂j⁡uj;

but

div⁢((u⋅u)⁢u)=div⁢(ui⁢ui⁢uj⁢ej)=∂j⁡(ui⁢ui⁢uj)=2⁢ui⁢(∂j⁡ui)⁢uj+ui⁢ui⁢∂j⁡uj,

hence

div⁢((u⋅u)⁢u)=2⁢u⋅div⁢(u⊗u)-u⋅u⁢div⁢(u),

and using (3) this is

div⁢((u⋅u)⁢u)=2⁢u⋅div⁢(u⊗u).

Third,

div⁢(p⁢u)=(∇⁡p)⋅u+p⁢div⁢(u),

and using (3) this is

div⁢(p⁢u)=(∇⁡p)⋅u.

Putting these three results into (8) gives

12⁢∂t⁡(u⋅u)+12⁢div⁢((u⋅u)⁢u)+1ρ⁢div⁢(p⁢u)=0,

or

∂t⁡(12⁢ρ⁢u⋅u)+div⁢(12⁢ρ⁢(u⋅u)⁢u+p⁢u)=0. (9)

We define

E=12⁢ρ⁢u⋅u.

If ρ is thought of as mass density, with units of kg/m3, and u is thought of as the velocity of stuff, with units of m/s, then E has units of kg⁢m-1⁢s-2=J/m3. We choose to think of E defined this way as energy density; we say choose because although E has the right units to be energy density, any multiple would have the same units, and it is not apparent from what we have said so far why we care about 12⁢ρ⁢u⋅u rather than some other multiple of ρ⁢u⋅u. Writing equation (9) using E gives

∂t⁡E+div⁢(E⁢u+p⁢u)=0,

which is thus a statement about the rate of change of energy density. We call E+pρ the total specific enthalpy of the stuff. To say that a quantity is specific means that it expresses some quantity per kg, and the dimensions of enthalpy are J.

4 Vorticity

In this section, unless we say otherwise we take n=3. For vector fields v,w,

∇⁡(v⋅w)=v⋅∇⁡w+w⋅∇⁡v+v×curl⁢w+w×curl⁢v.

Using this identity v=u and w=u gives

u⋅∇⁡u=u×curl⁢u-12⁢∇⁡(u⋅u),

and therefore (7) can be written as

div⁢(u⊗u)=12⁢∇⁡(u⋅u)-u×curl⁢u. (10)

Taking the curl of (4) yields

∂t⁡curl⁢u+curl⁢div⁢(u⊗u)=0;

we used the fact that the curl of the gradient of any scalar field is 0 and so curl⁢∇⁡p=0. Using (10), this becomes

∂t⁡curl⁢(u)+curl⁢(12⁢∇⁡(u⋅u)-u×curl⁢u)=0,

and as the curl of the gradient of a scalar field is 0, this is

∂t⁡curl⁢u=curl⁢(u×curl⁢u).

For vector fields v,w,

curl⁢(v×w)=v⁢div⁢w-w⁢div⁢v+(∇⁡v)⁢(w)-(∇⁡w)⁢(v),

and with v=u and w=curl⁢u we obtain

∂t⁡curl⁢u=u⁢div⁢curl⁢u-curl⁢(u)⁢div⁢u+(∇⁡u)⁢(curl⁢u)-(∇⁡curl⁢u)⁢(u).

Because the divergence of the curl of a vector field is 0 and because div⁢u=0 by (3), this becomes

∂t⁡curl⁢u=(∇⁡u)⁢(curl⁢u)-(∇⁡curl⁢u)⁢(u).

We call ω=curl⁢(u) the vorticity of the stuff, and with this notation the above equation can be written as

∂t⁡ω=(∇⁡u)⁢(ω)-(∇⁡ω)⁢(u). (11)

5 Material time derivative

One often deals with expressions like ∂t⁡ω+u⋅∇⁡ω, and we write

DD⁢t=∂t+u⋅∇,

and call DD⁢t the material time derivative; it depends on the velocity u of the stuff. With this notation, the equation (11) is

D⁢ωD⁢t=ω⋅∇⁡u.

Using (7) (which itself supposes (3)), we can write (4) using the material time derivative as

D⁢uD⁢t+∇⁡p=0.

6 Irrotational velocity fields

In this section unless we say otherwise we take n=3 and we suppose that curl⁢u=0, which we describe as u being irrotational. We suppose also in this section that Ω is simply connected, which together with curl⁢u=0 implies that there is some ϕ∈C∞⁢(Ω×ℝ) for which

u⁢(x,t)=(∇⁡ϕ)⁢(x,t)

for all x∈Ω and for all t∈ℝ; cf. the Helmholtz decomposition of a vector field in ℝ3. We call ϕ a potential function for u. Combining (4), (7), and u=∇⁡ϕ, we obtain

∂t⁡∇⁡ϕ+(∇⁡ϕ)⋅∇⁡∇⁡ϕ+1ρ⁢∇⁡p=0. (12)

We have

(∇⁡ϕ)⋅∇⁡∇⁡ϕ = (∂i⁡ϕ⁢ei)⋅∇⁡(∂k⁡ϕ⁢ek)
= (∂i⁡ϕ⁢ei)⋅(∂j⁡∂k⁡ϕ⁢ek⊗ej)
= (∂i⁡ϕ)⁢∂i⁡∂k⁡ϕ⁢ek
= 12⁢∂k⁡((∂i⁡ϕ)⁢(∂i⁡ϕ))⁡ek
= 12⁢∂k⁡(∇⁡ϕ⋅∇⁡ϕ)⁡ek
= 12⁢∇⁡(∇⁡ϕ⋅∇⁡ϕ),

with which (12) becomes

∂t⁡∇⁡ϕ+12⁢∇⁡(∇⁡ϕ⋅∇⁡ϕ)+1ρ⁢∇⁡p=0,

or

∇⁡(∂t⁡ϕ+12⁢∇⁡ϕ⋅∇⁡ϕ+1ρ⁢p)=0.

Then, defining P to be

P=∂t⁡ϕ+12⁢∇⁡ϕ⋅∇⁡ϕ+1ρ⁢p,

we have that P depends only on time. We call P the total pressure, and the statement that the total pressure depends only on time if the velocity u is irrotational is called Bernoulli’s principle.

Furthermore, combining (3) with u=∇⁡ϕ gives

Δ⁢ϕ=0,

i.e., for each t∈ℝ, x↦ϕ⁢(x,t) is a harmonic function on Ω.

7 Euler equations in one dimension

In this section we take n=1 and do not suppose that the pressure ρ is constant. Since we do not take ρ to be constant, we will use (1), which tells us that

∂t⁡ρ+div⁢(ρ⁢u)=0,

and (2), which tells us that

∂t⁡(ρ⁢u)+div⁢(ρ⁢u⊗u)+∇⁡p=0.

As n=1 here, we can write these two equations as

∂t⁡ρ+∂x⁡(ρ⁢u)=0 (13)

and

∂t⁡(ρ⁢u)+∂x⁡(ρ⁢u2)+∂x⁡p=0. (14)

We suppose, giving no justification, that there are some constant K and γ for which p=K⁢ργ. With this assumption, equation (14) becomes

∂t⁡(ρ⁢u)+∂x⁡(ρ⁢u2)+γ⁢pρ⁢∂x⁡ρ=0. (15)

We write ρ=ρ0+ρ1 where ρ0 is a constant, and we also write u=u0+u1 where u0 is a constant. With these definitions, the equation (13) becomes

∂t⁡(ρ0+ρ1)+∂x⁡(ρ0⁢u0+ρ0⁢u1+ρ1⁢u0+ρ1⁢u1)=0,

i.e.

∂t⁡ρ1+ρ0⁢∂x⁡u1+u0⁢∂x⁡ρ1+∂x⁡(ρ1⁢u1)=0.

Supposing that the last term is negligible, an approximation to the above equation is

∂t⁡ρ1+ρ0⁢∂x⁡u1+u0⁢∂x⁡ρ1=0. (16)

Furthermore, (15) becomes

∂t⁡(ρ0⁢u0+ρ0⁢u1+ρ1⁢u0+ρ1⁢u1)+∂x⁡(ρ0⁢u02+2⁢ρ0⁢u0⁢u1+ρ0⁢u12+ρ1⁢u02+2⁢ρ1⁢u0⁢u1+ρ0⁢u12)+γ⁢pρ0+ρ1⁢∂x⁡(ρ0+ρ1)=0.

Using that ρ0 and u0 are constant and supposing that ∂x⁡(ρ1⁢u1) and ∂x⁡(u12) are negligible gives us the approximation

ρ0⁢∂t⁡u1+u0⁢∂t⁡ρ1+2⁢ρ0⁢u0⁢∂x⁡u1+u02⁢∂x⁡ρ1+γ⁢pρ0+ρ1⁢∂x⁡ρ1.

Expressing 1ρ0+ρ1 as a geometric series in powers of ρ1ρ0 and supposing that the sum of all the nonconstant terms is negligible, and approximating p=K⁢ργ as p0=K⁢ρ0γ gives us the approximation

ρ0⁢∂t⁡u1+u0⁢∂t⁡ρ1+2⁢ρ0⁢u0⁢∂x⁡u1+u02⁢∂x⁡ρ1+γ⁢p0ρ0⁢∂x⁡ρ1=0.

Combining this equation with (16) multiplied by u0 yields

ρ0⁢∂t⁡u1+ρ0⁢u0⁢∂x⁡u1+γ⁢p0ρ0⁢∂x⁡ρ1=0.

We define Dt=∂t+u0⁢∂x, with which we can write the above equation as

ρ0⁢Dt⁢u1+γ⁢p0ρ0⁢∂x⁡ρ1=0, (17)

and we can write (16) as

Dt⁢ρ1+ρ0⁢∂x⁡u1=0. (18)

Applying Dt to (18) gives

Dt2⁢ρ1+ρ0⁢∂x⁡Dt⁢u1=0,

and then using (17) this becomes

Dt2⁢ρ1+∂x⁡(-γ⁢p0ρ0⁢∂x⁡ρ1)=0,

or

Dt2⁢ρ1-γ⁢p0ρ0⁢∂x2⁡ρ1=0,

which is a wave equation satisfied by ρ1.