Review of Vectors. Chapter Definition of a Vector. 2.2 Vector Addition. 2.3 Vector Subtraction. 2.4 Properties of Vectors

Chapter 2 Review of Vectors 2.1 Definition of a Vector A vector is a quantity that posses both a magnitude and a direction and obey the parallelogr...
Author: Robert Fowler
2 downloads 1 Views 192KB Size
Chapter 2

Review of Vectors 2.1

Definition of a Vector

A vector is a quantity that posses both a magnitude and a direction and obey the parallelogram law of addition.

2.2

Vector Addition

Figure 2.1: Vector addition

~ =A ~+B ~ C

2.3

Vector Subtraction ~ =A ~−B ~ D

2.4

Properties of Vectors

~ and B ~ are two vectors then: If s and t are two scalars and A ~ 0A ~ (s + t)A

~=A ~ ; = ~0 ; +A ~ + tA ~ = sA

~ + B) ~ ~ + sB ~ s(A = sA ~ = s(tA) ~ = t(sA) ~ st(A)

3

~ = −A ~ (−1)A

Figure 2.2: Vector subtraction

2.4.1

Explanation

~ is a vector, sA ~ is defined to be the vector having magnitude s times that of A ~ and If s is a number and A pointing in the same direction if s > 0 and in the opposite direction if s is negative. ~ is a scalar multiple of A. ~ Any vector sA

2.5

Scalar Product ~·B ~ = |A|| ~ B|cosθ ~ A

Ex.1) Work done by a force F~ during an infinitesimal displacement δ~s is W = F~ · δ~s Ex.2) ~ = δ F~ −pδ A ~ is infinitesimal aera vector, δ F~ is the corresponding force where p is pressure at a point, δ A I δ F~ = F~ s

where F~ is the total force on a body

F~ · ˆi = Drag F~ · kˆ = Lif t

2.6

Vector Product ~×B ~ = |A|| ~ B|sinθˆ ~ A e

~ and B ~ and | | sign denotes the magnitude of the vector. where eˆ is a unit vector perpendicular to both A Ex.1) ~o ~r × F~ = M where Mo is moment about o

2.7

Triple Product ~ · (B ~ × C) ~ A ~ × (B ~ × C) ~ A

= =

