#11 (09/27/2023)

Divergence

The divergence operator can be defined on a vector, u, by
div u
lim
V→ 0 



S 
n·u dS

V
,
(1)
where n is the normal to the boundary and V is the volume of an object and the integral range is over the surface (boundary) of the object. This definition has an advantage over other definitions as it is independent of the coordinate system.
divergence.jpg

1-D

div_1d.jpg
In 1-D, an interval (x, x + h) is V in eq.(1) and its boundary is the two end points x and x + h. The normal, n, at x + h is +1 and is −1 at x = x. Thereby, eq.(1) becomes

div u
=

lim
h→ 0 
(+1) ×u(x+h) +(−1) ×u(x)

h
(2)
=

lim
h→ 0 
u(x + h) − u(x)

h
(3)
=
u′(x).
(4)
This is of course the ordinary differentiation in 1-D.

2-D

div_2d.jpg
In 2-D, a rectangle is V in eq.(1) and its boundary is the contour integral that surrounds the rectangle. The normals are the normal vectors perpendicular to each side of the rectangle. Therefore, it is necessary to compute eq.(1) in four different segments as

Path A

Along the path A, n = (0,−1) so n·u = − uy(x, y). Thus



A 
=
x + h

x 
uy(x, y) dx → −uy(x, y) h.
(5)

Path B

Along the path B, n = (1, 0) so n·u = ux(x + h, y). Thus



B 
=
y + k

y 
ux(x + h, y) dyux(x + h, y) k.
(6)

Path C

Along the path C, n=(0,1) so n·u = uy(x,y+k). Thus



C 
=
x

x + h 
uy(x, y + k) (−d x) → uy(x, y + k) h.
(7)

Path D

Along the path D, n = (−1, 0) so n·u = −ux(x, y). Thus



D 
=
y

y + k 
ux(x, y) (−dy) → − ux(x, y) k.
(8)
So the contour integral is



A + B + C + D 
= k ( ux(x + h, y)−ux(x, y)) +h ( uy(x, y + k)−uy(x, y)).
(9)
Thus



S 
n·u dS

V
=
ux(x + h, y) − ux(x, y)

h
+ uy(x, y + k) − uy(x, y)

k
(10)
ux

x
+uy

y
   as     h→ 0    and     k→ 0.
(11)

3-D

From the result in 2-D, it is obvious that the divergence operator in 3-D is expressed as
div u = ux

x
+uy

y
+uz

z
.
(12)
The divergence operator, div, is often written as

div u = ∇·u,
(13)
where ∇ 1 is a differential operator defined as
∇ ≡








x

y

z








.
(14)
As will be shown in class, the physical interpretation of the divergence operator is the net flow in the rectangle, i.e. the difference between the flows that comes in and the flow that flows out of the rectangle.

Gradient

Similar to the divergence operator, the gradient operator is defined as

grad u
lim
V→ 0 



S 
n u dS

V
.
(15)
Note that u is a scalar function and the result of gradient is a vector.
By applying this definition to a rectangular element in the Cartesian coordinate system, one can obtain

grad u =







u

x
u

y
u

z








.
(16)
Note that the gradient operator operates on a scalar and the result is a vector. Using a symbol , ∇ (nabla), the gradient on a scalar function, u, can be expressed as
grad u = ∇u,
(17)
where
∇ ≡








x

y

z








.
(18)

Curl

The curl operator is defined on a 3-D vector as

curl u
lim
V→ 0 



S 
n ×u dS

V
.
(19)
Using the nabla operator, the above can be written as

curl u
=
∇×u
(20)
=






i
j
k

x

y

z
ux
uy
uz






.
(21)
Note that the curl is defined on a 3-D vector and the result is also a 3-D vector.
It should be noted that the three differential operators are reduced to an ordinary differentiation in 1-D.

du

dx




∇·u
Divergence
u
Gradient
∇×u
Curl

Physical interpretation of divergence

div_physical.jpg
The amount of flow that goes out from the control volume is

u ·n,2
(22)
where n is the normal (outward) perpendicular to the boundary.
divergence.jpg
Thus, the flow that goes out from the side at x = x is

u ·n  d y =


ux(x, y)
uy(x, y)



·


−1
0



 d y = − ux(x, y) dy,
(23)
and the flow that goes out from the side x = x + dx is

u ·n  d y =


ux(x + d x, y)
uy(x + d x, y)



