0% found this document useful (0 votes)
79 views5 pages

AFD Note01 PDF

1. The document discusses mathematical fundamentals needed for fluid dynamics, including differentiation, integration, and vector calculus. It reviews the definitions of the derivative, gradient, divergence, and curl. 2. The gradient of a scalar function represents the direction and rate of change of the function. The divergence of a vector field represents the net outward flux from a volume. 3. An example calculation demonstrates how the divergence theorem relates the flux outward from a volume to the divergence of the vector field within the volume. Understanding these mathematical concepts is key to fluid dynamics.

Uploaded by

zcap excel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views5 pages

AFD Note01 PDF

1. The document discusses mathematical fundamentals needed for fluid dynamics, including differentiation, integration, and vector calculus. It reviews the definitions of the derivative, gradient, divergence, and curl. 2. The gradient of a scalar function represents the direction and rate of change of the function. The divergence of a vector field represents the net outward flux from a volume. 3. An example calculation demonstrates how the divergence theorem relates the flux outward from a volume to the divergence of the vector field within the volume. Understanding these mathematical concepts is key to fluid dynamics.

Uploaded by

zcap excel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

ME 563 - Intermediate Fluid Dynamics - Su

Lecture 1 - Math fundamentals


The subject of fluid dynamics brings to mind pipes, pumps, wind tunnels, fans and any number
of other engineering devices. However, to study fluid dynamics effectively requires some basic
mathematical tools. (Interestingly, while fluid dynamics is thought to be very much the domain of
engineers, much work in fluids, particularly in Europe, is performed in applied math, math, applied
physics and physics departments.) In this class it will be assumed that you are familiar with the
basic techniques of differentiation and integration, partial derivatives, differential equations and
vector calculus. You may not remember everything from your math courses but you should at
least know where to find things (tables of integrals, for example). What is important is your
mathematical intuition.
The following expression should look vaguely familiar:

f (x0 + ∆x) − f (x0 − ∆x)


lim =?
∆x→0 2∆x
If a function f (x) is differentiable at a point x0 , then this gives the value of the derivative, f 0 (x0 ),
at that point, that is

f (x0 + ∆x) − f (x0 − ∆x)


lim = f 0 (x0 ) if f is differentiable at x0 . (1)
∆x→0 2∆x
This expression gives the value of f 0 (x0 ) if f is differentiable, but just because the limit in (1)
exists doesn’t mean that f is differentiable at x0 (what’s a counterexample?). It turns out, if the
one-sided limits are equal –

f (x0 + ∆x) − f (x0 ) f (x0 ) − f (x0 − ∆x)


lim = lim (with ∆x > 0) (2)
∆x→0 ∆x ∆x→0 ∆x
then f is differentiable at x0 , and f 0 (x0 ) is equal to the value of the one-sided limits of (2), which
is then equal to the two-sided limit of (1).
Thinking of derivatives in terms of differences (hopefully) seems completely trivial, but un-
derstanding (1) and (2) implicitly is key to subjects like fluids that rely heavily on differential
equations (and if it were easy, it wouldn’t have taken Isaac Newton to come up with calculus).
This is especially true since data (whether experimental or computational) is digital, and discrete
math is used extensively.

1 Vector analysis
Vector analysis is vital to fluid mechanics because the most fundamental descriptive quantity in
fluid flow, the velocity, is a vector. We’ll start with the three-dimensional Cartesian coordinate
system with unit vectors êx , êy and êz . Consider the vectors a = ax êx + ay êy + az êz and b =
bx êx + by êy + bz êz . The dot product (or scalar product) of a and b is

a · b = |a| |b| cos θ = ax bx + ay by + az bz (3)

where | · | denotes the length, or magnitude, of a vector, and θ is the angle between the vectors.
The cross product (or vector product) of a and b, a × b, is more complicated. Its magnitude
is given by

|a × b| = |a| |b| sin θ

1
Figure 1: The direction of the cross product a × b.