~ · (A ~ × B) ~ =B ~ · (C ~ × A) ~ C ~ · C) ~ B ~ − (A ~ · B) ~ C ~ (A 4

2.8

Unit Vector

A vector whose magnitude is 1 is called a unit vector. ~ A ~ |A|

eˆA =

~ is the magnitude of vector A ~ and eˆA is a unit vector in the direction of A. ~ where |A|

2.9

Vector Differentiation

~ and B ~ are two vectors and U ~ =A ~+B ~ then: If A ~ dU dt ~ dU dt ~) d(nU dt

2.10

= = =

~| d|U eˆu dt ~ ~ dA dB + dt dt ~ dn ~ dU U +n dt dt

Product Rules ~·A ~ = (|A|)2 A ½ 1 if i = j, eˆi · eˆj = 0 if i 6= j. ½ 0 if i = j, eˆi × eˆj = 1 if i 6= j.

2.11

Components of a Vector

In 3-D a vector has 3 components. These 3 components are independent of each other. Consider three ~ B, ~ and C. ~ In component form, these vectors in general can be written as: vectors A, ~ = A1 eˆ1 + A2 eˆ2 + A3 eˆ3 A ~ = B1 eˆ1 + B2 eˆ2 + B3 eˆ3 B ~ = C1 eˆ1 + C2 eˆ2 + C3 eˆ3 C Based on the component form the following relations can be established: ~·B ~ = A 1 B1 + A 2 B2 + A 3 B3 A ¯ ¯ ¯ eˆ1 eˆ2 eˆ3 ¯ ¯ ¯ ~×B ~ = ¯ A1 A2 A3 ¯ A ¯ ¯ ¯ B1 B2 B3 ¯ ¯ ¯ ¯ A1 A2 A3 ¯ ¯ ¯ ~ · (B ~ × C) ~ = ¯ B1 B2 B3 ¯ A ¯ ¯ ¯ C1 C2 C3 ¯

¯ ¯ eˆ1 ¯ ~ ~ ~ A1 A × (B × C) = ¯¯ ¯ (B2 C3 − B3 C2 )

eˆ2 A2 (B3 C1 − C3 B1 )

eˆ3 A3 (B1 C2 − B2 C1 )

¯ ¯ ¯ ¯ ¯ ¯

Cartesian and cylindrical coordinate systems are two coordinate systems widely used. Their component forms are discussed next.

5

2.11.1

Cartesian Coordinate System ~ = Vxˆi + Vy ˆj + Vz kˆ V

where ˆi, ˆj, kˆ are unit vectors, and Vx , Vy , Vz are components. In general the components are independent of each other. For example: Vx 6= f (Vy , Vz ) The position vector in cartesian system is given as: ~r = xˆi + yˆj + z kˆ

2.11.2

Cylindrical Coordinate System

Figure 2.3: Cylindrical and spherical coordinate system

~ = Vr eˆr + Vθ eˆθ + Vz eˆz V

2.12

Relation Between Coordinate Systems

2.12.1

General Transformation

(q1 , q2 , q3 ) are the general coordinates of a 3-D coordinate system. q1 = q1 (x, y, z) q2 = q2 (x, y, z) q3 = q3 (x, y, z)

2.12.2

General Inverse Transformation x = x(q1 , q2 , q3 ) y = y(q1 , q2 , q3 ) z = z(q1 , q2 , q3 )

6

2.12.3

2.12.4

Transformation 1

r θ

= (x2 + y 2 ) 2 = arctan(y/x)

(0 ≤ r < ∞) (0 ≤ θ ≤ 2π)

z

=

(−∞ < z < ∞)

z

Inverse transformation x = rcosθ y = rsinθ z

=

z

2.13

A procedure for Evaluating Scalar Factors, Unit Vectors and Their Derivatives from Inverse Transformation

2.13.1

Scale Factor

Scale factor defines the relationship between coordinates and distance along coordinates.

2.13.2

General Coordinate System

A position vector ~r in cartesian system is given by ~r = xˆi + yˆj + z kˆ and using the inverse transformation can also be written as: ~r = x(q1 , q2 , q3 )ˆi + y(q1 , q2 , q3 )ˆj + z(q1 , q2 , q3 )kˆ The variation of the position vector along the coordinate direction defines the following relations: ∂~r = h1 eˆ1 ∂q1 ∂~r = h2 eˆ2 ∂q2 ∂~r = h3 eˆ3 ∂q3 where h1 , h2 , and h3 are the scale factors and eˆ1 , eˆ2 , and eˆ3 are the unit vectors in the q1 , q2 , and q3 directions respectively.

2.14

Relation Between Unit Vectors and Their Derivatives

2.14.1

Cartesian System

Cartesian unit vectors are fixed in magnitude and directions and hence are constant vectors. ∂ˆi ∂x ∂ˆ j ∂x ˆ ∂k ∂x

= = =

∂ˆi ∂y ∂ˆ j ∂y ˆ ∂k ∂y

= = =

7

∂ˆi ∂z ∂ˆ j ∂z ˆ ∂k ∂z

=0 =0 =0

Figure 2.4: Unit vectors in clyndrical coordinate system

2.14.2

Cylindrical System

In general the unit vectors are not constant. For example, in the cylindrical coordinate system the unit vectors eˆr and eˆθ vary with the coordinate θ. In contrast, the eˆz vector is a fixed vector like the cartesian vectors. For the cylindrical coordinate system: ∂~r = hr eˆr ∂r ∂~r = hθ eˆθ ∂θ ∂~r = hz eˆz ∂z From the inverse transformation for the cylindrical system, the position vector in the cylindrical coordinate system can be written as: ~r ∂~r ∂r ∂~r ∂~r · ∂r ∂r ∂~r ∂θ ∂~r ∂~r · ∂θ ∂θ

=

r cos θˆi + r sin θˆj + z kˆ

=

cos θˆi + sin θˆj = hr eˆr

=

h2r (ˆ er · eˆr ) = h2r

=

cos2 θ + sin2 θ = 1 = h2r or hr = 1

=

−r sin θˆi + r cos θˆj

=

r2 (sin2 θ + cos2 θ) = h2θ or hθ = r

similarly hz = 1. ∂~r ∂r ∂~r ∂θ

=

cos θˆi + sin θˆj = hr eˆr = eˆr

=

−r sin θˆi + r cos θˆj = hθ eˆθ = rˆ eθ

8

From the previous equations the unit vectors in cylindrical coordinate system can be written as: eˆr

=

eˆθ eˆz

= =

cos θˆi + sin θˆj − sin θˆi + cos θˆj kˆ

The unit vectors in the cylindrical system can be related to the cartesian unit vectors ˆi, ˆj, kˆ in matrix form as:        cos θ sin θ 0  ˆi   ˆi   eˆr  ˆj ˆj eˆθ = [A] =  − sin θ cos θ 0   ˆ   ˆ    0 0 1 eˆz k k Matrices relating unit vectors of orthogonal coordinate systems are orthogonal matrices. The inverse of an orthogonal matrix is its transpose. Hence the following relations can be established.      ˆi   eˆr  ˆj eˆθ = [A]  ˆ    eˆz k      ˆi   eˆr  T ˆj eˆθ = [A]  ˆ    e ˆz k

In other words the cartesian unit vectors can be written in relations.    cos θ − sin θ  ˆi  ˆj =  sin θ cos θ  ˆ  0 0 k

The derivatives of the unit vectors in cylindrical system are: ∂ˆ er =0 ∂r ∂ˆ er = − sin θˆi + cos θˆj = eˆθ ∂θ ∂ˆ er =0 ∂z

∂ˆ eθ =0 ∂r ∂ˆ eθ = − cos θˆi − sin θˆj = −ˆ er ∂θ ∂ˆ eθ =0 ∂z

General (q1 , q2 , q3 ) (ˆ e1 , eˆ2 , eˆ3 ) (δs1 , δs2 , δs3 ) (h1 , h2 , h3 )

Coordinates Unit vectors Distance along coordinates dir. Scale factor

terms of the cylindrical unit vectors using the   0  eˆr  eˆθ 0    eˆz 1

Cartesian (x,y,z) ˆ (ˆi, ˆj, k) (δx, δy, δz) (1, 1, 1)

Cylindrical (r, θ, z) (ˆ er , eˆθ , eˆz ) (δr, rδθ, δz) (1, r, 1)

∂ˆ ez =0 ∂r ∂ˆ ez =0 ∂θ ∂ˆ ez =0 ∂z Spherical (R, ϕ, θ) (ˆ eR , eˆϕ , eˆθ ) (δR, Rδϕ, R sin ϕδθ) (1, R, R sin ϕ)

Relatinship between coordinate systems and the coordinate space is unique. For example the relation between cartesian and cylindrical coordinate system is given by: Inverse transformation x = r cos θ y = r sin θ z=z

Transformation p r = x2 + ¡y 2 ¢ θ = arctan xy z=z

2.15

Vector Calculus

2.15.1

Del, The Vector Differential Operator: ∇ ∇

= eˆ1 =

∂ ∂ ∂ + eˆ2 + eˆ3 ∂s1 ∂s2 ∂s3

or eˆ2 ∂ eˆ3 ∂ eˆ1 ∂ + + h1 ∂q1 h2 ∂q2 h3 ∂q3 9

where eˆ1 , eˆ2 , and eˆ3 are three mutually orthogonal unit vectors. δs1 , δs2 , and δs3 denote infinitesimal distances along the coordinate axes. Thus, knowing the scale factors the vector differential operator ∇ can be written for other coordinate systems.

2.15.2

Cartesian ∇ = ˆi

2.15.3

∂ ∂ ∂ + ˆj + kˆ ∂x ∂y ∂z

Cylindrical ∇ = eˆr

∂ ∂ ∂ + eˆθ + eˆz ∂r r∂θ ∂z

2.15.4

General Rules of Differentiation

2.16

Scalar and Vector Field

¶ µ µ ¶ µ ¶ ∂ˆ e2 ∂ ∂φ2 e 1 ) · φ2 eˆ1 · (φ2 eˆ2 ) = (ˆ e1 ) · eˆ2 + (ˆ ∂q1 ∂q1 ∂q1 where q1 , q2 , and q3 are general coordinates. eˆ1 , eˆ2 , and eˆ3 are general unit vectors. Note: The order of the dot (cross) product should be preserved.

A scalar (vector) quantity given as a function of coordinate space and time is called a scalar (vector)field. Pressure p = p(~r, t)

= p(q1 , q2 , q3 , t) general = p(x, y, z, t) cartesian = p(r, θ, z, t) cylindrical

2.16.1

Examples

Scalar fields T = T (~r, t) ρ = ρ(~r, t) e = e(~r, t)

(temperature) (density) (internal energy)

Velocity vector field ~ =V ~ (~r, t) V (velocity vector) ~ = (V1 , V2 , V3 ) V V1 = V1 (~r, t), V2 = V2 (~r, t), and V3 = V3 (~r, t). In general a field denotes a region throughout which a quantity is defined as a function of location within the region and time. If the quantity is independent of time, the field is steady or stationary.

2.17

Concept of Gradient

Let φ = φ(~r) be a scalar function of position (~r) Find the spatial variation of φ? Since φ is a function of a vector ~r there are an infinite number of directions in which to take the increment ∆~r. The total change in φ, dφ whould in general be different in different directions. Spatial derivative of φ at a point is expressed as derivatives of φ in three independent directions. Gradient of a scalar is a vector 10

2.17.1

Concept of Gradient

At any point, the gradient of a scalar function(φ) of position is equal in magnitude and direction to the greatest derivative of φ with respect to distance at that point. Rate of change of the scalar φ along two paths are of special importance. 1. Path along which the scalar is constant (Isolines) 2. Path along which the rate of change of the scalar is the maximum (Gradient line)

2.17.2

General ∂φ ∂φ ∂φ + eˆ2 + eˆ3 ∂s1 ∂s2 ∂s3 eˆ1 ∂φ eˆ2 ∂φ eˆ3 ∂φ ∇φ = + + h1 ∂q1 h2 ∂q2 h3 ∂q3 µ ¶ µ ¶ ∂φ ∂φ ∂φ ∂φ ∂φ ∂φ , , ∇φ = = ∂s1 ∂s2 ∂s3 h1 ∂q1 h2 ∂q2 h3 ∂q3 ∇φ

2.17.3

= eˆ1

Cartesian ∂φ ˆ ∂φ ˆ ∂φ +j +k ∇φ = ˆi ∂x ∂y ∂z µ ¶ ∂φ ∂φ ∂φ ∇φ = , , ∂x ∂y ∂z

2.17.4

Cylindrical ∂φ eˆθ ∂φ ∂φ + + eˆz ∂r r ∂θ ∂z µ ¶ ∂φ ∂φ ∂φ ∇φ = , , ∂r r∂θ ∂z

∇φ = eˆr

2.18

Concept of Directional Derivative

Let d~r be a small increment in ~r in some direction eˆ. If φ = φ(q1 , q2 , q3 ) using chain rule we can write: dφ =

∂φ ∂φ ∂φ dq1 + dq2 + dq3 ∂q1 ∂q2 ∂q3

By multiplying the numerator and denominator by the respective scale factors it can also be written as: dφ = = =

∂φ ∂φ ∂φ h1 dq1 + h2 dq2 + h3 dq3 h1 ∂q1 h2 ∂q2 h3 ∂q3 ∂φ ∂φ ∂φ ds1 + ds2 + ds3 ∂s1 ∂s2 ∂s3 µ ¶ ∂φ ∂φ ∂φ , , · (ds1 , ds2 , ds3 ) ∂s1 ∂s2 ∂s3

³ ´ ∂φ ∂φ ∂φ , , where ∂s = ∇φ and (ds1 , ds2 , ds3 ) = d~r. 1 ∂s2 ∂s3 Therefore dφ ≡ (∇φ · d~r)

Change in a general direction dφ is simply the scalar product of the gradient at that point and d~r in that general direction. That is, dφ =

∇φ · d~r

dφ =

∇φ · |d~r|ˆ e = ∇φ · (dr eˆ) 11

Therefore

dφ = ∇φ · eˆ dr

• Directional derivative of φ(~r) in any chosen direction is equal to the component of the gradient vector in that direction. • The greatest rate of change of φ with respect to coordinate space at a point takes place in the direction of ∇φ and has the magnitude of the vector ∇φ.

2.18.1

Cartesian d~r = (dx, dy, dz)

Cylindrical d~r = (dr, rdθ, dz) = |d~r|ˆ e In component form the position vector can also be written as: d~r = (dr, rdθ, dz) = |d~r|ˆ e = ds1 eˆ1 + ds2 eˆ2 + ds3 eˆ3

2.19

Divergence of a Vector Field (∇ · V~ = 0)

Divergence of a vector field can be computed using vector algebra. In a general coordinate system this is tedious and yet possible as is illustrated here.

~ ∇·V

= =



= eˆ1

~ V

=

∂ ∂ ∂ + eˆ2 + eˆ3 ∂s1 ∂s2 ∂s3

V1 eˆ1 + V2 eˆ2 + V3 eˆ3

µ ¶ ∂ ∂ ∂ eˆ1 + eˆ2 + eˆ3 · (V1 eˆ1 + V2 eˆ2 + V3 eˆ3 ) ∂s1 ∂s2 ∂s3 ¶ µ ∂ ∂ ∂ · (V1 eˆ1 + V2 eˆ2 + V3 eˆ3 ) + eˆ2 + eˆ3 eˆ1 h1 ∂q1 h2 ∂q2 h3 ∂q3

³ ´ All the terms have to be expanded using chain rule differentiation. For example, consider eˆ1 h1∂∂q1 · (V2 eˆ1 ): µ eˆ1

∂ h1 ∂q1



· ¸ e1 ∂ ∂V1 V1 ∂ˆ · (V1 eˆ1 ) = eˆ1 · (V1 eˆ1 ) = eˆ1 · eˆ1 + h1 ∂q1 h1 ∂q1 h1 ∂q1

In specific coordinate systems the simplifications are easier if the derivatives of the unit vectors are known. The divergence of a vector in cartesian and cylindrical systems are illustrated next.

2.19.1

Cartesian ~ ∇·A

= =

µ ¶ ³ ´ ˆi ∂ + ˆj ∂ + kˆ ∂ · A1ˆi + A2 ˆj + A3 kˆ ∂x ∂y ∂z ∂A1 ∂A2 ∂A3 + + ∂x ∂y ∂z

12

2.19.2

Cylindrical ~= ∇·A

µ ¶ ∂ ∂ ∂ + eˆθ + eˆz eˆr · (Ar eˆr + Aθ eˆθ + Az eˆz ) ∂r r∂θ ∂z

~ ∇·A

=

µ ¶ ∂ eˆr · (Ar eˆr + Aθ eˆθ + Az eˆz ) ∂r {z } | (1)

+

µ ¶ ∂ eˆθ · (Ar eˆr + Aθ eˆθ + Az eˆz ) r∂θ {z } | (2)

+

¶ µ ∂ (Ar eˆr + Aθ eˆθ + Az eˆz ) eˆz · ∂z | {z } (3)

Term (1) eˆr · Term (2)

µ

∂Ar ∂ˆ er ∂Aθ ∂ˆ eθ ∂Az ∂ˆ ez eˆr + Ar + eˆθ + Aθ + eˆz + Az ∂r ∂r ∂r ∂r ∂r ∂r



=

∂Ar ∂r

· ¸ ∂ˆ er ∂Aθ ∂ˆ eθ ∂Az ∂ˆ ez 1 ∂Aθ Ar eˆθ ∂Ar · eˆr + Ar + eˆθ + Aθ + eˆz + Az + = r ∂θ ∂θ ∂θ ∂θ ∂θ ∂θ r r ∂θ

Term (3) eˆz ·

∂Az ∂ [Ar eˆr + Aθ eˆθ + Az eˆz ] = ∂z ∂z

therefore ~ ∇·A

= = =

Ar 1 ∂Aθ ∂Az ∂Ar + + + ∂r r r ∂θ ∂z 1 ∂ 1 ∂ 1 ∂ (Ar r) + (Aθ ) + (rAz ) r ∂r r ∂θ r ∂z ¸ · ∂ ∂ 1 ∂ (Ar r) + (Aθ ) + (rAz ) r ∂r ∂θ ∂z

~ is written as: For any orthogonal coordinate system the conservation form of divergence of a vector A · ¸ 1 ∂ ∂ ∂ ~= ∇·A (h2 h3 A1 ) + (h1 h3 A2 ) + (h1 h2 A3 ) h1 h2 h3 ∂q1 ∂q2 ∂q3

2.20

Concept of Divergence

2.20.1

Physical Meaning of Divergence of a Vector Field

The divergence of a vector at a point is the net outflow of the vector per unit volume enclosing the point. ~ with components Ax , Ay , and Az at a point in the vector field surrounded by an elemental Consider A control volume ∆V– with an elemental surface ∆S. For convenience the elemental control volume with its center having a vector with components A x , Ay , and Az is oriented with edges parallel to x, y, and z axes respectively. ~ through any side = Component of A ~ in the direction normal to side × Area of the surface. Outflow of A ~ in x-direction(Outflow A ~ from the x-faces): Net outflow of A ¶ µ ¶¸ µ ¶ µ ¶ ·µ ∂Ax ∆x ∂Ax ∂Ax ∂Ax ∆x − Ax − ∆y∆z = (∆x∆y∆z) = ∆V– = Ax + ∂x 2 ∂x 2 ∂x ∂x 13

Figure 2.5: Elemental control volume

~ in y-direction = ∂Ay ∆V– and Similarely, net outflow of A ∂y ∂Az ~ ∆V– net outflow of A in z-direction = ∂z ~ from a point is by definition: Outflow of A " # ~ in all directions ∂Ax Outflow of A ∂Ay ∂Az ~ ∇ · A = lim = + + –→0 ∆V ∆V– ∂x ∂y ∂z

2.20.2

Example

~=V ~ , the velocity vector then ∇ · V ~ is the volume flux from a point. If A It is a scalar and its magnitude is the rate at which fluid volume is leaving a point per unit volume. Flux of volume from a point is by definition: ¸ · V olume outf low/sec − V olume inf low/sec lim V olume→0 V olume ~ ) is mass flux. ∇ · (ρV where ρ is density.

2.20.3

Problem

Show from the physical meaning of divergence that in polar coordinates: ~ = ∇·V

2.21

1 ∂Vθ ∂Vz 1 ∂ (rVr ) + + r ∂r r ∂θ ∂z

Gauss Divergence Theorem

– in space as shown in Figure 2.6. Consider a finite control volume V d~s = eˆn ds where d~s is the elemental vector area with eˆn as the unit vector normal to ds being counted positive when directed outward. If If

~ points out A ~ · d~s is positive. A ~ ~ A points in A · d~s is negative.

~ is found for each cube at its center. The Flow of The region V– is divided into elementary cubes and div A 14

Figure 2.6: A finite control volume

~ through common faces of adjacent cubes cancel because the inflow through one face equals the outflow A ~ of all the cubes, only faces on the surface enclosing through the other. If we now sum the net outflow of A the region will contribute to the summation. ~ over V– is equal to the net In the limit, therefore as the cubes approach zero volume the integral of div A outflow through ds, the surface enclosing the region. Stated in integral notation:

ZZ ZZZ ~ ~ – (∇ · A)dV OA · d~s = – S V

Vector Identities Useful for the Manipulation of Conservation Equations:

Gauss Divergence Theorem:

´ ³ ´ ³ ´ ³ ~ •∇ ϕ + ϕ ∇•A ~ ~ = A ∇• ϕ A ³ ´ ³ ´ ³ ´ ~A ~ = ϕA ~ •∇ A ~+A ~ ∇•ϕA ~ ∇• ϕ A ³ ´ ³ ´ ³ ´ e = B e •∇ ϕ + ϕ ∇•B e ∇• ϕ B ³ ´ ³ ´ ³ ´ e •A ~ = B e •∇ •A ~+A ~ • ∇• B e ∇• B Z ³

CS

´ Z ~ = F~ • dA (∇•F~ ) dV– CV

Gradient Theorem: Z ³

CS

´ Z ~ ϕ dA = ∇ϕ dV– CV

15

Suggest Documents