0% found this document useful (3 votes)
402 views

Answers to Problems for An Introduction to the Finite Element Method, 4th Edition by Reddy

This comprehensive resource provides detailed, step-by-step solutions to the exercises from the 4th edition of An Introduction to the Finite Element Method by Reddy. It is an invaluable guide for students and professionals seeking to understand key concepts in finite element analysis, from structural mechanics to heat transfer applications. Organized for easy navigation, this guide supports learning with clear explanations, illustrative examples, and practical problem-solving techniques. Contact us today to access this essential study aid via email, WhatsApp, or Telegram (details below).

Uploaded by

financemanag
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (3 votes)
402 views

Answers to Problems for An Introduction to the Finite Element Method, 4th Edition by Reddy

This comprehensive resource provides detailed, step-by-step solutions to the exercises from the 4th edition of An Introduction to the Finite Element Method by Reddy. It is an invaluable guide for students and professionals seeking to understand key concepts in finite element analysis, from structural mechanics to heat transfer applications. Organized for easy navigation, this guide supports learning with clear explanations, illustrative examples, and practical problem-solving techniques. Contact us today to access this essential study aid via email, WhatsApp, or Telegram (details below).

Uploaded by

financemanag
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

You can access complete document on following URL.

Contact me if site not loaded


https://unihelp.xyz/

1 General Introduction
sm
Mathematics is the language with which God has written the universe.
— Galileo Galilei
tb9
1.1 Newton’s second law can be expressed as
F = ma
where F is the net force acting on the body, m mass of the body, and a is the acceleration
of the body in the direction of the net force. Determine the mathematical model, that is,
the governing equation of a free-falling body. Consider only the forces due to gravity and
the air resistance. Assume that the air resistance is linearly proportional to the velocity
8@
of the falling body.
Fd = cv

v
Fg = mg
gm

Fig. P1.1

Solution: From the free-body-diagram it follows that


dv
m = Fg − Fd , Fg = mg, Fd = cv
dt
ail

where v is the downward velocity (m/s) of the body, Fg is the downward force (N or kg
m/s2 ) due to gravity, Fd is the upward drag force, m is the mass (kg) of the body, g the
acceleration (m/s2 ) due to gravity, and c is the proportionality constant (drag coefficient,
kg/s). The equation of motion is
dv c
+ αv = g, α=
.co

dt m

1.2 A cylindrical storage tank of diameter D contains a liquid at depth (or head) h(x, t).
Liquid is supplied to the tank at a rate of qi (m3 /day) and drained at a rate of q0
(m3 /day). Use the principle of conservation of mass to arrive at the governing equation
of the flow problem.
Solution: The conservation of mass requires
m

time rate of change in mass = mass inflow - mass outflow

Contact me in order to access the whole complete document - Email: [email protected]


WhatsApp: https://wa.me/message/2H3BV2L5TTSUF1 - Telegram: https://t.me/solutionmanual
2 GENERAL INTRODUCTION

The above equation for the problem at hand becomes


d d(Ah)
(ρAh) = ρqi − ρq0 or = qi − q0
dt dt
where A is the area of cross section of the tank (A = πD2 /4) and ρ is the mass density
of the liquid.

1.3 Consider the simple pendulum of Example 1.3.1. Write a computer program to nu-
merically solve the linear equation (1.2.4) using Euler’s (or forward difference) finite
difference scheme. Tabulate the numerical results for two different time steps ∆t = 0.05
and ∆t = 0.025 along with the exact linear solution.
Solution: One needs to program the finite difference equations in Eq. (1.3.6). Table 1.3
contains representative numerical results.
Table 1.3 Comparison of various approximate solutions of the equation (d2 θ/dt2 ) + λ2 θ = 0 with
its exact linear solution.

t Exact Approx. solution, θ Exact Approx. solution, v


