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 qC(Ω×) and FC(Ω×,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

ddtUρ(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 sU. Using the divergence theorem we get

UF(s,t)N(s)𝑑s=U(divF)(x,t)𝑑x,

and hence

U(tρ)(x,t)=ddtUρ(x,t)𝑑x=U(q(x,t)-(divF)(x,t))𝑑x,

or,

U(tρ-q+divF)(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+divF)(x,t)=0,

i.e.

tρ+divF=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 pC(Ω,), 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

ddtU(ρ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 sU. Using the divergence theorem,

ddtU(ρu)(x,t)𝑑x=-Udiv(ρuu)(x,t)-U(p)(x,t)𝑑x.

Combined with

ddtU(ρu)(x,t)𝑑x=Ut(ρu)(x,t)𝑑x,

this gives

U(t(ρu)+div(ρuu)+p)(x,t)𝑑x.

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

(t(ρu)+div(ρuu)+p)(x,t)=0

for all xΩ and t, or

t(ρu)+div(ρuu)+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

tu+div(uu)+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

tdiv(u)+div(div(uu))+1ρdiv(p)=0.

Using (3) and writing Δp=div(p),

div(div(uu))+1ρΔp=0. (5)

As

div(uu)=j(uiuj)ei,

we have, using (3),

div(div(uu)) = ij(uiuj)
= i((jui)uj+uijuj)
= i((jui)uj+uidiv(u))
= i((jui)uj)
= (ijui)uj+(jui)iuj
= (j(div(u)))uj+(jui)iuj
= (jui)iuj.

Therefore, using this with (5) we get

-Δp=ρ(jui)iuj. (6)

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

Furthermore, with u=uiei and writing

u=(ju)ej=(j(uiei))ej=juieiej,

the contraction of the tensor u with itself is

(u)(u) = (juieiej)(lukekel)
= (jui)(luk)(eiej)(ekel)
= (jui)(luk)δj,keiel
= (jui)(luj)eiel,

for which

Tr((u)(u))=(jui)(iuj).

With this, equation (6) becomes

-Δp=ρTr((u)(u)).

As

div(uu)=j(uiuj)ei=(jui)ujei+uijujei=(jui)ujei+uidiv(u)ei,

using (3) we have

div(uu)=(jui)ujei,

and hence it follows from (3) that

div(uu)=uu. (7)

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

3 Energy

If v=viei is a vector field, we write

v=(jv)ej=(jvi)eiej.

Then,

vv=(vkek)((jvi)eiej)=vjjviei=vjjv.

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(tu)+udiv(uu)+1ρup=0. (8)

First,

t(uu)=t(uiui)=(tui)ui+ui(tui)=2ui(tui)=2u(tu).

Second,

div(uu)=j(uiuj)ei

so

udiv(uu)=uij(uiuj)=ui(jui)uj+uiuijuj;

but

div((uu)u)=div(uiuiujej)=j(uiuiuj)=2ui(jui)uj+uiuijuj,

hence

div((uu)u)=2udiv(uu)-uudiv(u),

and using (3) this is

div((uu)u)=2udiv(uu).

Third,

div(pu)=(p)u+pdiv(u),

and using (3) this is

div(pu)=(p)u.

Putting these three results into (8) gives

12t(uu)+12div((uu)u)+1ρdiv(pu)=0,

or

t(12ρuu)+div(12ρ(uu)u+pu)=0. (9)

We define

E=12ρuu.

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 kgm-1s-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ρuu rather than some other multiple of ρuu. Writing equation (9) using E gives

tE+div(Eu+pu)=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,

(vw)=vw+wv+v×curlw+w×curlv.

Using this identity v=u and w=u gives

uu=u×curlu-12(uu),

and therefore (7) can be written as

div(uu)=12(uu)-u×curlu. (10)

Taking the curl of (4) yields

tcurlu+curldiv(uu)=0;

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

tcurl(u)+curl(12(uu)-u×curlu)=0,

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

tcurlu=curl(u×curlu).

For vector fields v,w,

curl(v×w)=vdivw-wdivv+(v)(w)-(w)(v),

and with v=u and w=curlu we obtain

tcurlu=udivcurlu-curl(u)divu+(u)(curlu)-(curlu)(u).

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

tcurlu=(u)(curlu)-(curlu)(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

DDt=t+u,

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

DωDt=ωu.

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

DuDt+p=0.

6 Irrotational velocity fields

In this section unless we say otherwise we take n=3 and we suppose that curlu=0, which we describe as u being irrotational. We suppose also in this section that Ω is simply connected, which together with curlu=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)(jkϕekej)
= (iϕ)ikϕek
= 12k((iϕ)(iϕ))ek
= 12k(ϕϕ)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(ρuu)+p=0.

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

tρ+x(ρu)=0 (13)

and

t(ρu)+x(ρu2)+xp=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(ρ0u0+ρ0u1+ρ1u0+ρ1u1)=0,

i.e.

tρ1+ρ0xu1+u0xρ1+x(ρ1u1)=0.

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

tρ1+ρ0xu1+u0xρ1=0. (16)

Furthermore, (15) becomes

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

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

ρ0tu1+u0tρ1+2ρ0u0xu1+u02xρ1+γpρ0+ρ1xρ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

ρ0tu1+u0tρ1+2ρ0u0xu1+u02xρ1+γp0ρ0xρ1=0.

Combining this equation with (16) multiplied by u0 yields

ρ0tu1+ρ0u0xu1+γp0ρ0xρ1=0.

We define Dt=t+u0x, with which we can write the above equation as

ρ0Dtu1+γp0ρ0xρ1=0, (17)

and we can write (16) as

Dtρ1+ρ0xu1=0. (18)

Applying Dt to (18) gives

Dt2ρ1+ρ0xDtu1=0,

and then using (17) this becomes

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

or

Dt2ρ1-γp0ρ0x2ρ1=0,

which is a wave equation satisfied by ρ1.