elliptic partial differential equations - introduction

48
05/07/22 http:// numericalmethods.eng.usf.edu 1 Elliptic Partial Elliptic Partial Differential Differential Equations - Equations - Introduction Introduction http://numericalmethods.eng.us f.edu Transforming Numerical Methods Education for STEM Undergraduates

Upload: liona

Post on 21-Jan-2016

56 views

Category:

Documents


5 download

DESCRIPTION

Elliptic Partial Differential Equations - Introduction. http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates. 9/3/2014. http://numericalmethods.eng.usf.edu. 1. For more details on this topic Go to http://numericalmethods.eng.usf.edu - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Elliptic Partial Differential Equations - Introduction

04/21/23http://

numericalmethods.eng.usf.edu 1

Elliptic Partial Elliptic Partial Differential Equations Differential Equations - Introduction- Introduction

http://numericalmethods.eng.usf.edu

Transforming Numerical Methods Education for STEM Undergraduates

Page 2: Elliptic Partial Differential Equations - Introduction

For more details on this topic

Go to http://numericalmethods.eng.usf.edu

Click on KeywordClick on Elliptic Partial Differential

Equations

Page 3: Elliptic Partial Differential Equations - Introduction

You are freeYou are free

to Share – to copy, distribute, display and perform the work

to Remix – to make derivative works

Page 4: Elliptic Partial Differential Equations - Introduction

Under the following conditionsUnder the following conditionsAttribution — You must attribute the

work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

Noncommercial — You may not use this work for commercial purposes.

Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Page 5: Elliptic Partial Differential Equations - Introduction

Defining Elliptic PDE’sDefining Elliptic PDE’s The general form for a second order linear PDE with two

independent variables ( ) and one dependent variable ( ) is

Recall the criteria for an equation of this type to be considered elliptic

For example, examine the Laplace equation given by

then

thus allowing us to classify this equation as elliptic.

02

22

2

2

Dy

uC

yx

uB

x

uA

042 ACB

02

2

2

2

y

T

x

T, where , , 1A 0B 1C

