Professional Documents
Culture Documents
Partial DifferentialEquations
8.1 Introduction
A partial differential equation (ror) is a differential equation containing derivatives
involving two or more independent variables. This is in contrast to the ordinary
differehtial equations in the previous chapter which only involved one independent
variable.
Many phenomena in engineering science are described by partial differential
equations. For example a dependent variable such as a displacementor temperature
may vary as a function of time (r) and space (x, y, z).
The solution of partial differential equations for realistic problems is beyond the
scopeof this book, but the subject is coveredin a large number of more advancedtexts,
some of which are mentioned at the end of this chapter. Some of thesetexts describethe
'finite
elementmethod'which is undoubtedly the most widely used method of solution
F.
for partial differential equations at the present time.
The finite clement method is not covered in this book, since the authors have
I already devoted a text to it (Smith and Griffiths 1988). However, some solutions
I
tr involving the'finite difference method', which is much simpler to describe, will be
I presentedfor a selectionof rather elementary examples.
l'
* ;
All that is attempted here is an introductory treatment of the subject.The aim is to
enable the student to recognisecertain types ofpartial differential equation and obtain
some insight into the types of physical phenomena they describe.
note the presenc€of 'mixed' derivatives such as that associatedwith the coefficient b.
If a,b,c,...,9 are functions of x and y only, the equation is'linear', but if these
coefficientscontain u or its derivatives, the equation is 'nonlinear'.
The degreeof a por is the power to which the highestderivative is raised,thus eq. 8.1
is first degree.Only linear (first degree)equations will be considered in this chapter.
1ID
I N T R O D U C T I O NT O P A R T I A LD I F F E R E N T I A E
L OUATTONS 277
o zao_f ,ao-f
/ oJr _
: dof ,
Ax4a Ax2V-r Ay4
Table 8.1 summarises some commonly encountered poes and the type of physical
situation in which they might arise.
du 0u
P:;-' Q:-
ox ov
278 C H A P T E RB
hence
aP*bq:g (8.3)
A 'solution'to eq.8.2will be an estimateof the valueof u at any point within the
x, y-plane.Thisplaneis knownasthe'solutiondomain',andin orderto find valuesof
u in this rangewe requiresome'initialconditions'in order to get started.
As shownin Fig.8.1,letvaluesof u beknownalongthelineI in thesolutiondomain.
We now consider an arbitrarvlineC whichintersects our initiallineI asshownin Fis.
8.2.
\.";$"
\ *no*n vatuesof u
\-
'initial
Fig. 8.1 Solution domain and conditions'line I
E ( x + 6 x ,y + 6 y )
l t
I
xo
Fig. 8.2 Characteristic line C intersecting line I
- du^ du^
du:^ dx*^ dV (8.4)
dx 0y-
, du. 0u.
64:;-OX*_ Cly (8.5)
Ox 0y
611:pdx+qdy (8 6)
I N T R O D U C T I O NT O P A R T I A L D I F F E R E N T I A L
EOUATIONS 279
c dx - a du :0 (8.9)
Combining this with eq. 8.8 gives the final relationship along this specialline C as
a
dx dy du
(8.10)
a b c
Thus the original eor given by eq. 8.2 has been reduced to an ordinary differential
equation in x (or y).
This special C-line is called a'characteristic'and it can be shown that within the
solution domain, a family of similar lines exists along which the pnE reduces to an
ordinary differential equation. Along these'characteristics' ordinary differential
equation solution techniquesmay be employed such as those describedin Chapter 7.
Rearrangement of eq. 8.10 gives the first order ordinary differential equations
d y b
,:* Xxo):yo
o x a
( 8 . 1l )
d u c
u(x6): us
d x a
where the initial conditions (xe, y6) and (xe, u6)correspond to valuesof x, y and u at the
point of intersection of the characteristic line C with the initial conditions line I as
shown in Fig. 8.2.
Thus, if we know the value of a6 at any initial point (xo, yo), solution of the ordinary
differential equations given by eq. 8.11 will lead to values of u along the characteristic
line passing through (xo, yo).
Example 8.1
du.^,0u
^ tJx--:x*y
ox oy
f i n d u ( 3 , 1 9 ) g i v e nt h e i n i t i a l c o n d i t i o n u ( x , 0 ) : 1 2
280 C H A P T E RB
Solution8.1
, d y ^ a
nence (A)
d*:lr'
du
Y (B)
dt:'+
From (A),y: x3 + k whichis the equationof the family of characteristic
lines.We are
interestedin the characteristicpassingthrough the point (3,19),thus
lg:27 +k
k: -8
y:x3 -8 which is the equationof line C.
The initial valueline I, is the x-axisas shownin Fig. 8.3.The characteristic
line of
interestintersectsthe x-axisat (2,0),at which point the value of u:4.
rr 1'l 1Q\ - ?
-du
.:x*x'-8
dx
u:L*t+|xa-8x+K.
However, it is knownthatwhenx: 2,u:4, henceK: 14.Thusalongthecharacteristic
line given by
Y:x3-8
{
I N T R O D U C T I OTN
O P A R T I A LD I F F E R E N T I A E
L OUATIONS 281
H e n c ew h e n x : 3 , u : 1 4 . 7 5 .
Example8.2
Giventhe equation
0u
j -xr ;lou
* ux; - o y - u '.
Solution8.2
contalnlng u, 1.e.,
^a ^1 ^)
o'u o'u o-u (8.12)
a- +b;-* + cJ* s:o
ox' oxov ov-
We assumefol. no* that the equationis linear,that is the termsa,b,c andg are
functionsof x and y only and not of u or its derivatives.
The followingsubstitutionscan be made to simplify the algebra:
du Ou dzu O2u dzu
'D : - , q::-, f:=--i, 5::--;-, t:{
Ox oy ox' oxoY oY-
hence, ar * bs* ct * g:0 (8.13)
-(l;).']-["::fr*f*n#]
'["(:*)' :. (8.l 6)
'(#)'-,(fl).':o (8.r7)
Depending on the roots of 8.17 we can classify three different types of poe.
"t.ffi*ffi:o
e.s. Laplace's
P o i s s o n*' s* * * : f @ , Y )
ox- oy-
I n b o t hc a s ebs : 0 , a : c : 1 , b 2 - 4 a c : -4
I N T R O D U C T I OTNO P A R T I A L
D I F F E RE N T I A LE O U A T I O N S 283
'pnnasoLtc'
(b) b 2- 4 a c : 0 Equationis
Characteristics are coincident
^ 1
eq. a#-#:o
e.g.consolidation
In this cASa
e:cv, b:c:0, b 2- 4 a c : 0
02u | 02u
e.g.waveeq.
a?-F al:u
I n t h i sc a s ec : l , b : 0 , c : - l l k 2 , b z- 4 a c : 4 1 k 2
h or example,
/ou\ I
l^ l=;(ui*,,;-ui-r.i)
lox/i; tn
(8.r8)
/au\ I
{\ w; vl =l ;i i ( u iL ,^ j * ' - u i . i - r )
F. (Y,),,=#
o-o,,-ol
lb
,
t^
l
J
c
(#),-*l
@,,
I t-
I
(8.re)
rl
Lt I
Combining these two first derivatives, and letting ft: k, which will always be
assumed unlessstated otherwise, we get
(#.#),,=-[4,,--o] (8.20)
(8.21)
I N T R O D U C T I O NT O P A R T I A LD I F F E R E N T I A L
EOUATIONS
v,.,=)[o$"_o] (8.22\
Centraldifference'molecules'
for third andfourth derivativescanbewrittenin theform
(8.23)
(8.24)
'and 'mixed'
derivativesas
0ra,\
ax\ay/,,
:rg)-aI
-oorl
\oxoy / jj
(8.25)
,ourr-i (8.26)
All these examples used the lowest order central difference form from Table 5.3.
Clearly higher order versions could be devised including forward and back*'ard
difference versions if required.
It makes s€nseto use central difference formulae when possible,as they give the
greatest accuracy in terms of the number of points included.
When using thesecentral differenceformulae, the yth grid point always lies at the
'molecule'.
middle of the This is the point at which a derivative is to be approximated.
'molecule'
and the can be visualised as an overlay to the grid drawn on the
two-dimensional solution domain.
'molecules'
It may be noted that the rectangular nature of the implies that the
solution domains must also be rectangular. Problems with non-rectangular soiution
domains can be tackled using the'molecule'approach, but some assumptionsmust be
made when the boundary crossesbetween grid points. All the examplesshown in this
chapter will involve rectangulardomains.
286 C H A P T E R8
F
domains (see Fig. 8.5). The boundary conditions must be known, and the problem
amounts to finding the values of the dependent variable at internal locations.
Numerically, after the finite difference'discretisation'processhas been completed, the
solution of a set of (linear) simultaneous equations is involved.
b;
Example8.j
The rectangularplateshownin Fig. 8.6is subjectedto the boundarytemp€ratures as
indicated.Usea finitedifference
schemeto estimatethesteadystatetemperatures
at the
internalgrid points.
INTRODUCTION
T O P A R T I A LD I F F E R E N T I A E
LOUATIONS
5cm ("
T T2 T
T5 T
( 20 crn
50'
)
T7 T6 T
"_"*lt
o.J
20 cm
Solution 8.3
a2T azT
,.-*-:Q
ox- ov-
By symmetry,it can be statedthat
Tz:T+, Tt:Tt, To:Te
grid is squarewith a sidelengthof 5 cm, hencethe 'molecule'is
The finite difference
givenby
H,,-o]:,
The centreof the moleculeis now placedat eachunknowngrid point in turn to give
Point
I 5 0 + 5 0 + T 2 f- To - 4 T t : g
4 5 0 + T r + T 5* T t - 4 T o : g
5 T4+T2+76 +T8 - 4 T s : 0
a
5 0 + T 4 + T 8+ 0 -471 :Q
8 T 1 + T 5 + T e+ 0 - 4 T t : g
9 f 8 + 1 6 + 0 + 0 - 4 T n : g
288 CHAPTER8
I
I
2 - 4 0
0 -4
I
0 1 1 - 4 I
0
2
I
0
0
0
IiLI
l;{I
-50
0
-50
0
- 0 0 0 0 2 - 4 \Tsl \ 0
which is of the form Ax: b.
It is muchmoreconvenient for somecomputational purposes(seeChapter2)iithe
leadingdiagonaltermsin A arepositive.At thesametime,we noticethat A can readily
bemadesymmetricby, for example,multiplyingthe second,fourth and fifth equations
by 2.It c?nalsobe notedthat a featureof finite difference
(andof all'grid') methodsis
that the discretisation
leadsto a bandedstructurefor A. in this casewith a half
bandwidthof 2.
An appropriatesolutiontechniquefrom Chapter2 might thereforebe Program2.4
for symmetric,banded,positivedefinitesystems. The input bandmatrix (in rectangular
form) would be
- 0
0 4
0 -2 8
0 - 2 4
F; * 2 0 8
- 2 - 2 8
0 - 2 4
I r,\ (42.86\
just described,
In the example the valueof T wasknownaroundtheentireboundary.
Derivativeboundaryconditionsmayalsoapplyandcanbetackledby theintroduction
INTRODUCTION
T O P A R T I A LD I F F E R E N T I A E
L OUATIONS 289
Example8.4
Ia = 150' T5 T'1 5
Solution8.4
givingthe computational'molecule'for
this exampleas
[4,d:.
The centre of the molecule is now placed at each unknown grid point in turn to give
Point
Ttu-Tt__r, Trr-Te__,a
"'
20 20
Substituting for Tt6 and T11,and changing the signs of all terms results in the matrix
equation
I ro - l -4 ol fr.) l, gso]
lI - , r o o - 411l1r ./ :t1l - r *|{
-8 0 r0 -l
I I lr,[ | 2001
L o 8- -2 rol lr"J l-:oo/
Again this can be made symmetrical,for example by multiplying the first equation by
2 and dividing the last equation by 2. After these operations, the input matrix for
Program 2.4 becomes
l-o o2ol
*2 l
I - 8o 0 '1 o
0
| |
L-o -r 5l
with b vector
[r,) [ ss.r)
/r.f: J-:z.rf
Hl t-llll
8.7 Parabolicsystems
'conduction'or 'consolidation'
For typical parabolic equations,for examplethe
equation,we requireboundaryconditionstogetherwith initial conditionsin time.The
solutionthenmarchesalongin time for as long as required.Unlike ellipticproblems,
the solutiondomainis'open',(seeFig. 8.8)in thesensethat thereis no limit to the time
value at which a solutioncould be sought.
Boundary
condition
I
Initial condi
Fig. 8.8 Opensolutiondomainfor parabolicproblems
z:1,
D'
u:+,
-
Uo'
r:c4
D2
292 C H A P T E RB
where D: reference length (drainage path length), Uo: reference pressure (initial
pressureat r:0)i and T:dimensionless time known as the'time factor'.
The derivatives can be written as
du 0u0Z I 0u
0z dZOz DaZ
(8.28)
azu a /au\ a az /au\
t - t : _ _ t _ t - _ _
| Ozu
azt 0z \dz) dZ dz \d=) D2 aZ2
0u du dT c, Au
also (8.2e)
dt 0I 0r frar
and (8.30)
!:UUo
After substitutioninto eq.8.27we get
c, a2$lud c, 0(UU6)
D, Ozr-:F ar
,nence a z u a u (8.3l)
aF: aT
whichis thedimensionless
formof eq.8.27.
I
F}
8.7.1 Stability of finite differences
t
9 l = (ui - 1,i-2ui.;r ui*r,;) (8.32)
# *
- i
0 u l
= (8.33)
O, nluti+t-ui.i)
Equations8,32and 8.33can be substitutedinto eq. 8.27and rearrangedto give
v vAa .
tti.i-r =ui ;* -i;(u; - t,j-2ui,1*Ui* (8.34)
r.j)
/2"
I N T R O O U C T I O NT O P A R T I A LD I F F E R E N T I A E
LOUATIONS ,o2
Example8-5
.The insulatedrod shownin Fig. 8.9is initially at 0" at all pointsalongits lengthexcept
at the left-handendwhichis maintainedat 100"C.Usefinitedifferences to computethe
temperaturevariation as a function of position and time.
Solution8.5
Governingequation
^ a t
,O-Q OQ
K;--;:-7-
ox- ot
azo ao
axr: ar
y l l l s y sN : L , Q = O k t
6o": L'
294 C H A P T E R8
Expressingthe dimensionless
equationin finite difference
form to give
a,*r.):#(e,.i*,-e,,i)
#r*,- t,1-2ei;*
The stabilityrequirementis that lTl/X2 <{. If we let lTl/X2:} then the formula
simplifiei to
Qi,;* t:* ( @ i -r , ; * o , * r , ; )
Let lX:0.2 and /T:0.02 and setout resultsin tabularform as shownin Table 8.2.
(Insteadof applyingthe full temp€ratureof O:1.0 at T:0.0 and X:0.0, it is
sometimesrecommended that half is appliedat T:0.0 and the remainderat T: /7.)
The condition that AAIAX:0 at X:1 is maintainedby including the fictitious
valuesat X:1.2 which by centraldifferences, are maintainedat the samevaluesas
thoseat X:0.8.
0.0 0.2
" l
0.0 0.5 0.0 0.0 0.0 0.0 0.0 0.0
0.02 1.0 0.25 0.0 0.0 0.0 0.0 0.0
0.04 1.0 0.50 0.125 0.0 0.0 0.0 0.0
0.06 1.0 0.563 0.25 0.063 0.0 0.0 0.0
0.08 1.0 0.625 0.313 0.125 0.031 0.0 0.031
0.10 1.0 0.656 0.375 o.t72 0.063 0.031 0.063
0.12 1.0 0.688 0.414 0.219 0.102 0.063 0.102
0.14 1.0 0.707 0.453 0.258 0.141 0.102 0.141
Example 8.6
Solution8.6
form (seep. 291)
Solvethe dimensionless
A2U AU
a7: ar
The stabilityrequirementis that lT llzz < | so let lT:0.02, AZ:0.2 which leadsto
the finite differenceequation
Ui , i * r : I ( U i - r , i * U , * r , i )
In orderto find how manydimensionlesstime stepsarerequiredto reachonehour,
we needthe relationshipbetweenT and f, i.e.
r A t
/T:""=-;' where D:reference length
t L)'
TableE3.Tabulated
values
of U:f(2,7) fromExample
8.6
T 0.0 0.02 0.04 0.06 0.08
8.8 Hyperbolicsystems
Hyperbolic systemsusually involve propagation phenomena,for example as described
by the wave equation. The displacementsof a vibrating string are given by
^ a ^ t
^ o-D o't)
c'7--;:;-; (8.36)
ox' ot'
Excesspore pressure kN / m2
100 200
48
72
n^^.* 96
mm 120
144
168
192
ato
240
Fig. 8.1.0 Excesspore pressuredistributionfrom Example8.6
u x c t
V:-, X: - and T:=
D 6 ' L L
, a2v o2v
.-:-
nenC€ (8.40)
o2t' ot-
-
INTRODUCTION
T O P A R T I A LD I F F E R E N T I A L
EQUATIONS
AT2
lV
/
i.)+ r : - r.i - zv1j + Vi * r,) - Vi,j - | + zvi,j
/(Vi
r/
(8.42)
7 yz
If we arrangefor aX: lT then eq.8.42simplifiesconsiderablyto become
Vi,j* t: Vi- r,j-V1,i- 1* Vla 1,i (8.43)
whichalsoturnsout to be theexactsolution!Other valuesof the ratio /'f//X could be
used,but stability is only guaranteedif it is lessthan one.
8.7
.Example
Solvethe waveequation
azu azu
axt: aT,
intherange0<X<1,0<Tsubjecttothefollowinginitialandboundaryconditions
At X:0 and X:1, U:2 sin(nTl5)for all T
When T:0, U -dUl0T:0 for all X.
Solution8.7
8.9 Exercises
Given the equation
r0z 0z
\ -/ x o- - +xz -o: v - z ' ,
Given
z(xp- yzq): y2- x2
where
dz 0z
p:- ano q: ^
ox ov
For the characteristic passingthrough(1, l) estimatethe valueof y and z whenx: 1.5given
t h a t4 1 , 1 ) : 1 .
Answer:O.'1Q2,0.562.
(0,1)
(1,0)
subjectto boundaryconditions:
At x:0 T:100
x: I T:0
/:0 T:100
r:l T:0
Laplace'sequationgovernsthe behaviour.
{
I N T R O D U C T I O NT O P A R T I A LD I F F E R E N T I A E
LOUATIONS
4 The figurebelowrepresents
thecross-section
of an 8 cm squarebar subjected
to puretorsion
ci""o ttr"t d:0 on the boundaries,find its valueat thc internalgrid points.
A n s w e rQ
: t:Qt:Qg:ds:5.5 cm2 Qz:6t:Qe :Qa:7 crn2 er:9 cm,
1 2 1
l
Boundaryconditions:
t l
t
t l
t AB: T:0,
a2T
r:-10
oy'
C DT: : 0 ,
A2T
#:-rO
r
D
t BC: T:0,
a'r
_:_5O
ox
DA:T:0,
#:rO
Answer: 15.833
6 The steadytwo-dimensional
distributionin a heatconductingmaterialis givenby Laplace's
equation
a zT a2T
-r--O
o)(- ov-
300 C H A P T E R8
02T
: -4 alongBC
Al
T in "C.
Dimensionsin metres,temperatures
g:pcIr av,
where Q is in joules (J), p is density (: 8000 kg/mt), c is specific heat capacity of the material
(:1000J/kgfC), and dll is an increment of volume (m3). If the thickness of the plate is
50 mm, use the repcated trapezium rule to estimate 0.
A n s w e r :T r : T t : 7 7 . 3 3 , T 2 : f . 1 : 3 4 , Q : 1 . 5 5 g I
o.T
yn -r *1 : - * - ; , 0 2 "T* ,, a- :20T,
ox- ov' oz'
where T i, t"-p"."tu.e and x, y, and zrepresent the Cartesian coordinate system. Derive
a finite diffcrence form of this equation at the point (x,, y r z) assuming a cubic mesh.
Use this approximatioq and a grid spacing of 0.5, to determine the temperature at the
centre of a cube of unit dimensions, given that
AT AT
^ ( x , y , 0 ) :^ ( x , y , 1 ) : 0 , 0 < x , y < l
oz oz
, , - ( A s - A , )o/ o,
v?--
AO
where ,4e and A, are the areas of the pore pressure distributions
at time t:0 and
t respectively.
Answer: 54Y:o
0u
u ( 0 I, ): a x ( 1 0 t, ) : 0 for all I
u(x,0):x(20-x) for0<x<10
du
(x,0):0 for0<x<10
u,
T a k e/ x : / t : 2 a n d f i n d u ( x , 2 0 )f o r x : 2 , 4 , 6 , g .
Answer:u(2,20): -36, u(4,20): -64, u(6,20): -84, u(8,20): _96.
302 C H A P T E RB
8.10 Furtherreading
Burden, R.L. and Faires, J.D. (1989).Numerical Analysis,4th edn, PWS-Kent, Boston, Massachusetts.
Chapra, S.C.and Canale, R.P. (1988\-Numerical Methoils for Engineers,2ndedn, McGraw-Hill, New York.
Cheney, W. and Kincaid, D. (1985). Numerical Mathematics and Computing, 2nd edn, Brooks/Cole,
Monterey, California.
Forsythe, G. and Wasow, W.(1960)- Finite Diference Methods for Partial Dffirential Equations, Wiley, New
York.
i
Frobcrg, C.E. (1985). Nunterical Mathematics, Benjamin/Cummings, Menlo Park, California.
Gladwell, I. and Wait, R. (eds) (1979). A Survey of Nutnerical Methods for Partial Diferential Equations,
Oxford University Press,Oxford.
Lapidus, L. and Pinder, G. (1982). Numerical Solution of Partial Diferential Equations in Science and
Engineering, Wiley, New York.
Mitchell, A.R. (1969). Computatiotal Methods in Partial Diferential Equations, Wiley, New York.
Ralston, A. and wilfi H.s. (1967). Mathematical Methods for Digital computers, wiley, New york.
Richtmyer, R. and Morton, K. (1967). Diference Methods for Initial Value Problems,2nd edn, Wiley, New
York.
Salvadoh, M.G. and Baron, M.L. (1961). Nunerical Methods in Engineering, Prentice-Hall, Englewood
Cliffs, New Jersey.
Schwarz, H.R. (1989).Numerical Analysis, Wiley, New york.
Shoup, T.E. (1979).A Practical Guide to Computer Methods for Engineers,Prentice-Hall, Englewood Cliffs,
New Jersey.
Smith, G.D. (1985). Nwrerkal Solution of Partial Diferentia! Equations,3rd cdn, Oxford University prcss,
I-ondon.
Smith, I.M. and Griffiths, D.V. (1988).Programming the Finite Element Method,2nd edn, Wiley, New york.
zienkiewicl o.c. (1989). The Finite Element Method,4th edn, McGraw-Hilt. Maidcnhead.
flI
l,
h;