θ ∆t = 0.05 ∆t = 0.025 v ∆t = 0.05 ∆t = 0.025
0.00 0.78540 0.78540 0.78540 −0.00000 −0.00000 −0.00000
0.05 0.76965 0.78540 0.77749 −0.62801 −0.63225 −0.63225
0.10 0.72302 0.75379 0.73806 −1.23083 −1.26449 −1.25177
0.15 0.64739 0.69056 0.66804 −1.78428 −1.87129 −1.83331
0.20 0.54578 0.59700 0.56966 −2.26615 −2.42719 −2.35264
0.25 0.42229 0.47564 0.44629 −2.65711 −2.90777 −2.78754
0.30 0.28185 0.33025 0.30243 −2.94148 −3.29066 −3.11875
0.35 0.13011 0.16572 0.14344 −3.10785 −3.55651 −3.33082
0.40 −0.02685 −0.01211 −0.02454 −3.14955 −3.68991 −3.41278
0.45 −0.18274 −0.19661 −0.19493 −3.06491 −3.68016 −3.35868
0.50 −0.33129 −0.38061 −0.36091 −2.85732 −3.52190 −3.16797
0.60 −0.58310 −0.71748 −0.65276 −2.11119 −2.76735 −2.40181
0.80 −0.78356 −1.07657 −0.92032 0.21536 0.11379 0.21327
1.00 −0.50591 −0.79648 −0.62784 2.41051 3.41351 2.91148

1.4 Consider the simple pendulum of Example 1.3.1. Write a computer program to nu-
merically solve the nonlinear equation (1.2.3) using Euler’s (or forward difference) finite
difference scheme. Tabulate the numerical results for two different time steps ∆t = 0.05
and ∆t = 0.025 along with the exact linear solution.
Solution: In order to use the forward finite difference scheme in Eq. (1.3.2), we rewrite
the nonlinear equation in (1.2.3) as a pair of first-order equations
dθ dv
= v, = −λ2 sin θ
dt dt
Applying the scheme of Eq. (1.3.2) to the two equations at hand, we obtain
θi+1 = θi + ∆t vi ; vi+1 = vi − ∆t λ2 sin θi
GENERAL INTRODUCTION 3

The above equations can be programmed to solve for (θi , vi ). Table 1.4 contains repre-
sentative numerical results.

1.5 An improvement of Euler’s method is provided by Heun’s method, which uses the average
of the derivatives at the two ends of the interval to estimate the slope. Applied to the
equation
du
= f (t, u)
dt
Heun’s scheme has the form
∆t 
f (ti , ui ) + f (ti+1 , u0i+1 ) , u0i+1 = ui + ∆t f (ti , ui )

ui+1 = ui +
2
Table 1.4 Comparison of various approximate solutions of the equation (d2 θ/dt2 ) + λ2 sin θ = 0
with exact linear solution.

Exact Approx. solution, θ Exact Approx. solution, v


t θ Euler’s Heun’s v Euler’s Heun’s
0.00 0.78540 0.78540 0.78540 −0.00000 −0.00000 −0.00000
0.05 0.76965 0.78540 0.77828 −0.62801 −0.56922 −0.56922
0.10 0.72302 0.75694 0.74276 −1.23083 −1.13844 −1.13027
0.15 0.64739 0.70002 0.67944 −1.78428 −1.69123 −1.66622
0.20 0.54578 0.58980 0.56482 −2.26615 −2.20984 −2.15879
0.25 0.42229 0.50496 0.47627 −2.65711 −2.67459 −2.58816
0.30 0.28185 0.37123 0.34225 −2.94148 −3.06403 −2.93371
0.35 0.13011 0.21803 0.19218 −3.10785 −3.35605 −3.17573
0.40 −0.02685 0.05023 0.03148 −3.14955 −3.53018 −3.29791
0.45 −0.18274 −0.12628 −0.13374 −3.06491 −3.57060 −3.29007
0.50 −0.33129 −0.30481 −0.29690 −2.85732 −3.46921 −3.15014
0.60 −0.58310 −0.63965 −0.59131 −2.11119 −2.85712 −2.50787
0.80 −0.78356 −1.05068 −0.91171 0.21536 −0.50399 −0.28356
1.00 −0.50591 −0.94062 −0.74672 2.41051 2.29398 2.19765