04

)1)(1(4042

ACB

yx, u

Page 6: Elliptic Partial Differential Equations - Introduction

Physical Example of an Elliptic Physical Example of an Elliptic PDEPDE

bT

lT

tT

rT

L

W

x

y

Schematic diagram of a plate with specified temperature boundary conditions

The Laplace equation governs the temperature: 0

2

2

2

2

y

T

x

T

Page 7: Elliptic Partial Differential Equations - Introduction

Discretizing the Elliptic Discretizing the Elliptic PDEPDE

tT

rT

x

y

),( ji ),1( ji

)1,( ji

),1( ji

)1,( ji

)0,0()0,(m

),0( n

bT

lT ),( ji

x

yxy

m

Lx

n

Wy

22

2 ),(),(2),(),(

x

yxxTyxTyxxTyx

x

T

22

2 ),(),(2),(),(

y

yyxTyxTyyxTyx

y

T

Page 8: Elliptic Partial Differential Equations - Introduction

Discretizing the Elliptic Discretizing the Elliptic PDEPDE

tT

rT

x

y

),( ji ),1( ji

)1,( ji

),1( ji

)1,( ji

)0,0()0,(m

),0( n

bT

lT ),( ji

x

yxy

2,1,,1

,2

2 2

x

TTT

x

T jijiji

ji

22

2 ),(),(2),(),(

x

yxxTyxTyxxTyx

x

T

Page 9: Elliptic Partial Differential Equations - Introduction

Discretizing the Elliptic Discretizing the Elliptic PDEPDE

tT

rT

x

y

),( ji ),1( ji

)1,( ji

),1( ji

)1,( ji

)0,0()0,(m

),0( n

bT

lT ),( ji

x

yxy

2,1,,1

,2

2 2

x

TTT

x

T jijiji

ji

21,,1,

,2

2 2

y

TTT

y

T jijiji

ji

22

2 ),(),(2),(),(

x

yxxTyxTyxxTyx

x

T

22

2 ),(),(2),(),(

y

yyxTyxTyyxTyx

y

T

Page 10: Elliptic Partial Differential Equations - Introduction

Substituting these approximations into the Laplace equation yields:

if,

the Laplace equation can be rewritten as

Discretizing the Elliptic Discretizing the Elliptic PDEPDE

0

222

1,,1,

2

,1,,1

y

TTT

x

TTT jijijijijiji

yx

04 ,1,1,,1,1 jijijijiji TTTTT

02

2

2

2

y

T

x

T

Page 11: Elliptic Partial Differential Equations - Introduction

Once the governing equation has been discretized there are several numerical methods that can be used to solve the problem.

We will examine the:•Direct Method•Gauss-Seidel Method•Lieberman Method

Discretizing the Elliptic Discretizing the Elliptic PDEPDE

04 ,1,1,,1,1 jijijijiji TTTTT

Page 12: Elliptic Partial Differential Equations - Introduction

THE ENDTHE ENDhttp://numericalmethods.eng.usf.edu

Page 13: Elliptic Partial Differential Equations - Introduction

This instructional power point brought to you byNumerical Methods for STEM undergraduatehttp://numericalmethods.eng.usf.eduCommitted to bringing numerical methods to the undergraduate

AcknowledgementAcknowledgement

Page 14: Elliptic Partial Differential Equations - Introduction

For instructional videos on other topics, go to

http://numericalmethods.eng.usf.edu/videos/

This material is based upon work supported by the National Science Foundation under Grant # 0717624. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

Page 15: Elliptic Partial Differential Equations - Introduction

The End - ReallyThe End - Really

Page 16: Elliptic Partial Differential Equations - Introduction

Example 1: Direct Example 1: Direct MethodMethod

Consider a plate that is subjected to the boundary conditions shown below. Find the temperature at the interior nodes using a square grid with a length of by using the direct method.

C50

C75

C300

C100

m4.2

m0.3

x

y

mm 0.34.2

m6.0

Page 17: Elliptic Partial Differential Equations - Introduction

Example 1: Direct Example 1: Direct MethodMethodWe can discretize the plate by taking,

myx 6.0

Page 18: Elliptic Partial Differential Equations - Introduction

x

y

0,0T0,1T 0,2T 0,3T 0,4T

1,0T

2,0T

3,0T

4,0T

5,0T

1,1T 1,2T 1,3T 1,4T

2,1T 2,2T 2,3T 2,4T

3,1T 3,2T 3,3T 3,4T

4,1T 4,2T 4,3T 4,4T

5,1T 5,2T 5,3T 5,4T

Example 1: Direct Example 1: Direct MethodMethod

The nodal temperatures at the boundary nodes are given by:

3,2,1,300

3,2,1,50

4,3,2,1,100

4,3,2,1,75

5,

0,

,4

,0

iT

iT

jT

jT

i

i

j

j

C300

C100

C50

C75

Page 19: Elliptic Partial Differential Equations - Introduction

Example 1: Direct Example 1: Direct MethodMethod

x

y

0,0T0,1T 0,2T 0,3T 0,4T

1,0T

2,0T

3,0T

4,0T

5,0T

1,1T 1,2T 1,3T 1,4T

2,1T 2,2T 2,3T 2,4T

3,1T 3,3T 3,4T

4,1T 4,2T 4,3T 4,4T

5,1T 5,2T 5,3T 5,4T

3,2T

Here we develop the equation for the temperature at the node (2,3)

04 3,22,24,23,13,3 TTTTT

04 3,34,23,22,23,1 TTTTT

i=2 and j=3 04 ,1,1,,1,1 jijijijiji TTTTT

Page 20: Elliptic Partial Differential Equations - Introduction

Example 1: Direct Example 1: Direct MethodMethod

We can develop similar equations for every interior node leaving us with an equal number of equations and unknowns.

Question: How many equations would this generate?

Page 21: Elliptic Partial Differential Equations - Introduction

Example 1: Direct Example 1: Direct MethodMethod

We can develop similar equations for every interior node leaving us with an equal number of equations and unknowns.

Question: How many equations would this generate? Answer: 12

Solving yields:

C

T

T

T

T

T

T

T

T

T

T

T

T

446.182

271.131

389.104

9833.82

512.198

248.138

302.103

5443.77

355.173

907.119

0252.93

8924.73

4,3

3,3

2,3

1,3

4,2

3,2

2,2

1,2

4,1

3,1

2,1

1,1

x

y

75

75

75

75

50 50 50

100

100

100

100

300300300

173

120

93

74

199

138

103

78

182

131

104

83

Page 22: Elliptic Partial Differential Equations - Introduction

The Gauss-Seidel The Gauss-Seidel MethodMethodRecall the discretized equation

This can be rewritten as

For the Gauss-Seidel Method, this equation is solved iteratively for all interior nodes until a pre-specified tolerance is met.

04 ,1,1,,1,1 jijijijiji TTTTT

41,1,,1,1

,

jijijijiji

TTTTT

Page 23: Elliptic Partial Differential Equations - Introduction

Example 2: Gauss-Seidel Example 2: Gauss-Seidel MethodMethod

Consider a plate that is subjected to the boundary conditions shown below. Find the temperature at the interior nodes using a square grid with a length of using the Gauss-Siedel method. Assume the initial temperature at all interior nodes to be .

C50

C75

C300

C100

m4.2

m0.3

x

y

mm 0.34.2

m6.0C0

Page 24: Elliptic Partial Differential Equations - Introduction

Example 2: Gauss-Seidel Example 2: Gauss-Seidel MethodMethodWe can discretize the plate by taking

myx 6.0

Page 25: Elliptic Partial Differential Equations - Introduction

x

y

0,0T0,1T 0,2T 0,3T 0,4T

1,0T

2,0T

3,0T

4,0T

5,0T

1,1T 1,2T 1,3T 1,4T

2,1T 2,2T 2,3T 2,4T

3,1T 3,2T 3,3T 3,4T

4,1T 4,2T 4,3T 4,4T

5,1T 5,2T 5,3T 5,4T

Example 2: Gauss-Seidel Example 2: Gauss-Seidel MethodMethod

The nodal temperatures at the boundary nodes are given by:

3,2,1,300

3,2,1,50

4,3,2,1,100

4,3,2,1,75

5,

0,

,4

,0

iT

iT

jT

jT

i

i

j

j

C300

C100

C50

C75

Page 26: Elliptic Partial Differential Equations - Introduction

Example 2: Gauss-Seidel Example 2: Gauss-Seidel MethodMethod

•Now we can begin to solve for the temperature at each interior node using

•Assume all internal nodes to have an initial temperature of zero.

i=1 and j=14

0,12,11,01,21,1

TTTTT

4

500750

C 2500.31

i=1 and j=24

1,13,12,02,22,1

TTTTT

4

2500.310750

C 5625.26

Iteration #1

41,1,,1,1

,

jijijijiji

TTTTT

Page 27: Elliptic Partial Differential Equations - Introduction

Example 2: Gauss-Seidel Example 2: Gauss-Seidel MethodMethod

After the first iteration, the temperatures are as follows. These will now be used as the nodal temperatures for the second iteration.

x

y

31 20 43

27 12 39

25 3.9 37

100 102 135

C300

C100

C50

C75

Page 28: Elliptic Partial Differential Equations - Introduction

Example 2: Gauss-Seidel Example 2: Gauss-Seidel MethodMethod

i=1 and j=1

Iteration #2

40,12,11,01,2

1,1

TTTTT

4

505625.26753125.20

C 9688.42 %27.27

1009688.42

2500.319688.42

1001,1

1,11,1

1,1

present

previouspresent

a T

TT

Page 29: Elliptic Partial Differential Equations - Introduction

Example 2: Gauss-Seidel Example 2: Gauss-Seidel MethodMethod

x

y

300 300 300

75

75

75

75

133 156 161 100

56 56 87 100

39 29 56 100

43 37 56 100

50 50 50x

y

%25 %34 %16

%54 %83 %58

%31 %62 %32

%27 %45 %24

The figures below show the temperature distribution and absolute relative error distribution in the plate after two iterations:

Temperature Distribution

Absolute Relative

Approximate Error

Distribution

Page 30: Elliptic Partial Differential Equations - Introduction

Node

Temperature Distribution in the Plate (°C)

Number of Iterations

1 2 10 Exact

31.2500 42.9688 73.0239

26.5625 38.7695 91.9585

25.3906 55.7861 119.0976

100.0977 133.2825 172.9755

20.3125 36.8164 76.6127

11.7188 30.8594 102.1577

9.2773 56.4880 137.3802

102.3438 156.1493 198.1055

42.5781 56.3477 82.4837

38.5742 56.0425 103.7757

36.9629 86.8393 130.8056

134.8267 160.7471 182.2278

Example 2: Gauss-Seidel Example 2: Gauss-Seidel MethodMethod

1,1T

2,1T

3,1T

4,1T

1,2T

2,2T

3,2T

4,2T

1,3T

2,3T

3,3T

4,3T

Page 31: Elliptic Partial Differential Equations - Introduction

The Lieberman MethodThe Lieberman MethodRecall the equation used in the

Gauss-Siedel Method,

Because the Guass-Siedel Method is guaranteed to converge, we can accelerate the process by using over- relaxation. In this case,

41,1,,1,1

,

jijijijiji

TTTTT

oldji

newji

relaxedji TTT ,,, )1(

Page 32: Elliptic Partial Differential Equations - Introduction

Example 3: Lieberman Example 3: Lieberman MethodMethod

Consider a plate that is subjected to the boundary conditions shown below. Find the temperature at the interior nodes using a square grid with a length of . Use a weighting factor of 1.4 in the Lieberman method. Assume the initial temperature at all interior nodes to be .

C50

C75

C300

C100

m4.2

m0.3

x

y

mm 0.34.2

m6.0C0

Page 33: Elliptic Partial Differential Equations - Introduction

Example 3: Lieberman Example 3: Lieberman MethodMethodWe can discretize the plate by taking myx 6.0

Page 34: Elliptic Partial Differential Equations - Introduction

x

y

0,0T0,1T 0,2T 0,3T 0,4T

1,0T

2,0T

3,0T

4,0T

5,0T

1,1T 1,2T 1,3T 1,4T

2,1T 2,2T 2,3T 2,4T

3,1T 3,2T 3,3T 3,4T

4,1T 4,2T 4,3T 4,4T

5,1T 5,2T 5,3T 5,4T

Example 3: Lieberman Example 3: Lieberman MethodMethod

We can also develop equations for the boundary conditions to define the temperature of the exterior nodes.

3,2,1,300

3,2,1,50

4,3,2,1,100

4,3,2,1,75

5,

0,

,4

,0

iT

iT

jT

jT

i

i

j

j

C300

C100

C50

C75

Page 35: Elliptic Partial Differential Equations - Introduction

Example 3: Lieberman Example 3: Lieberman MethodMethod

•Now we can begin to solve for the temperature at each interior node using the rewritten Laplace equation from the Gauss-Siedel method.

•Once we have the temperature value for each node we will apply the over relaxation equation of the Lieberman method

•Assume all internal nodes to have an initial temperature of zero.

i=1 and j=14

0,12,11,01,21,1

TTTTT

4

500750

C 2500.31

Iteration #1

1,1 1,1 1,1(1 )relaxed new oldT T T

C

7500.43

0)4.11()2500.31(4.1

Iteration #2

i=1 and j=24

1,13,12,02,22,1

TTTTT

4

75.430750

C 6875.29

1,1 1,1 1,1(1 )relaxed new oldT T T

C

5625.41

0)4.11()6875.29(4.1

Page 36: Elliptic Partial Differential Equations - Introduction

Example 3: Lieberman Example 3: Lieberman MethodMethod

After the first iteration the temperatures are as follows. These will be used as the initial nodal temperatures during the second iteration.

x

y

44 33 64

42 26 67

41 23 66

146 164 221

C300

C100

C50

C75

Page 37: Elliptic Partial Differential Equations - Introduction

Example 3: Lieberman Example 3: Lieberman MethodMethod

i=1 and j=1

Iteration #2

40,12,11,01,2

1,1

TTTTT

C

8438.494

505625.41758125.32

%32.16

1002813.52

7500.432813.52

1001,1

1,11,1

1,1

present

previouspresent

a T

TT

1,1 1,1 1,1(1 )relaxed new oldT T T

C

2813.52

75.43)4.11()8438.49(4.1

Page 38: Elliptic Partial Differential Equations - Introduction

Example 3: Lieberman Example 3: Lieberman MethodMethod

x

y

%6.9 %24 %22

%53 %81 %57

%19 %55 %13

%16 %39 %5.7

The figures below show the temperature distribution and absolute relative error distribution in the plate after two iterations:

Temperature Distribution

x

y

300 300 300

75

75

75

75

161 216 181 100

87 122 155 100

51 58 76 100

52 54 69 100

50 50 50

Absolute Relative

Approximate Error

Distribution

Page 39: Elliptic Partial Differential Equations - Introduction

Example 3: Lieberman Example 3: Lieberman MethodMethod

Node

Temperature Distribution in the Plate (°C)

Number of Iterations

1 2 9 Exact

43.7500 52.2813 73.7832

41.5625 51.3133 92.9758

40.7969 87.0125 119.9378

145.5289 160.9353 173.3937

32.8125 54.1789 77.5449

26.0313 57.9731 103.3285

23.3898 122.0937 138.3236

164.1216 215.6582 198.5498

63.9844 69.1458 82.9805

66.5055 76.1516 104.3815

66.4634 155.0472 131.2525

220.7047 181.4650 182.4230

1,1T

2,1T

3,1T

4,1T

1,2T

2,2T

3,2T

4,2T

1,3T

2,3T

3,3T

4,3T

Page 40: Elliptic Partial Differential Equations - Introduction

Alternative Boundary Alternative Boundary ConditionsConditions In Examples 1-3, the boundary conditions on the

plate had a specified temperature on each edge. What if the conditions are different ? For example, what if one of the edges of the plate is insulated.

In this case, the boundary condition would be the derivative of the temperature. Because if the right edge of the plate is insulated, then the temperatures on the right edge nodes also become unknowns.

C50

C75

C300

m4.2

m0.3

x

y

Insulated

Page 41: Elliptic Partial Differential Equations - Introduction

Alternative Boundary Alternative Boundary ConditionsConditions

The finite difference equation in this case for the right edge for the nodes for

However the node is not inside the plate. The derivative boundary condition needs to be used to account for these additional unknown nodal temperatures on the right edge. This is done by approximating the derivative at the edge node as

1,..3,2 nj

04 ,1,1,,1,1 jmjmjmjmjm TTTTT

),1( jm

),( jm

)(2,1,1

, x

TT

x

T jmjm

jm

C50

C75

C300

m4.2

m0.3

x

y

Insulated

),( jm

Page 42: Elliptic Partial Differential Equations - Introduction

Alternative Boundary Alternative Boundary ConditionsConditions

Rearranging this approximation gives us,

We can then substitute this into the original equation gives us,

Recall that is the edge is insulated then,

Substituting this again yields,

jmjmjm x

TxTT

,,1,1 )(2

04)(22 ,1,1,,

,1

jmjmjmjm

jm TTTx

TxT

0,

jmx

T

042 ,1,1,,1 jmjmjmjm TTTT

Page 43: Elliptic Partial Differential Equations - Introduction

Example 3: Alternative Example 3: Alternative Boundary ConditionsBoundary Conditions

A plate is subjected to the temperatures and insulated boundary conditions as shown in Fig. 12. Use a square grid length of . Assume the initial temperatures at all of the interior nodes to be . Find the temperatures at the interior nodes using the direct method.

mm 0.34.2 m6.0

C0

C50

C75

C300

m4.2

m0.3

x

y

Insulated

Page 44: Elliptic Partial Differential Equations - Introduction

Example 3: Alternative Example 3: Alternative Boundary ConditionsBoundary Conditions

We can discretize the plate taking,

myx 6.0

Page 45: Elliptic Partial Differential Equations - Introduction

x

y

0,0T0,1T 0,2T 0,3T 0,4T

1,0T

2,0T

3,0T

4,0T

5,0T

1,1T 1,2T 1,3T 1,4T

2,1T 2,2T 2,3T 2,4T

3,1T 3,2T 3,3T 3,4T

4,1T 4,2T 4,3T 4,4T

5,1T 5,2T 5,3T 5,4T

Example 3: Alternative Example 3: Alternative Boundary ConditionsBoundary Conditions

We can also develop equations for the boundary conditions to define the temperature of the exterior nodes.

C300

C50

C75

4,3,2,1;0

4,3,2,1;300

4,3,2,1;50

4,3,2,1;75

,4

5,

0,

,0

jx

T

iT

iT

jT

j

i

i

j

Insulated

Page 46: Elliptic Partial Differential Equations - Introduction

Example 3: Alternative Example 3: Alternative Boundary ConditionsBoundary Conditions

x

y

0,0T0,1T 0,2T 0,3T 0,4T

1,0T

2,0T

3,0T

4,0T

5,0T

1,1T 1,2T 1,3T 1,4T

2,1T 2,2T 2,3T 2,4T

3,1T 3,3T

4,1T 4,2T 4,3T 4,4T

5,1T 5,2T 5,3T 5,4T

3,2T 3,4T

Here we develop the equation for the temperature at the node (4,3), to show the effects of the alternative boundary condition.i=4 and j=3 042 3,44,42,43,3 TTTT

042 4,43,42,43,3 TTTT

Page 47: Elliptic Partial Differential Equations - Introduction

Example 3: Alternative Example 3: Alternative Boundary ConditionsBoundary Conditions

The addition of the equations for the boundary conditions gives us a system of 16 equations with 16 unknowns.

Solving yields: C

T

T

T

T

TT

T

T

T

T

T

T

T

T

T

T

738.232

830.178

617.130

7882.88

060.232

483.174

426.127

2678.87

021.218

614.159

335.117

8571.82

410.180

617.128

4444.99

8254.76

4,4

3,4

2,4

1,4

4,3

3,3

2,3

1,3

4,2

3,2

2,2

1,2

4,1

3,1

2,1

1,1

x

y

300 300 300

75

75

75

75

180 218 232 233

129 160 174 179

99 117 127 131

77 83 87 89

50 50 50

Page 48: Elliptic Partial Differential Equations - Introduction

THE END