·


1
0



 d y = ux(x + d x, y) dy,
(24)
so the net flow that goes out from the element in the x-direction is

(ux(x + dx, y) − ux(x, y)) dy
=

ux(x, y) + ux(x, y)

x
dx + …−ux(x, y)
dy
=
ux

x
dx dy.
(25)
Similarly, the net flow that goes out from the element in the y-direction is

uy

y
dx dy.
(26)
Addition of eqs.(25, 26) is the net amount of flow that goes out from the element, i.e.

( ux

x
+ uy

y
) dx dy = ∇·u dx dy.
(27)

Heat conduction

The net heat that goes out of an element is

∇·h dx dy,
(28)
where h is the heat flux vector (heat per second). The rate of heat loss in the element is (note the minus sign)

−ρCp T

t
dx dy,
(29)
where ρ is the mass density and Cp is the specific heat so

∇·h dx dy = −ρCp T

t
dx dy.
(30)
The Fourier law of heat conduction stipulates that the heat flux is proportional to the gradient of the temperature, i.e.

h = − kT,
(31)
where k is the thermal conductivity.
By combining Eq.(30) with Eq.(31), one obtains

∇·( kT) = ρCp T

t
.
(32)
Equation (32) is known as the transient heat conduction equation.

Equation of continuity

The amount of mass that flows out of an element is

∇·(ρv),
(33)
which must be equal to the mass loss per unit time of

∂ρ

t
,
(34)
which yields

∂ρ

t
+ ∇·(ρv) = 0.
(35)
which is known as the equation of continuity.

Directional derivative (gradient)

The directional derivative, ∂u/∂n, of a function, u, in the direction of n is defined as

u

n
≡ ∇u ·n,
(36)
where the vector, n, is a unit vector which represents the direction of the change of rate of v. Note that if n is in the direction of the x axis, ∂u/∂n = ∂u/∂x.
Example: Compute the directional derivative of u=x2 y −3 x z in the direction of (1, −2, 3) at (x, y, z) = (4, 3, −2).
Solution:
n = (1, −2, 3)/

 

14
 
,
and ∇u = (2 x y − 3 z, x2, −3 x) at (4, 3, − 2) is (30, 16, − 12). So
u

n
= 30 − 32 − 36




14
= − 38




14
.

Identities among differential operators


∇·(αu + βv )
=
α∇·u + β∇·v,
(37)
∇( αu + βv)
=
α∇u + β∇v,
(38)
∇×( αu + βv)
=
α∇×u+ β∇×v,
(39)
∇·(u v)
=
u ·v + u ∇·v,
(40)
∇×(u v)
=
u ×v + u ∇×v,
(41)
∇·( u ×v)
=
v ·∇×uu ·∇×v,
(42)
∇×( u ×v)
=
u ∇·vv ∇·u + ( v·∇)u − (u·∇) v,
(43)
∇(u ·v)
=
(u ·∇) v + (v ·∇) u+ u ×( ∇×v) + v ×( ∇×u),
(44)
∇·∇×v
=
0,
(45)
∇×∇u
=
0.
(46)
When proving various identities that involve vectors and their derivatives (the divergence, gradient and curl), it is important to remember that the nabla (∇) works as (1) a vector and as (2) a differential operator ((uv)′ = uv + u v′).

  1. ∇×∇u = 0.
    The vector product of two identical vectors (∇×∇) is identically zero.

  2. ∇·∇×v = 0.
    Using the identities of scalar triple product,
    ∇·∇×v
    =
    v ·∇×∇
    =
    ∇×∇·v
    =
    0.
    (47)

  3. ∇×(u ×v).
    The vector triple product identity is
    ∇×(u ×v)
    =
    (∇·v) u −(∇·u) v.
    (48)
    Note that ∇ in the right hand side operates on both u and v so (u v)′ = uv + u v′ needs to be recursively applied. The first term in the right hand side is expanded as
    u ∇·v + (v ·∇) u,
    and the second term is expanded as
    v ∇·u + (u ·∇) v,
    so the right hand side is
    u ∇·v + (v ·∇) uv ∇·u − (u ·∇) v.


Footnotes:

1 ναβλα (nabla) = harp in Phoenicia (Greek). Also called atled or simply del.
2 u ·n = || u || ||n|| cos θ = u cos θ.


File translated from TEX by TTH, version 4.03.
On 25 Sep 2023, 23:12.