The divergence operator can be defined on a vector, u, by
divu ≡
lim V→ 0
⌠ ⌡
S
n·udS
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.
1-D
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
divu
=
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
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) dy → ux(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) (−dx) → 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·udS
V
=
ux(x + h, y) − ux(x, y)
h
+
uy(x, y + k) − uy(x, y)
k
(10)
⇒
∂ux
∂x
+
∂uy
∂y
ash→ 0 andk→ 0.
(11)
3-D
From the result in 2-D, it is obvious that the divergence operator
in 3-D is expressed as
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
gradu ≡
lim V→ 0
⌠ ⌡
S
nudS
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
gradu =
⎛ ⎜ ⎜ ⎜ ⎜
⎜ ⎜ ⎜ ⎝
∂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
gradu = ∇u,
(17)
where
∇ ≡
⎛ ⎜ ⎜ ⎜ ⎜
⎜ ⎜ ⎜ ⎝
∂
∂x
∂
∂y
∂
∂z
⎞ ⎟ ⎟ ⎟ ⎟
⎟ ⎟ ⎟ ⎠
.
(18)
Curl
The curl operator is defined on a 3-D vector as
curlu ≡
lim V→ 0
⌠ ⌡
S
n ×udS
V
.
(19)
Using the nabla operator, the above can be written as
curlu
=
∇×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
The amount of flow that goes out from the control volume is
where n is the normal (outward) perpendicular to the boundary.
Thus, the flow that goes out from the side at x = x is
u ·ndy =
⎛ ⎜
⎜ ⎝
ux(x, y)
uy(x, y)
⎞ ⎟
⎟ ⎠
·
⎛ ⎜
⎜ ⎝
−1
0
⎞ ⎟
⎟ ⎠
dy = − ux(x, y) dy,
(23)
and the flow that goes out from the side x = x + dx is
u ·ndy =
⎛ ⎜
⎜ ⎝
ux(x + dx, y)
uy(x + dx, y)
⎞ ⎟
⎟ ⎠
·
⎛ ⎜
⎜ ⎝
1
0
⎞ ⎟
⎟ ⎠
dy = ux(x + dx, 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
dxdy.
(25)
Similarly, the net flow that goes out from the element in the
y-direction is
∂uy
∂y
dxdy.
(26)
Addition of eqs.(25, 26) is the net amount of flow
that goes out from the element, i.e.
(
∂ux
∂x
+
∂uy
∂y
) dxdy = ∇·udxdy.
(27)
Heat conduction
The net heat that goes out of an element is
∇·hdxdy,
(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
dxdy,
(29)
where ρ is the mass density and Cp is the specific heat so
∇·hdxdy = −ρCp
∂T
∂t
dxdy.
(30)
The Fourier law of heat conduction stipulates that the heat flux is
proportional to the gradient of the temperature, i.e.
h = − k ∇T,
(31)
where k is the thermal conductivity.
By combining Eq.(30) with Eq.(31), one obtains
∇·( k ∇T) = ρ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=x2y −3 xz in the direction of
(1, −2, 3) at (x, y, z) = (4, 3, −2).
Solution:
n = (1, −2, 3)/
√
14
,
and ∇u = (2 xy − 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)
∇·(uv)
=
∇u ·v + u ∇·v,
(40)
∇×(uv)
=
∇u ×v + u ∇×v,
(41)
∇·( u ×v)
=
v ·∇×u − u ·∇×v,
(42)
∇×( u ×v)
=
u ∇·v − v ∇·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)′ = u′v + uv′).
∇×∇u = 0.
The vector product of two identical vectors (∇×∇) is identically zero.
∇·∇×v = 0.
Using the identities of scalar triple product,
∇·∇×v
=
v ·∇×∇
=
∇×∇·v
=
0.
(47)
∇×(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 (uv)′ = u′v + uv′ 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 ·∇) u −v ∇·u − (u ·∇) v.
Footnotes:
1
ναβλα (nabla) = harp in Phoenicia (Greek). Also called
atled or simply del.2u ·n = || u || ||n|| cos θ = u cos θ.
File translated from
TEX
by
TTH,
version 4.03. On 22 Sep 2024, 10:38.