Appendix B

Mathematical Tools and Resources

B.1. Partial and Total Differentiation

In fluid mechanics, the field quantities like fluid velocity, fluid density, pressure, etc. may vary in time, t, and across three-dimensional space, herein specified by three coordinates as a vector x = (x, y, z) or (x1, x2, x3). For multivariable functions, such as f(x1, x2, x3, t), there are important differences between partial and total derivatives, for example between ∂f/∂t and df/dt.

Partial Differentiation

(/∂t)f(x1, x2, x3, t) means differentiate the function f(x1, x2, x3, t) with respect to time, t, treating all other independent variables as constants. Additional information and specifications are not needed. And, multiple partial derivatives that operate on different variables can be applied in either order, that is, (/∂t)(∂f/∂xi) = (/∂xi)(∂f/∂t) and (/∂xi)(∂f/∂xj) = (/∂xj)(∂f/∂xi).

Total Differentiation

dX1/dt=u1,dX2/dt=u2,anddX3/dt=u3.

image (B.1.3)

When the various parts of (B.1.3) are substituted into (B.1.1), a final form for Df/Dt emerges:

DDtf(x,t)=ft+u1fx1+u2fx2+u3fx3=ft+u·f=ft+uifxi,

image (B.1.4)

which is the same as (3.4). Here the final two equalities involve vector and index notation, respectively. These notations are described in Chapter 2. All three forms of Df/Dt are used in this text. Total and partial differentiation are the same when they operate on the same independent variable and this independent variable is the only independent variable.

Uses of Partial and Total Derivatives

There are situations in the study of fluid mechanics where a first-order partial differential equation, involving both time and space derivatives, like:

A(x,t)f(x,t)t+B(x,t)f(x,t)x=g(x,t,f)

image (B.1.5)

needs to be solved to find f(x,t). To accomplish this task, assume there exists a curve C in x-t space described by equations x = X(s) and t = T(s) that allows (B.1.5) to be recast as a total derivative with respect to s. Here s is the arc length in x-t space along the curve C. The total derivative of f along s is:

dfds=f(x,t)tdT(s)ds+f(x,t)xdX(s)ds.

image (B.1.6)

Thus, (B.1.5) can be simplified to:

df/ds=gwhendT/ds=AanddX/ds=B.

image (B.1.7)

Taking a ratio of the last two equations produces:

dX/dT=B(X,T)/A(X,T),

image (B.1.8)

which parametrically specifies a set of curves C. Along any such curve, df/ds = g and this equation can be integrated starting from an initial condition or boundary condition to determine f.
Example B.1
Consider one-dimensional unidirectional wave propagation as specified by:

f(x,t)t+U(t)f(x,t)x=0wheref(x,0)=ϕ(x),

image (B.1.9, B.1.10)

 
f represents a propagating disturbance of some type, and U is the propagation velocity. In this case A = 1 and B = U; thus, (B.1.8) specifies the C curves via

dXdT=U(T),orX(T)=Xo+0TU(τ)dτ.

image (B.1.11)

 
With A = 1, the middle equation of (B.1.7) implies T = To + s, so (B.1.11) leads to:

x=X(s)=Xo+oTo+sU(τ)dτ,andt=T(s)=To+s.

image (B.1.12, B.1.13)

 

dfds=0,orfo=f(x,t)=f(X(s),T(s))=f(Xo+0To+sU(τ)dτ,To+s).

image (B.1.14)

 
Here fo is the constant value of f(x,t) that is found when s varies along a particular C curve, and Xo and To are constants of integration that specify the x-t location of s = 0 on this C curve. These constants can be evaluated using the initial condition specified in (B.1.10) in terms of ϕ at T = To + s = 0, and the last form for f in (B.1.14):

fo=f(Xo,0)=ϕ(Xo)

image (B.1.15)

 
Here it is important to note that the constant fo may be different for the various C curves that start from different x-t locations. To reach the final solution of (B.1.9), eliminate fo and Xo from (B.1.15) using (B.1.12) through (B.1.14) in favor of x, t, and f(x,t):