The second equation is known as the predictor equation and the first equation is called
the corrector equation. Apply Heun’s method to Eq. (1.3.5) and obtain the numerical
solution for ∆t = 0.05.
Solution: Heun’s method applied to the pair
dθ dv
= v, = −λ2 sin θ
dt dt
yields the following discrete equations:
0
θi+1 = θi + ∆t vi
∆t
vi+1 = vi − λ2 0

sin θi + sin θi+1
2
∆t
θi+1 = θi + (vi + vi+1 )
2
4 GENERAL INTRODUCTION

The numereical results obtained with the Heun’s method and Euler’s method are pre-
sented in Table 1.5.
Table 1.5 Numerical solutions of the nonlinear equation d2 θ/dt2 + λ2 sin θ = 0 along with the
exact solution of the linear equation d2 θ/dt2 + λ2 θ = 0.

Exact Approx. solution, θ Exact Approx. solution, v


t θ Euler’s Heun’s v Euler’s Heun’s

0.00 0.785398 0.785398 0.785398 −0.000000 −0.000000 −0.000000


0.05 0.769645 0.785398 0.771168 −0.628013 −0.569221 −0.569221
0.10 0.723017 0.756937 0.728680 −1.230833 −1.138442 −1.121957
0.20 0.545784 0.615453 0.564818 −2.266146 −2.209838 −1.121957
0.40 −0.026852 0.050228 0.015246 −3.149552 −3.530178 −3.073095
0.60 −0.583104 −0.639652 −0.544352 −2.111190 −2.857121 −2.194398
0.80 −0.783562 −1.050679 −0.787095 0.215362 −0.503993 −0.114453
1.00 −0.505912 −0.940622 −0.587339 2.410506 2.293983 2.023807

1.6 Show that the backward difference approximation of the boundary condition in Eq.
(1.2.20) yields
 −1
β∆x
θN +1 = 1 + θN
k
β∆x
and that it is the same as that in Eq. (1.3.9) when k < 1.
Solution: Expanding in Taylor’s series and keeping the first two terms, we obtain the
required result:
 −1  
β∆x β∆x
θN +1 = 1 + θN ≈ 1 − θN
k k

1.7 Write a computer program to solve the rod problem of Example 1.3.2 using 8 intervals
(i.e., ∆x = 0.00625) and determine the solution at mesh points x = 0.00625, 0.0125,
0.01875, · · · , 0.05 m.
Solution: For a subdivision of 8 subintervals, we have ∆x = 0.00625, D = 2 + (20 ×
0.00625)2 = 2.015625, and D − 1 + (β∆x/k) = 1.028125. Hence, the finite difference
equations are
2.015625 θ1 −θ2 = 300
−θ1 +2.015625 θ2 −θ3 = 0
−θ2 +2.015625 θ3 −θ4 = 0
.. ..
. .
−θ6 +2.015625 θ7 −θ8 = 0
−θ7 +1.028125 θ8 = 0
GENERAL INTRODUCTION 5

The finite difference solutions is


{θ} = {271.46, 247.16, 226.72, 209.82, 196.21, 185.66, 178.00, 173.13}T
The analytical solution at the same points is
{θ} = {272.25, 248.75, 229.15, 213.13, 200.44, 190.90, 184.33, 180.66}T

