<<

UNIVERSITY OF CALIFORNIA BERKELEY Structural Engineering, Department of Civil Engineering and Materials Fall 2016 Professor: S. Govindjee

A Quick Overview of Curvilinear Coordinates

1 Introduction

Curvilinear coordinate systems are general ways of locating points in Eu- clidean using coordinate functions that are invertible functions of the usual xi Cartesian coordinates. Their utility arises in problems with obvious geometric symmetries such as cylindrical or spherical symmetry. Thus our main interest in these notes is to detail the important relations for strain and stress in these two coordinate systems. Shown in Fig. 1 are the definitions of the coordinate functions. Note that while the definition of the cylindrical co- ordinate system is rather standard, the definition of the spherical varies from book to book. Both systems to be studied are orthogonal. The precise definitions used here are:

Cylindrical Spherical x = r cos(θ) x1 = r sin(ϕ) cos(θ) 1 (1) (3) x2 = r sin(θ) x2 = r sin(ϕ) sin(θ) x3 = z x3 = r cos(ϕ)

p p 2 2 r = x2 + x2 + x2 r = x1 + x2 1 2 3 −1 ϕ = cos−1(√ x3 ) θ = tan (x2/x1) (2) 2 2 2 (4) x1+x2+x3 −1 z = x3 θ = tan (x2/x1)

2 Basis Vectors

For convenience in some of the equations to be given later we will denote our curvilinear coordinates as zk where (z1, z2, z3) = (r, θ, z) in the cylindrical case and (z1, z2, z3) = (r, ϕ, θ) in the spherical case. For the basis vectors we will introduce for two types of basis vectors. The natural basis vectors and

1 x3 x3

ϕ

x2 r x2 z r θ θ x1 x1

Figure 1: Definition of the cylindrical and spherical coordinate systems. the physical basis vectors. Both bases are orthogonal but the physical basis has the additional property of orthonormality. The basic definitions are ∂xi g = e (5) k ∂zk i gk ek = . (6) kgkk To differentiate between the physical basis vectors and the usual Cartesian ones we typically write er, eθ, ··· etc. For the cylindrical coordinate system one has:  cos(θ)   −r sin(θ)   0 

g1 →  sin(θ)  g2 →  r cos(θ)  g3 →  0  (7) 0 0 1 and 1 e = g e = g e = g . (8) r 1 θ r 2 z 3 Note that the components have been expressed in the standard orthonormal Cartesian basis. For the spherical system one has that  sin(ϕ) cos(θ)   r cos(ϕ) cos(θ) 

g1 →  sin(ϕ) sin(θ)  g2 →  r cos(ϕ) sin(θ)  cos(ϕ) −r sin(ϕ) (9)  −r sin(ϕ) sin(θ) 

g3 →  r sin(ϕ) cos(θ)  0

2 and 1 1 e = g e = g e = g . (10) r 1 ϕ r 2 θ r sin(ϕ) 3

2.1 Physical and Natural Components As with all bases we can express the components of vectors and with respect to our new curvilinear bases. In this regard, it is very important with the curvilinear coordinates to know whether or not the components are with respect to the natural basis vectors or with respect to the physical basis vectors. To help maintain the distinction we use superscript numerals with the components in the natural basis and subscript letter (Latin and Greek) for components in the physical basis. Consider for example a vector 2 v = vθeθ = v g2, then we have the relation

2 vθ = rv . (11)

2 3 If for instance we have a vector v = vϕeϕ + vθeθ = v g2 + v g3, then we have that

2 vϕ = rv (12) 3 vθ = r sin(ϕ)v . (13)

Similar relations can be derived for components.

3 Dual Basis Vectors

When dealing with non-Cartesian coordinate systems one often introduces the so called dual (or contravariant) basis vectors; they are denoted by the symbol gk – note the raised index. The defining property of these basis vectors is that they are orthogonal to the first basis introduced; i.e.

i i g · gj = δj , (14)

i where δj is simply the symbol. The i index is raised so that it matches the other side of the equation. The meaning is still the same (1 if i = j and 0 otherwise). Another way of writing this is gk = (∂zk/∂xi)ei.

3 Note that for the usual Cartesian coordinates there is no difference between the dual basis and the regular basis. For the cylindrical system we have:

 cos(θ)   − sin(θ)/r   0  1 2 3 g →  sin(θ)  g →  cos(θ)/r  g →  0  . (15) 0 0 1

Note again that the components have been expressed in the standard or- thonormal Cartesian basis. For the spherical system one has that

 sin(ϕ) cos(θ)   cos(ϕ) cos(θ)/r  1 2 g →  sin(ϕ) sin(θ)  g →  cos(ϕ) sin(θ)/r  cos(ϕ) − sin(ϕ)/r (16)  − sin(θ)/r sin(ϕ)  3 g →  cos(θ)/r sin(ϕ)  . 0

4 of a Function

Consider a scalar function f. Its gradient is given as ∇f. This can be converted through the use of the into curvilinear coordinates as:

∂f ∂f ∂f ∂zk ∂f ∇f = = ei = ei = gk . (17) ∂x ∂xi ∂zk ∂xi ∂zk Typically, however, results are expressed using the physical basis vectors and not the natural basis vectors. For our two coordinates systems we have upon expansion: ∂f 1 ∂f ∂f ∇f = e + e + e (18) ∂r r r ∂θ θ ∂z z ∂f 1 ∂f 1 ∂f ∇f = e + e + e (19) ∂r r r ∂ϕ ϕ r sin(ϕ) ∂θ θ