f(x,t)=ϕ(xotU(τ)dτ).

image (B.1.16)

 
This approach to differential equation solving where special paths are found that simplify the governing equation (or equations) can be formalized and generalized; it is called the method of characteristics. But, independent of this and perhaps more important, the two fundamental and enduring features of partial differential equation solving are displayed here.
i) Partial differential equations are solved by rearrangement and integration. Extra differentiation is typically not useful; first look for ways to integrate to find a solution.
ii) Difficulty is not entirely eliminated by changing from partial to total derivatives or vice versa. In the above example, there is initially one unknown function, f, and two independent coordinates, x and t, but this is transformed (via the method of characteristics) into a problem with two unknown functions, f and X, and one independent variable, s or t.

Integration of Partial Derivatives

There is really nothing special here except to note that constants of integration turn into functions that may depend on all the not-integrated-over independent variables. For example, consider f(x, y, z, t) that solves the partial differential equation: ∂f/∂x = Ax + By. Direct integration with y, z, and t treated as constants produces:

f=(Ax+By)dx=Ax2/2+Byx+C(y,z,t),

image

B.2. Changing Independent Variables

Two situations commonly arise in the study of fluid mechanics where changing the independent variable(s) is advantageous. The first situation is changing coordinate systems. Here the number of new and old independent variables will usually be the same. Consider the situation where a partial differential equation is known in Cartesian-time coordinates (x, y, z, t), but it will be easier to solve in another coordinate system (ξ, ψ, ζ, τ). Assume the trans-formation between the two coordinate systems is given by: ξ = X(x, y, z, t), ψ = Y(x, y, zt), ζ = Z(x, y, z, t), and τ = T(x, y, z, t). Cartesian and temporal partial derivatives can be transformed as follows:

x=Xxξ+Yxψ+Zxζ+Txτ,y=Xyξ+Yyψ+Zyζ+Tyτ,z=Xzξ+Yzψ+Zzζ+Tzτ,andt=Xtξ+Ytψ+Ztζ+Ttτ.

image (B.2.1)

Example B.2

x=ξ,y=ψ,z=ζ,andt=UξVψWζ+τ.

image (B.2.2)

 
Perhaps unexpectedly, extra differentiations only appear in the transformed time derivative, even though the time variable transformation equation was simplest.
The second situation that requires changing independent variables occurs when a combination of independent variables (and parameters) is found that might simplify a partial differential equation. Here the usual goal is to convert a partial differential equation having multiple independent variables into a total differential equation with one independent variable. If η = H(x, y, z, t) is the combination variable, then a straightforward application of the chain rule for partial differentiation produces:

x=Hxddη,y=Hyddη,z=Hzddη,andt=Htddη.

image (B.2.3)

xf(x,t)=(xtα)xddηf(η)=tαdfdη,andtf(x,t)=(xtα)tddηf(η)=αxtα1dfdη=αtηdfdη.

image

 
Second-order derivatives are generated by appropriately differentiating these first-order results.

B.3. Basic Vector Calculus

The gradient operator, image, is the general-purpose directional derivative for multiple spatial coordinates. It is a vector operator, and it exists in all suitably defined coordinate systems. Its properties are a combination of those of ordinary partial derivatives and ordinary vectors. It has components and its position and operation character (multiply, dot product, cross product, etc.) matter within a set or grouping of functions or variables. For example, (u·)vv(·u)image in general, even though these two expressions would be an equal if image were replaced by an ordinary vector. Some properties of image are listed here:
• In Cartesian coordinates,x=(x,y,z):=exx+eyy+ezzimage where the es are unit vectors
• The gradient of the scalar field ρ is: ρ=exρx+eyρy+ezρzimage
• The divergence of a vector field u=(u,v,w)image is: ·u=ux+vy+wzimage
• The curl of a vector field u=(u,v,w)image is: ×u=det|exeyez/x/y/zuvw|image.