1.8 Repeat Problem 1.7 for 16 subdivisions and compare the finite difference solution with
the analytical solution.
Solution: For a subdivision of 16 subintervals, we have ∆x = 0.003125, D = 2 + (20 ×
0.003125)2 = 2.00390625, and D −1+(β∆x/k) = 1.01015625. Hence, the finite difference
equations are
2.00391 θ1 −θ2 = 300
−θ1 2.00391 θ2 −θ3 = 0
−θ2 2.00391 θ3 −θ4 = 0
.. ..
. .
−θ13 2.00391 θ14 −θ15 = 0
−θ15 1.01016 θ16 = 0
The solution of these equations is
{θ} = {285.36, 271.84, 259.37, 247.92, 237.44, 227.89, 219.22, 211.42, · · · , 176.78}T
The analytical solution at the same points is
{θ} = {285.56, 272.25, 259.99, 248.75, 238.48, 229.15, 220.71, 213.13, · · · , 180.66}T
2 Mathematical Preliminaries and
Classical Variational Methods
The fact that an opinion has been widely held is no evidence whatever that it is not utterly
absurd; indeed in view of the silliness of the majority of mankind, a widespread belief is more
likely to be foolish than sensible. — Bertrand Russell

2.1 Let R denote a position vector R = x = xi êi (R2 = xi xi ) and A an arbitrary constant
vector. Show that:
(a) ∇2 (Rp ) = p (p + 1)Rp−2 (b) grad (R · A) = A
1
(c) div (R × A) = 0 (d) div (RA) = (R · A)
R

Solution: First we establish following two identities:


∂ 1 1 1
−1
grad(R) = êi (xj xj ) 2 = êi (xj xj ) 2 2xi
∂xi 2
−1 R
= êi xi (xj xj ) 2 = (1)
R
p ∂ p p p
−1
grad(R ) = êi (xj xj ) = êi (xj xj ) 2 2xi
2
∂xi 2
p−2
= pêi xi (xj xj ) 2
= pRp−2 R (2)
(a) Then we have
∂2 ∂
∇2 (Rp ) = (Rp ) = pRp−2 xi

∂xi ∂xi ∂xi
∂R xi
= p(p − 2)Rp−3 xi + pRp−2 δii = p(p − 2)Rp−3 xi + 3pRp−2
∂xi R
= [p(p − 2) + 3p]Rp−2 = p(p + 1)Rp−2
(b) Since A is a constant vector, we have
 
∂ ∂Aj
grad(R · A) = êi (xj Aj ) = êi δij Aj + xj
∂xi ∂xi
= êi (Ai + 0) = A
(c) Carrying out the indicated operation, we obtain
 
∂ ∂xj ∂Ak
div(R × A) = êi · (ejk` xj Ak ê` ) = ejk` δi` Ak + x j
∂xi ∂xi ∂xi
= (0 + 0) = 0
8 PRELIMINARIES AND VARIATIONAL METHODS

(d) Carrying out the indicated operation, we obtain


 
∂ ∂R xi 1
div(RA) = êi · (RAj êj ) = êi · êj Aj = Ai = R · A
∂xi ∂xi R R

2.2 Let A and B be continuous vector functions of the position x with continuous first
derivatives, and let F and G be continuous scalar functions of position x with continuous
first and second derivatives. Show that:
(a) ∇(A · x) = A + ∇A · x
(b) ∇ · (F A) = A · ∇F + F ∇ · A
Solution:
(a) Since A=A(x), we have
 
∂ ∂Aj ∂xj
grad(A · x) = êi (Aj xj ) = êi x j + Aj
∂xi ∂xi ∂xi
= ∇A · x + A
∂x
where Aj ∂xji = Aj δij = Ai is used in arriving at the final expression.
(b) Since F = F (x) and A=A(x), we have
   
∂ ∂Aj ∂F
∇ · (F A) = êi · (êj Aj F ) = δij F + Aj
∂xi ∂xi ∂xi
∂Ai ∂F
= F + Ai = ∇ · AF + A · ∇F
∂xi ∂xi

2.3 Let a be continuous second-order tensor function of the position x with continuous first
derivatives, and let u be a continuous scalar function of the position x with continuous
first and second derivatives. Show that
  
1 ∂ ∂u 1 ∂u ∂u
∇ · (a · ∇u) = r arr + arθ + arz
r ∂r ∂r r ∂θ ∂z
 