5 Gradient of a Vector

To compute the gradient of a vector expressed in curvilinear coordinates we need to be able to compute the gradient of the basis vectors as they are

4 functions of (unlike in the Cartesian case). Importantly we will need to know the derivatives ∂g ∂ ∂xk ∂2xk i = e = e . (20) ∂zj ∂zj ∂zi k ∂zj∂zi k The components of these vectors are usually expressed in the dual basis as ∂g Γk = gk · i , (21) ij ∂zj

k where Γij is called the Christoffel symbol. For the cylindrical coordinate system all of the Christoffel symbols are zero except 1 Γ1 = −r , Γ2 = Γ2 = . (22) 22 12 21 r For the spherical coordinate system we have all of the Christoffel symbols are zero except

1 1 2 Γ22 = −r , Γ33 = −r sin (ϕ)

2 2 1 2 Γ12 = Γ21 = r , Γ33 = − sin(ϕ) cos(ϕ) (23)

3 3 1 3 3 Γ13 = Γ31 = r , Γ32 = Γ23 = cot(ϕ) We can now consider taking the gradient of a vector. This gives

∂ ∂vi ∂g ∇v = vig  = g + vi i (24) ∂x i ∂x i ∂x ∂vi ∂g = g ⊗ gk + vi i ⊗ gk (25) ∂zk i ∂zk  ∂vi  = + +vjΓi g ⊗ gk . (26) ∂zk jk i

For the cylindrical coordinate system we can expand this result to deter- mine the needed components of the gradient. When expressed in terms of the physical basis we find that ∇u is given by

 1  ur,r r (ur,θ − uθ) ur,z 1  uθ,r r (uθ,θ + ur) uθ,z  . (27) 1 uz,r r uz,θ uz,z

5 The components of the symmetric part of this tensor give the strain, ε, (in the physical basis as)  1 1  1  ur,r 2 r ur,θ + r(uθ/r),r 2 (ur,z + uz,r) 1 1 1  r (uθ,θ + ur) 2 (uθ,z + r uz,θ)  . (28) sym. uz,z For the spherical coordinate system we can also expand this result to determine the needed components of the gradient. When expressed in terms of the physical basis we find that ∇u is given by

 1 1  ur,r r (ur,ϕ − uϕ) r sin(ϕ) (ur,θ − uθ sin(ϕ))  1 1 1  uϕ,r r (uϕ,ϕ + ur) − r uθ cot(ϕ) + r sin(ϕ) uϕ,θ (29)  1 1  uθ,r r uθ,ϕ r sin(ϕ) uθ,θ + ur/r + uϕ cot(ϕ)/r The components of the symmetric part of this tensor give the strain, ε, (in the physical basis as)

 1 1  1  1   ur,r 2 r ur,ϕ + r(uϕ/r),r 2 r sin(ϕ) ur,θ + r(uθ/r),r      1 (u + u ) 1 − 1 u cot(ϕ) + 1 u + 1 u   r ϕ,ϕ r 2 r θ r θ,ϕ r sin(ϕ) ϕ,θ  1 sym. r sin(ϕ) uθ,θ + ur/r + uϕ cot(ϕ)/r (30)

6 Gradient and of a Tensor

The basic procedure for finding the gradient and divergence of a tensor follows exactly as we did above. For simplicity consider the stress tensor σ. Its gradient is given by ∂ ∂σij ∂g ∂g ∇σ = σijg ⊗ g  = g ⊗ g + σij i ⊗ g + σijg ⊗ j(31) ∂x i j ∂x i j ∂x j i ∂x ∂σij ∂g ∂g = g ⊗ g ⊗ gk + σij i ⊗ g ⊗ gk + σijg ⊗ j ⊗ gk (32) ∂zk i j ∂zk j i ∂zk ∂σij  = + +σljΓi + σilΓj g ⊗ g ⊗ gk . (33) ∂zk lk lk i j The divergence is obtained by contracting upon the j and k indicies to give ∂σij  ∇ · σ = + +σljΓi + σilΓj g . (34) ∂zj lj lj i

6 For our two coordinate systems we can expand this last expression and convert to physical components. The result in the physical basis for the cylindrical coordinate systems is: 1 σ − σ e · (∇ · σ) = σ + σ + σ + rr θθ r rr,r r rθ,θ rz,z r 1 2σ e · (∇ · σ) = σ + σ + σ + θr (35) θ θr,r r θθ,θ θz,z r 1 σ e · (∇ · σ) = σ + σ + σ + zr z zr,r r zθ,θ zz,z r The result in the physical basis for the spherical coordinate systems is:

1 1 2σ − σ − σ + σ cot(ϕ) e · (∇ · σ) = σ + σ + σ + rr ϕϕ θθ rϕ r rr,r r rϕ,ϕ r sin(ϕ) rθ,θ r 1 1 3σ + (σ − σ ) cot(ϕ) e · (∇ · σ) = σ + σ + σ + ϕr ϕϕ θθ ϕ ϕr,r r ϕϕ,ϕ r sin(ϕ) ϕθ,θ r 1 1 3σ + 2σ cot(ϕ) e · (∇ · σ) = σ + σ + σ + rθ ϕθ θ θr,r r θϕ,ϕ r sin(ϕ) θθ,θ r (36)

7