Vector Identities Involving image

Here ρ and ϕ are scalar functions, u and F are vector functions, and x is the position vector.

·x=3

image (B.3.1)

×x=0

image (B.3.2)

·(x/|x|3)=0

image (B.3.3)

Integral Theorems Involving image

• For a closed surface A that contains volume V with n = the outward normal on A, Gauss’ Theorem is:

AρndA=VρdVfor scalars,andAu·ndA=V·udVfor vectors.

image

• For a closed curve C that bounds surface A with n = the normal to A and t the tangent to C, Stokes' Theorem is: Cu·tds=A(×u)·ndAimage, where s is the arc length along C.

B.4. The Dirac Delta Function

The Dirac delta function is commonly denoted δ(x), where x is a real variable. It is a unit-area impulse that exists at only one point in space; it is zero everywhere except where its argument is zero. The Dirac delta-function can be defined as a limit of a smooth function, such as:

δ(x)=limσ0(2πσ)1exp{x2/2σ2}.

image (B.4.1)

The value of δ(x) is infinite at x = 0 but its integral is unity. Here are a few properties of δ(x) for a, b, and xo real constants and b > a:

xδ(xa)=aδ(xa),

image (B.4.2)

abδ(xxo)dx={1foraxob0forxo<aorb<xo},

+f(x)δ(xxo)dx=f(xo).

These properties ease the evaluation of complicated integrals when a Dirac delta function appears in the integrand. In more dimensions where x=(x,y,z)image, the following notation is common:

δ(xxo)=δ(xxo)δ(yyo)δ(zzo).

image

In the study of fluid mechanics, the usual notation for the Dirac delta-function is potentially confusing because δ is also commonly used to denote a length scale of interest in the flow field, such as a boundary-layer thickness or the length scale of a similarity variable. Thus, specific mention of the Dirac delta function is made where it is used in the text.
Evaluate the integral: I=+F(x)[(xox)2+ro2]1/2eikxδ(xct)dximage. Here the limits of integration ensure that x will equal ct somewhere in the integration. Equation (B.4.4) implies that the value of this integral is determined by replacing x with ct in the integrand; therefore: I=F(ct)[(xoct)2+ro2]1/2eikctimage.

B.5. Common Three-Dimensional Coordinate Systems

In all cases that follow, ξ, ψ, and ζ are constants.

Cartesian Coordinates (Figure B.1)

Position: x=(x,y,z)=(x1,x2,x3)=x1e1+x2e2+x3e3image
image

Cylindrical Coordinates (Figure B.2)

Position: x=(R,φ,z)=ReR+zez;x=Rcosφ,y=Rsinφ,z=z;image or R=x2+y2image, φ=tan1(y/x)image
image

Spherical Coordinates (Figure B.3)

Position: x = (r, θ, φ) = rer; x=rcosφsinθimage, y=rsinφsinθimage, z=rcosθimage; or r=x2+y2+z2image, θ=tan1(x2+y2/z)image, and φ=tan1(y/x)image
image

B.6. Equations in Curvilinear Coordinates

Plane Polar Coordinates (Figure 3.3a)

Position and velocity vectors x=(r,θ)=rer;u=(ur,uθ)=urer+uθeθimage
Gradient of a scalar ψ: ψ=erψr+eθ1rψθimage
Laplacian of a scalar ψ: 2ψ=1rr(rψr)+1r22ψθ2image
Divergence of a vector: ·u=1rr(rur)+1ruθθimage
Curl of a vector, vorticity: ω=×u=ez(1r(ruθ)r1rurθ)image
Laplacian of a vector: 2u=er(2ururr22r2uθθ)+eθ(2uθ+2r2urθuθr2)image
Strain rate Sij and viscous stress τij for an incompressible fluid where τij = 2μSij:

Srr=urr=12μτrr,Sθθ=1ruθθ+urr=12μτθθ,Srθ=r2r(uθr)+12rurθ=12μτrθ

image