1 ∂ ∂u 1 ∂u ∂u
+ aθr + aθθ + aθz
r ∂θ ∂r r ∂θ ∂z
 
∂ ∂u 1 ∂u ∂u
+ azr + azθ + azz
∂z ∂r r ∂θ ∂z

Solution: First note that


∂u 1 ∂u ∂u
∇u = êr + êθ + êz
∂r r ∂θ ∂z

a = arr êr êr + arθ êr êθ + arz êr êz + aθr êθ êr + aθθ êθ êθ + aθz êθ êz
+ azr êz êr + azθ êz êθ + azz êz êz
∂u 1 ∂u
a · ∇u = (arr êr + aθr êθ + azr êz ) + (arθ êr + aθθ êθ + azθ êz )
∂r r ∂θ
∂u
+ (arz êr + aθz êθ + azz êz )
∂z
PRELIMINARIES AND VARIATIONAL METHODS 9

Then, using Eq. (2.2.12), we have


 
∂ ∂u 1 ∂u ∂u 1 ∂u 1 ∂u 1 ∂u
∇ · (a · ∇u) = arr + arθ + arz + arr + arθ 2 + arz
∂r ∂r r ∂θ ∂z r ∂r r ∂θ r ∂z
   
1 ∂ ∂u 1 ∂u ∂u ∂ ∂u 1 ∂u ∂u
+ aθr + aθθ + aθz + azr + azθ + azz
r ∂θ ∂r r ∂θ ∂z ∂z ∂r r ∂θ ∂z
Since    
1 ∂ ∂u ∂ ∂u 1 ∂u
rarr = arr + arr
r ∂r ∂r ∂r ∂r r ∂r
and so on, we arrive at the desired result.

In Problems 2.4–2.9, construct the weak forms and, whenever possible, the associated
quadratic functionals (I).

2.4 A linear differential equation:


 
d 2 du
− (1 + 2x ) + u = x2
dx dx
 
du
u(0) = 1 , =2
dx x=1

