Professional Documents
Culture Documents
Lilia Ferrario
Semester 1, 2016
1
Contents
1 Curl and Divergence 2
1.1 Divergence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Curl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.3 Gradient Vector Fields . . . . . . . . . . . . . . . . . . . . . . . . 13
1.4 First Vector Form of Greens Theorem . . . . . . . . . . . . . . . 13
1.5 Second Vector Form of Greens Theorem . . . . . . . . . . . . . . 14
1
+
y A
+
(x,y)
2
Top: F (x, y + y) jx = Q(x, y + y)x.
Bottom: F (x, y) (j)x = Q(x, y)x.
Right: F (x + x, y) iy = P (x + x, y)y.
Left: F (x, y) (i)y = P (x, y)y.
Summing opposite pairs gives
Q
Top and Bottom: (Q(x, y + y) Q(x, y)) x y y x.
P
Right and Left: (P (x + x, y) P (x, y)) y x x y.
So, the net effect of the flow rates are
Q P
Flux across rectangle boundary + yx.
y x
Or
Flux across rectangle boundary Q P
+ .
Rectangle area y x
Finally, if we let the area of A approach zero we get the 2D formula for divergence
(or flux density)
P Q
div F = + .
x y
% s e t the a x i s range
a x i s ([ 5 5 5 5 ] )
% d e f i n e t h e p o i n t s where t h e g r a d i e n t s h o u l d be -
calculated
[ x , y ] = meshgrid ( [ 5 : 1 : 5 ] ) ;
c = 1;
% p l o t the s o l u t i o n
3
Uniform Expansion
6
0
y
6
6 4 2 0 2 4 6
x
q u i v e r ( x , y , cx , cy , 0 . 5 )
% t i d y up t h e p l o t
t i t l e ( ' Uniform Expansion ' )
xlabel ( 'x ' )
ylabel ( 'y ' )
% s e t the a x i s range
a x i s ([ 5 5 5 5 ] )
% d e f i n e t h e p o i n t s where t h e g r a d i e n t s h o u l d be -
calculated
[ x , y ] = meshgrid ( [ 5 : 1 : 5 ] ) ;
4
Uniform Rotation
6
0
y
6
6 4 2 0 2 4 6
x
c = 1;
% p l o t the s o l u t i o n
q u i v e r ( x , y , cy , cx , 0 . 5 )
% t i d y up t h e p l o t
t i t l e ( ' Uniform R o t a t i o n ' )
xlabel ( 'x ' )
ylabel ( 'y ' )
% s e t the a x i s range
a x i s ([ 5 5 5 5 ] )
% d e f i n e t h e p o i n t s where t h e g r a d i e n t s h o u l d be -
calculated
5
Shearing Flow
6
0
y
6
6 4 2 0 2 4 6
x
[ x , y ] = meshgrid ( [ 5 : 1 : 5 ] ) ;
% p l o t the s o l u t i o n
q u i v e r ( x , y , y , 0x , 0 . 5 )
% t i d y up t h e p l o t
t i t l e ( ' S h e a r i n g Flow ' )
xlabel ( 'x ' )
ylabel ( 'y ' )
% s e t the a x i s range
a x i s ([ 5 5 5 5 ] )
6
Whirlpool Effect
6
0
y
6
6 4 2 0 2 4 6
x
% d e f i n e t h e p o i n t s where t h e g r a d i e n t s h o u l d be -
calculated
[ x , y ] = meshgrid ( [ 5 : 1 : 5 ] ) ;
% p l o t the s o l u t i o n
r = x . x+y . y ;
r ( r==0) = 1 ; %( a v o i d 0 / 0 )
q u i v e r ( x , y , y . / r , x . / r , 0 . 5 )
% t i d y up t h e p l o t
t i t l e ( ' Whirlpool E f f e c t ' )
xlabel ( 'x ' )
ylabel ( 'y ' )
7
1.2 Curl
Curl Definition
Example
i j k
curl F = x y z
xz xyz y 2
y 2 y 2
xyz xz xyz xz
= i j+ k
y z x z x y
= (2y xy) i (0 x) j + (yz 0) k
= y(2 + x)i + xj + yzk.
8
y A
(x,y)
i j k
curl F =
x y z
y 2 z x3 xy
xy x3 xy y 2 z
= + i j
y z x z
x3 y 2 z
+ k
x y
(x 0) i y y 2 j + 3x2 2yz k
=
= xi (y y 2 )j (3x2 + 2yz)k.
9
Right: F (x + x, y) jy = Q(x + x, y)y.
Left: F (x, y) (j)y = Q(x, y)y.
Summing opposite pairs gives
P
Top and Bottom: (P (x, y + y) P (x, y)) x y y x.
Q
Right and Left: (Q(x + x, y) Q(x, y)) y x x y.
Or
Flow rate around rectangle boundary Q P
.
Rectangle area x y
Finally, if we let the area of A approach zero we get the k-component of the
curl (or circulation density)
Q P
(curl F ) k = .
x y
10
(curl F ) k = (y) = 1.
y
The constant circulation density indicates rotation at every point. As c < 0,
the rotation is clockwise.
curl(f ) = 0.
i j k
curl(f ) = x y z
f f f
x y z
2
2f
2
2f
f f
= i j
yz zy xz zx
2
2f
f
+ k
xy yx
= 0.
Example 12 (Conservative Vector Fields) Show that the vector field F (x, y, z) =
xzi + xyzj y 2 k is not conservative.
11
In Example 6, we showed that curl F = y(2 + x)i + xj + yzk 6= 0. So, F
is not conservative.
Firstly,
i j k
curl F = x y z
y 2 z 3 3
2xyz 3xy z 2 2
so F is conservative.
Now, we have fx = y 2 z 3 , fy = 2xyz 3 and fz = 3xy 2 z 2 .
Integrating fx with respect to x gives f (x, y, z) = xy 2 z 3 + g(y, z). Differen-
tiating this with respect to y shows fy (x, y, z) = 2xyz 3 + gy (y, z).
Comparison with fy = 2xyz 3 gives gy (y, z) = 0.
Thus, g(y, z) = h(z) and fz (x, y, z) = 3xy 2 z 2 + h0 (z). Comparison with
fz = 3xy 2 z 2 shows h0 (z) = 0.
Thus
f (x, y, z) = xy 2 z 3 + K.
Irrotational Curl
If curl F = 0 at a point P , the fluid is free from rotations at P . F is called
irrotational at P . That is, there is no whirlpool or eddy at P .
If curl F = 0, a tiny paddle wheel moves with the fluid but does not rotate
about its axis.
If curl F 6= 0, the paddle wheel rotates about its axis.
div curl
If F is a vector field on R3 , then curl F is also a vector field on R3 . As such,
we can compute its divergence.
div curl F = 0.
12
By the definitions of divergence and curl,
R Q P R Q P
div curl F = div i+ j+ k
y z z x x y
R Q P R Q P
= + +
x y z y z x z x y
2R 2Q 2P 2R 2Q 2P
= + +
xy xz yz yx zx zy
= 0.
2f 2f 2f
div(f ) = (f ) = 2
+ 2 + 2.
x y z
2f 2f 2f
2 f = 2
+ 2 + 2.
x y z
We can also apply the Laplace operator to a vector field F = P i + Qj + Rk
in terms of its components
2 F = 2 P i + 2 Qj + 2 Rk.
13
Theorem 4 (First Vector Form of Greens Theorem) Hence, we can now
rewrite the equation in Greens Theorem in the vector form as
I I ZZ
F dr = P dx + Q dy = (curl F ) k dA.
C C
D
Because the normal component leads to the flow across C, the value of this
integral is the flux of F across C.
14