The Euler equations are a system of partial differential equations
that govern the movement of ideal fluids,
i.e. fluids without viscosity.
Incompressible fluids
In a fluid moving according to the velocity field v(r,t),
the acceleration felt by a particle is given by
the material acceleration fieldw(r,t),
which is the material derivative of v:
w≡DtDv=∂t∂v+(v⋅∇)v
This infinitesimal particle obeys Newton’s second law,
which can be written as follows:
wm=wρdV=f∗dV
Where m and dV are the particle’s mass and volume,
and ρ is the fluid density, which we assume
to be constant in space and time in this case.
Now, the effective force densityf∗ represents the net force-per-particle.
By dividing the law by dV, we find:
ρw=f∗
Next, we want to find another expression for f∗.
We know that the overall force F on an arbitrary volume V of the fluid
is the sum of the gravity body force Fg,
and the pressure contact force Fp on the enclosing surface ∂V.
Using the divergence theorem, we then find:
F=Fg+Fp=∫VρgdV−∮∂VpdS=∫V(ρg−∇p)dV=∫Vf∗dV
Where p(r,t) is the pressure field,
and g(r,t) is the gravitational acceleration field.
Combining this with Newton’s law, we find the following equation for the force density:
f∗=ρw=ρg−∇p
Dividing this by ρ,
we get the first of the system of Euler equations:
w=DtDv=g−ρ∇p
The last ingredient is incompressibility:
the same volume must simultaneously
be flowing in and out of an arbitrary enclosure ∂V.
Then, by the divergence theorem:
0=∮∂Vv⋅dS=∫V∇⋅vdV
Since V is arbitrary,
the integrand must vanish by itself,
leading to the continuity relation:
∇⋅v=0
Combining this with the equation for w,
we get a system of two coupled differential equations:
these are the Euler equations for an incompressible fluid
with spatially uniform density ρ:
DtDv=g−ρ∇p∇⋅v=0
Compressible fluids
If the fluid is compressible,
the condition ∇⋅v=0 no longer holds,
so to update the equations we demand that mass is conserved:
the mass evolution of a volume V
is equal to the mass flow through its boundary ∂V.
Applying the divergence theorem again:
0=dtd∫VρdV+∮∂Vρv⋅dS=∫Vdtdρ+∇⋅(ρv)dV
Since V is arbitrary, the integrand must be zero.
The new continuity equation is therefore:
0=dtdρ+∇⋅(ρv)=dtdρ+v⋅∇ρ+ρ∇⋅v=DtDρ+ρ∇⋅v
When the fluid gets compressed in a certain location, thermodynamics
states that the pressure, temperature and/or entropy must increase there.
For simplicity, let us assume an isothermal and isentropic fluid,
such that only p is affected by compression, and the
fundamental thermodynamic relation
reduces to dE=−pdV.
Then the pressure is given by a thermodynamic equation of state p(ρ,T),
which depends on the system being studied
(e.g. the ideal gas law p=ρRT).
However, the quantity in control of the dynamics
is not p, but the internal energy E.
Dividing the fundamental thermodynamic relation by mDt,
where m is the mass of dV:
DtDe=−pDtDv
With e and v the specific (i.e. per unit mass)
internal energy and volume.
Using that ρ=1/v,
and substituting the above continuity relation:
DtDe=−pDtD(ρ1)=ρ2pDtDρ=−ρp∇⋅v
It makes sense to see a factor −∇⋅v here:
an incoming flow increases e.
This gives us the time-evolution of e due to compression,
but its initial value is another equation of state e(ρ,T).
Putting it all together,
Euler’s system of equations now takes the following form:
DtDv=g−ρ∇pDtDρ=−ρ∇⋅vDtDe=−ρp∇⋅v
What happens if the fluid is actually incompressible,
so ∇⋅v=0 holds again? Clearly:
DtDv=g−ρ∇pDtDρ=0DtDe=0
So e is constant, which is in fact equivalent to saying that ∇⋅v=0.
The equation for ρ enforces conservation of mass
for inhomogeneous fluids, i.e. fluids that are “lumpy”,
but where the size of the lumps is conserved by incompressibility.
References
B. Lautrup,
Physics of continuous matter: exotic and everyday phenomena in the macroscopic world, 2nd edition,
CRC Press.