Solution: First, compare the given equations with the model equation in (2.4.1) and its
boundary conditions (2.4.2). We find that a(x) = 1 + 2x2 , c(x) = 1, f (x) = x2 , L = 1,
u0 = 1, β = 0, and QL = 3 × 2. Hence, the weak form is obtained directly from (2.4.18)
as
Z Lh
dwi dun i
0= (1 + 2x2 ) + wi un − wi x2 dx − 6wi (1) (2)
0 dx dx
The bilinear and linear forms are given by Eq. (2.4.19) as
Z 1 
2 dwi dun
B(wi , un ) = (1 + 2x ) + wi un dx (symmetric)
0 dx dx
Z 1 (3)
`(wi ) = x2 wi dx + 6wi (1)
0

Since B(·, ·) is symmetric in its arguments and `(wi ) is linear in wi , a quadratic functional
can be constructed and it is given by [see Eq. (2.4.25)]
1
I(un ) = B(un , un ) − `(un )
2
Z " 2 #
1 1
 Z 1
2 du n 2
= (1 + 2x ) + un dx − x2 un dx − 6un (1)
2 0 dx 0
10 PRELIMINARIES AND VARIATIONAL METHODS

2.5 A nonlinear equation:


 
d du
− u + f = 0 for 0 < x < 1
dx dx

 
du
u = 0 u(1) = 2
dx x=0

Solution: Compared to the model equation (2.4.1), we have a(x) = un (x), f (x) →
−f (x), and L = 1. Following the three-step procedure, we write the weak form
Z 1    
d dun
0= wi − un + f dx (1)
0 dx dx
Z 1      1
dwi dun dun
= un + wi f dx − wi un (2)
0 dx dx dx 0

Using the boundary conditions, wi (1) = 0 (because un is specified at x = 1) and


(dun /dx) = 0 at x = 0, we obtain
Z 1 
dwi dun
0= un + wi f dx (3)
0 dx dx
For this problem, the weak form does not contain an expression that is linear in both
un and wi ; the expression is linear in wi but not linear in un . Therefore, a quadratic
functional does not exist for this case. The expressions for B(·, ·) and `(·) are given by
Z 1
dwi dun
B(wi , un ) = un dx (not linear in un and not symmetric in un and wi )
0 dx dx
Z 1
`(wi ) = − wi f dx (4)
0

2.6 The Euler-Bernoulli-von Kármán nonlinear theory of beams:


( "  2 #)
d du 1 dw
− EA + = f for 0 < x < L
dx dx 2 dx
( " 2 #)
d2 d2 w
  
d dw du 1 dw
EI 2 − EA + =q
dx2 dx dx dx dx 2 dx

d2 w
   
dw
u=w=0 at x = 0, L; = 0; EI 2 = M0
dx x=0 dx x=L

where EA, EI, f , and q are functions of x and M0 is a constant. Here u denotes the
axial displacement and w the transverse deflection of the beam.
Solution: The first step of the formulation is to multiply each equation with a weight
function, say v1i for the first equation and v2i for the second equation, and integrate
over the interval (0, L). In the second step, carry out the integration-by-parts once in
the first equation, twice in the first term of the second equation, and once in the second
PRELIMINARIES AND VARIATIONAL METHODS 11

part of the second equation. Then use the fact that v1i (0) = v1i (L) = 0 (because u
is specified there), v2i (0) = v2i (L) = 0 (because w is specified), and (dv2i /dx)(0) = 0
(because dw/dx is specified at x = 0). In addition, we have EI(d2 w/dx2 ) = M0 at
x = L. The final weak forms are given by (assuming m-parameter approximation of u
and n-parameter approximation of w)
Z L( "  2 # )
dv1i dum 1 dwn
0= EA + − v1i f dx (i = 1, 2, · · · , m) (1a)
0 dx dx 2 dx
Z L( " 2 # )
d2 v2i d2 wn

dv2i dwn dum 1 dwn
0= EI + EA + − v2i q dx
0 dx2 dx2 dx dx dx 2 dx
 
dv2i
− M0 (i = 1, 2, · · · , n) (1b)
dx
L

Note that for this case the weak form is not linear in um or wn . However, a functional
can be constructed for this using the potential operator theory (see Oden and Reddy [10]
and Reddy [3]). The functional is given by
Z L( " 
2 2 4 # 2
EI d2 w
  
EA du du dw 1 dw
Π(u, w) = + + +
0 2 dx dx dx 2 dx 2 dx2
)
dw
+ uf + wq dx − M0
dx
L

2.7 A general second-order equation:


   
∂ ∂u ∂u ∂ ∂u ∂u
− a11 + a12 − a21 + a22 + f = 0 in Ω
∂x ∂x ∂y ∂y ∂x ∂y
   
∂u ∂u ∂u ∂u
u = u0 on Γ1 , a11 + a12 nx + a21 + a22 ny = t0 on Γ2
∂x ∂y ∂x ∂y
where aij = aji (i, j = 1, 2) and f are given functions of position (x, y) in a two-
dimensional domain Ω and u0 and t0 are known functions on portions Γ1 and Γ2 of the
boundary Γ: Γ1 + Γ2 = Γ.
Solution: Multiplying with the weight function wi and integrating by parts, we obtain
the weak form
Z      
∂wi ∂un ∂un ∂wi ∂un ∂un
0= a11 + a12 + a21 + a22 + wi f dxdy
Ω ∂x ∂x ∂y ∂y ∂x ∂y
I     
∂un ∂un ∂un ∂un
− wi a11 + a12 nx + a21 + a22 ny ds
Γ ∂x ∂y ∂x ∂y
Z      
∂wi ∂un ∂un ∂wi ∂un ∂un
= a11 + a12 + a21 + a22 + wi f dxdy
Ω ∂x ∂x ∂y ∂y ∂x ∂y
Z
− vt0 ds
Γ2
12 PRELIMINARIES AND VARIATIONAL METHODS

where wi = 0 on Γ1 . The bilinear form (which is symmetric only if a12 = a21 ) and linear
form are:
Z  
∂wi ∂un ∂wi ∂un ∂wi ∂un ∂wi ∂un
B(wi , un ) = a11 + a12 + a21 + a22 dxdy
Ω ∂x ∂x ∂x ∂y ∂y ∂x ∂y ∂y
Z Z
`(wi ) = − wi f dxdy + wi t0 ds
Ω Γ2