Equation of continuity: ρt+1rr(rρur)+1rθ(ρuθ)=0image
Navier-Stokes equations with constant ρ, constant ν, and no body force:

urt+ururr+uθrurθuθ2r=1ρpr+ν(2ururr22r2uθθ),

image

uθt+uruθr+uθruθθ+uruθr=1ρrpθ+ν(2uθ+2r2urθuθr2),

image

Cylindrical Coordinates (Figure B.2)

Position and velocity vectors: x = (R, φ, z) = ReR + zez; u = (uR, uφ, uz) = uReR + uφeφ + uzez
Gradient of a scalar ψ: ψ=eRψR+eφ1Rψφ+ezψzimage
Laplacian of a scalar ψ: 2ψ=1RR(RψR)+1R22ψφ2+2ψz2image
Divergence of a vector: ·u=1RR(RuR)+1Ruφφ+uzzimage
Curl of a vector, vorticity: ω=×u=eR(1Ruzφuφz)+eφ(uRzuzR)+ez(1R(Ruφ)R1RuRφ)image
Laplacian of a vector: 2u=eR(2uRuRR22R2uφφ)+eφ(2uφ+2R2uRφuφR2)+ez2uzimage
Strain rate Sij and viscous stress τij for an incompressible fluid where τij = 2μSij:

SRR=uRR=12μτRR,Sφφ=1Ruφφ+uRR=12μτφφ,Szz=uzz=12μτzz

image

SRφ=R2R(uφR)+12RuRφ=12μτRφ,Sφz=12Ruzφ+12uφz=12μτφz,SzR=12(uRz+uzR)=12μτzR

image

Equation of continuity: ρt+1RR(RρuR)+1Rφ(ρuφ)+z(ρuz)=0image
Navier-Stokes equations with constant ρ, constant ν, and no body force:

uRt+(u·)uRuφ2R=1ρpR+ν(2uRuRR22R2uφφ),uφt+(u·)uφ+uRuφR=1ρRpφ+ν(2uφ+2R2uRφuφR2),uzt+(u·)uz=1ρpz+ν2uz

image

where: u·=uRR+uφRφ+uzzimage and 2=1RR(RR)+1R22φ2+2z2image.

Spherical Coordinates (Figure B.3)

Position and velocity vectors: x=(r,θ,φ)=rer;u=(ur,uθ,uφ)=urer+uθeθ+uφeφimage
Gradient of a scalar ψ: ψ=erψr+eφ1rψθ+eφ1rsinθψφimage
Laplacian of a scalar ψ: 2ψ=1r2r(r2ψr)+1r2sinθθ(sinθψθ)+1r2sin2θ2ψφ2image
Divergence of a vector: ·u=1r2r(r2ur)+1rsinθ(uθsinθ)θ+1rsinθuφφimage
Curl of a vector, vorticity: ω=×u=errsinθ((uφsinθ)θuθφ)+eθr(1sinθurφ(ruφ)r)+eφr((ruθ)rurθ)image
Laplacian of a vector:

2u=er(2ur2urr22r2sinθ(uθsinθ)θ2r2sinθuφφ)+eθ(2uθ+2r2urθuθr2sin2θ2cosθr2sin2θuφφ)+eφ(2uφ+2r2sinθurφ+2cosθr2sin2θuθφuφr2sin2θ)

image

Strain rate Sij and viscous stress τij for an incompressible fluid where τij = 2μSij:

Srr=urr=12μτrr,Sθθ=1ruθθ+urr=12μτθθ,Sφφ=1rsinθuφφ+urr+uθcotθr=12μτφφ,Sθφ=sinθ2rθ(uφsinθ)+12rsinθuθφ=12μτθφ,Sφr=12rsinθurφ+r2r(uφr)=12μτφr,Srθ=r2r(uθr)+12rurθ=12μτrθ

image

Equation of continuity:

ρt+1r2r(ρr2ur)+1rsinθθ(ρuθsinθ)+1rsinθφ(ρuφ)=0

image