where θ is the (smallest) angle between a and b (i.e. θ ≤ 180◦ ). The direction of a × b is perpen-
dicular to the plane of a and b, in the right-hand sense of rotation from a to b through the angle θ
(Fig. 1). Because of this direction definition, the cross product anti-commutes, i.e. a × b = −b × a.
It turns out that the most convenient way to express the cross product is as a determinant –

êx êy êz

a × b = ax ay az = (ay bz − az by )êx + (az bx − ax bz )êy + (ax by − ay bx )êz (4)
bx by bz

Easily seen through (4) are the identities êx × êy = êz , êy × êz = êx , and êz × êx = êy .
Of particular interest is the operator ∇ (variously called the gradient operator, del operator, or
grad operator). We can write ∇ as
∂ ∂ ∂
∇ = êx + êy + êz (5)
∂x ∂y ∂z
∇ has no meaning unless it’s operating on something. The familiar operations are the gradient,
the divergence, the curl, and the Laplacian.

1.1 The gradient and directional derivative


When ∇ operates on a scalar quantity, φ(x, y, z), the result is called the gradient of φ, and is
written
∂φ ∂φ ∂φ
∇φ = êx + êy + êz (6)
∂x ∂y ∂z
To interpret this, consider a unit vector ŝ = sx êx + sy êy + sz êz , and let s be the distance variable
along this vector. Without loss of generality, we will assume that s = 0 at the origin, x = 0. Then,
the coordinates of any point on the s-axis are

x = sx s
y = sy s
z = sz s (7)

Suppose we want to know the rate of change of φ in the s direction, at the origin. This dφ/ds is
also known as the directional derivative. By the chain rule, this can be written (note the selective
use of partial derivatives)
dφ ∂φ dx ∂φ dy ∂φ dz
= + +
ds ∂x ds ∂y ds ∂z ds
∂φ ∂φ ∂φ
= sx + sy + sz (8)
∂x ∂y ∂z

2
Figure 2: Sample volume for illustrating the divergence.

where we have used (7). By inspection, we have


= ∇φ · ŝ (9)
ds
that is, the rate of change of a scalar function φ in an arbitrary direction is equal to the scalar
product of the gradient ∇φ with the unit vector, ŝ, in that direction. Using (3), we can also write
(since |ŝ|=1)


= |∇φ| cos θ (10)
ds
where θ is the angle between ∇φ and ês . So we can also say that dφ/ds is the projection of ∇φ
onto the direction s. Finally, observe from (10) that ∇φ is perpendicular to lines of constant φ.

1.2 The divergence and divergence theorem


Now let’s consider what happens when we apply ∇ to vector quantities. Consider a vector field
f = fx êx + fy êy + fz êz . (We call this a vector ‘field’ because it’s defined over a volume in space,
not just at a single point.) The dot product of ∇ with f is called the divergence, and is given by

∂fx ∂fy ∂fz


∇·f = + + (11)
∂x ∂y ∂z
To understand the name ‘divergence’, let the three-dimensional volume V be a cube with
infinitesimal side lengths dx = dy = dz, as in Fig. 2. We can write the volume of V as dx dy dz = dV .
Assume that on each face of the cube, f is constant. Now consider face 1 in the figure. The
component of f that points out of the cube on face 1 is fx . Because f is constant on the face,
we can write this as fx (x = dx). On face 4, the component of f that points out of the cube is
−fx (x = 0). The area of each of these two faces is dy · dz, so the net volume flux out of the cube
through faces 1 and 4 can be written

Flux out of faces 1 and 4 = [fx (x = dx) − fx (x = 0)] dy dz (12)

We can go through similar arguments for the remaining faces, and we get

Flux out of faces 2 and 5 = [fy (y = dy) − fy (y = 0)] dx dz


Flux out of faces 3 and 6 = [fz (z = dz) − fz (z = 0)] dx dy (13)

3
Now notice that we can rewrite (12) as