The quadratic functional, when a12 = a21 , is given by


Z "  2  2 #
1 ∂u ∂u ∂u ∂u
I(u) = a11 + 2a12 + a22 dxdy
2 Ω ∂x ∂x ∂y ∂y
Z Z
+ uf dxdy − u t0 ds
Ω Γ2

2.8 Two-dimensional heat transfer in an axisymmetric geometry:


    
1 ∂ ∂T ∂ ∂T
− rk + k = g in Ω (1)
r ∂r ∂r ∂z ∂z
 
∂Tn ∂Tn
T = T̂ on ΓT and qn ≡ rk nr + nz = q̂n on Γq (2)
∂r ∂z

Solution: The weak form of this equation can be developed following the three-step
procedure with the area element being dA = rdrdz and wi = 0 on ΓT :
Z      
1 ∂ ∂Tn ∂ ∂Tn
0=− wi rk + k + g rdrdz
Ω r ∂r ∂r ∂z ∂z
Z  
∂wi ∂Tn ∂wi ∂Tn
= k + − wi g rdrdz
Ω ∂r ∂r ∂z ∂z
I  
∂Tn ∂Tn
− rkwi nr + nz ds
Γ ∂r ∂z
Z   Z
∂wi ∂Tn ∂wi ∂Tn
= k + − wi g rdrdz − wi q̂n ds (3)
Ω ∂r ∂r ∂z ∂z Γq

