Lecture 10 2022
Lecture 10 2022
∂ρ
+ ∇ · (ρu) = 0
∂t
Expanding the second term on the left hand side of the equation, we can write:
∂ρ
+ (u · ∇) + ρ∇ · u = 0
∂t
The above equation can be written as:
1 Dρ
= −∇ · u
ρ Dt
1
2
© Gaurav Tomar(2022)
Of course for cylindrical and spherical coordinate systems there would be additional terms. Why?
1
For a given fluid particle, mass m is conserved and we can write, ρ = m/ν, where, ν is
the volume particle. Substituting into the mass conservation equation:
ν D(m/ν)
= −∇ · u
m Dt
Thus, we get:
1 Dν
=∇·u
ν Dt
Therefore, divergence of the velocity field (of course, Eulerian framework) is essentially
the rate of change of volume per unit volume of the given fluid particle at the location
where ∇ · u is being evaluated. In other words, divergence of the velocity is the rate of
expansion or the rate of dilatation. If ∇ · u is negative it refers to the contraction of the
fluid particle.
For an incompressible fluid, the volume and thus the density of a given particle remains
constant, i.e. ∇ · u = 0. If ∇ · u = 0 is true everywhere and at all times, then the fluid
is refered to as incompressible fluid.
2.2 Streamfunction
As noted above that for incompressible flows the velocity field needs to be solenoidal i.e.
∇ · u = 0. In fact for steady compressible flows also a similar expression can be written
as:
∇ · (ρu) = 0.
Now, we know that the divergence of a curl is zero, so we can write:
u=∇×B
where B is some vector called the ’vector potential’ of u. Similarly, for steady-compressible
flows: ρu = ∇ × B.
For a two dimensional incompressible flow:
B = (0, 0, ψ)
Thus,
∂ψ ∂ψ
u = uî + v ĵ = î − ĵ
∂y ∂x
The above velocity field satisfies the divergence free condition.
A small increment in the value of ψ can be written as:
∂ψ ∂ψ
dψ = dy + dx
∂y ∂x
Integrating the above expression, we can write:
Z Z
∂ψ ∂ψ
dψ = dy + dx
∂y ∂x
Z
=⇒ ψ − ψ0 = (udy − vdx)
The schematic below depicts the above integral. If the flow is in the counter-clockwise
direction (i.e. u > 0 and v < 0 in the schematic shown) then the quantity (ψ − ψ0 ) will
be positive.
2
y ψ
P
ψ0 udy
−vdx
O
x
Figure 1: Schematic showing a contour joining locations O and P where the streamfunc-
tions holds a value of ψ0 and ψ, respectively.
In polar coordinates:
Continuity equation is given by,
∂ur 1 ∂uθ
+ = 0.
∂r r ∂θ
Writing u = ∇ × B, where B = ψ k̂, we get:
1 ∂ψ ∂ψ
u= r̂ − θ̂.
r ∂θ ∂r
Thus,
1 ∂ψ ∂ψ
ur = and uθ = −
r ∂θ ∂r
In Axisymmetric Coordinates:
In axisymmetric coordinates the continuity equation is given by:
1 ∂(ur r) ∂uz
+ = 0.
r ∂r ∂z
which can also be written as:
∂(ur r) ∂(ruz )
+ = 0.
∂r ∂z
3
Now, similar to the two-dimensional case, we can write:
∂ψ ∂ψ
rur = and ruz = −
∂r ∂z
Thus,
1 ∂ψ 1 ∂ψ
ur = and uz = −
r ∂r r ∂z
Note that the dimensions of the stream function for the axi-symmetric case are different
from that for the 2D-cartesian or polar case discussed earlier. This particular stream
function for axisymmetric case is called the Stokes streamfunction.
Spherical Coordinates:
In spherical coordinates, the velocity components can be written in terms of the stream-
function as:
1 ∂ψ 1 ∂ψ
ur = 2 and uθ = −
r sin θ ∂θ r sin θ ∂r