fx (x = dx) − fx (x = 0)
[fx (x = dx) − fx (x = 0)] dy dz = dx dy dz
dx
fx (x = dx) − fx (x = 0)
= dV
dx
∂fx
≈ dV (14)
∂x
where the last part is true in the limit of dx approaching zero. Similarly, the flux out of faces 2
and 5 can be written (∂fy /∂y) dV , and out of faces 3 and 6 can be written (∂fz /∂z) dV . Referring
back to (11), given a vector f , the net volume flux out of the volume dV equals the product of ∇ · f
and dV . Thus ∇ · f is a measure of the spread, or divergence, of the vector field f .
This somewhat non-rigorous analysis can be generalized as the divergence theorem. Given
an arbitrary volume V , enclosed by the surface S, with outward unit normal vector n at all points
on S, the divergence theorem states
Z Z
∇ · f dV = f · n dS. (15)
V S

This will be very useful when we get to the equations for fluid flow.

1.3 The curl and Stokes’ theorem


The cross product of ∇ with the vector f is called the curl, and is given by

êx êy êz      
∂ ∂fz ∂fy ∂fx ∂fz ∂fy ∂fx
∂ ∂
∇ × f = ∂x ∂y ∂z = − êx + − êy + − êz (16)
f ∂y ∂z ∂z ∂x ∂x ∂y
x f y f z

To see where the term ‘curl’ comes from, look at Fig. 2 again, but this time only consider face
6. Call this the surface S, with area dx dy = dS. We’ll define a direction of travel around the
border of S in the counter-clockwise direction. Assume also that the vector field f is constant on
each edge of S. Starting at the the origin, we first travel along the edge defined by y = 0. The
component of f parallel to the direction of travel on this edge is fx (y = 0). We can then define a
contour integral (a sort of net travel) as fx (y = 0) dx. The next edge is the one defined by x = dx,
along which the net travel fy (x = dx) dy. Going all the way back around to the origin, we end up
with (taking care with the signs)

Net travel = fx (y = 0) dx + fy (x = dx) dy − fx (y = dy)) dx − fy (x = 0)) dy


= [fy (x = dx) − fy (x = 0)] dy − [fx (y = dy) − fx (y = 0)] dx
fy (x = dx) − fy (x = 0) fx (y = dy) − fx (y = 0)
= dS − dS
dx dy
 
∂fy ∂fx
≈ − dS (17)
∂x ∂y

Again, this last expression is true for dx and dy approaching zero. Comparing with (16), (17) is
just the z-component of ∇ × f . By the direction convention for integration around a closed contour,
êz is the normal vector for face 6 (our surface S) in Fig. 2 for the counter-clockwise integration
direction. Thus, the integral of f around the contour enclosing S equals the component of ∇ × f
in the direction normal to S multiplied by dS. In the context of the integration around the closed
contour, the use of the term ‘curl’ is obvious.

4
Figure 3: Direction convention for integration around a closed contour, C. The vector n̂ is the unit
normal to the surface.

Stokes’ theorem generalizes this. Let S be a two-dimensional surface enclosed by the curve
C. Then
Z Z
(∇ × f ) · n dS = f · dx (18)
S C

where the direction of the line integral relates to the direction of the normal vector n in the right-
hand sense (Fig. 3).

1.4 The Laplacian


If we take the divergence of a gradient, we get the Laplacian, which is defined (φ is a scalar)

∂2φ ∂2φ ∂2φ


∇2 φ = ∇ · (∇φ) = + 2 + 2 (19)
∂x2 ∂y ∂z

applying (6) and (11). The Laplacian is interesting in relation to quantities that undergo gradient
diffusion. An example is heat, which diffuses proportionally to the gradient in temperature. If we
let φ be the temperature and κ be the thermal diffusivity, then the temperature flux vector can be
written (note the minus sign)

Temperature flux vector = −κ∇φ (20)

The Laplacian can thus be interpreted by substituting −∇φ for f in the discussion of the divergence
in Sec. 1.2. That is, the Laplacian describes the net flux of the scalar quantity into a volume.
Consider a uniform temperature field with a sharp positive spike somewhere in it. The spike will
have a strongly negative Laplacian value, which means that heat will flow out from the region of
the spike, which makes sense, since diffusivity tends to smooth out sharp gradients. Another scalar
quantity that undergoes gradient diffusion is species concentration – a vector quantity that does is
momentum, but we will need more math tools to consider the diffusion of vector quantities.

You might also like