where (nr , nz ) are the direction cosines of unit normal to the boundary. The bilinear and
linear forms are
Z  
∂wi ∂Tn ∂wi ∂Tn
B(wi , Tn ) = k + rdrdz
∂r ∂r ∂z ∂z
ZΩ Z (4)
`(wi ) = wi g rdrdz + wi q̂n ds
Ω Γq

The quadratic functional is given by


Z " 2  2 # Z Z
k ∂T ∂T
I(T ) = + rdrdz − T g rdrdz − T q̂n (5)
Ω 2 ∂r ∂z Ω Γq
PRELIMINARIES AND VARIATIONAL METHODS 13

2.9 Governing equations for two-dimensional flow of viscous incompressible fluids:


 2  
∂ vx ∂ ∂vx ∂vy ∂P
−µ 2 2 + + + = fx
∂x ∂y ∂y ∂x ∂x
 2  
∂ vy ∂ ∂vx ∂vy ∂P
−µ 2 2 + + + = fy in Ω (1)
∂y ∂x ∂y ∂x ∂y
∂vx ∂vy
+ =0
∂x ∂y

vx = v̂x , vy = v̂y on Γ1 (2)


and     
∂vx ∂vx ∂vy
2µ − P nx + µ + ny = t̂x
∂x ∂y ∂x
     on Γ2 (3)
∂vy ∂vx ∂vy
2µ − P ny + µ + nx = t̂y
∂y ∂y ∂x

Solution: For this set of three differential equations in two dimensions (see Chapter
11 and Reddy [7] for the physics behind the equations), we follow exactly the same
procedure as before: use the three-step procedure for each equation. In the second step
of the formulation, we must integrate by parts the terms involving P , u, and v, because
these terms are required as a part of the natural boundary conditions given in Eq. (3). No
integration by parts is used in the third equation, because the boundary terms resulting
from such integration-by-parts do not constitute physical variables. We have
Z   2   
∂ vx ∂ ∂vx ∂vy ∂P
0= w1i −µ 2 2 + + + − fx dxdy
Ω ∂x ∂y ∂y ∂x ∂x
Z       Z
∂w1i ∂vx ∂w1i ∂vx ∂vy
= 2µ −P +µ + − w1i fx dxdy − w1i t̂x ds
Ω ∂x ∂x ∂y ∂y ∂x Γ2
(4)
Z   2   
∂ vy ∂ ∂vx ∂vy ∂P
0= w2i −µ 2 2 + + + − fy dxdy
Ω ∂y ∂x ∂y ∂x ∂y
Z       Z
∂w2i ∂vx ∂w2i ∂vx ∂vy
= 2µ −P +µ + − w2i fy dxdy − w2i t̂y ds
Ω ∂y ∂y ∂x ∂y ∂x Γ2
(5)
Z  
∂u ∂v
0= w3i + dxdy (6)
Ω ∂x ∂y
where (w1i , w2i , w3i ) are weight functions such that w1i = w2i = 0 on Γ1 . The bilinear
form may be identified by adding all three equations in (4)–(6) and grouping the terms
14 PRELIMINARIES AND VARIATIONAL METHODS

appropriately [wi = (w1i , w2i , w3i ) and v = (vx , vy )]


Z      
∂w1i ∂vx ∂w2i ∂vy ∂w1i ∂w2i ∂vx ∂vy
B(wi , (v, P )) = µ 2 + + + + dxdy
Ω ∂x ∂x ∂y ∂y ∂y ∂x ∂y ∂x
Z     
∂w1i ∂w2i ∂vx ∂vy
− + P+ + w3i dxdy (7)
Ω ∂x ∂y ∂x ∂y
Z Z
`(wi ) = (fx w1i + fy w2i ) dxdy + (t̂x w1i + t̂y w2i ) ds (8)
Ω Γ2

Since B(·, ·) is symmetric and `(·) is linear in their arguments, we can construct the
quadratic functional using Eq. (2.4.25) as follows [set w1i = vx , w2i = vy , and w3i = P
in B(·, ·) and `(·) before substituting into Eq. (2.4.25)]:
Z " 2  2  2 #
1 ∂vx ∂vy ∂vx ∂vy
I(v, P ) = µ + + + dxdy
2 Ω ∂x ∂y ∂y ∂x
Z    Z
∂vx ∂vy
− + P + (fx vx + fy vy ) dxdy − (t̂x vx + t̂y vy ) ds (9)
Ω ∂x ∂y Γ2

2.10 Compute the coefficient matrix and the right-hand side of the n-parameter Ritz approx-
imation of the equation
 
d du
− (1 + x) = 0 for 0 < x < 1
dx dx

u(0) = 0, u(1) = 1
Use algebraic polynomials for the approximation functions. Specialize your result for
55 20
n = 2 and compute the Ritz coefficients. Answer: c1 = 131 and c2 = − 131 .
Solution: The weak form for this problem is given by
Z 1
dw du
0= (1 + x) dx = B(w, u); `(w) = 0
0 dx dx
The variational problem is given by Eqs. (2.5.1) and (2.5.2), where [`(φi ) = 0 because
there is no source term], and the Ritza equations are given by Eqs. (2.5.5) and (2.5.6)
with
Z 1
dφi dφj
Kij = B(φi , φj ) = (1 + x) dx (1a)
0 dx dx
Z 1
dφi dφ0
Fi = −B(φi , φ0 ) = − (1 + x) dx (1b)
0 dx dx
The approximation functions φ0 and φi should be chosen such that
φ0 (0) = 0, φ0 (1) = 1 ; φi (0) = φi (1) = 0, (i = 1, 2, ..., n) (2)
The following algebraic polynomials satisfy the above requirements:
φ0 = x , φi = xi (1 − x) (i = 1, 2, . . . , n) (3)

You might also like