course sd 2225 heat transfer by conduction in a 2d metallic plate

17
1 Course SD 2225 Heat transfer by conduction in a 2D metallic plate Pau Mallol, Georgios Spanopoulos, Alan Vargas KTH, April 2008

Upload: chione

Post on 14-Jan-2016

22 views

Category:

Documents


0 download

DESCRIPTION

Course SD 2225 Heat transfer by conduction in a 2D metallic plate. Pau Mallol, Georgios Spanopoulos, Alan Vargas KTH, April 2008. Physical Background. Heat transfer: thermal energy in transit due to a spatial temperature difference within/between media. Modes of heat transfer:. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

1

Course SD 2225

Heat transfer by conductionin a 2D metallic plate

Pau Mallol, Georgios Spanopoulos, Alan Vargas KTH, April 2008

Page 2: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

2

Physical Background• Heat transfer: thermal energy in transit due to a

spatial temperature difference within/between media.

• Modes of heat transfer:

Page 3: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

3

Differential Equation• The equation that governs the process is:

Heat sources

Convection with air

Radiation

• Assumptions: - no heat sources in plate - no convection - no radiation - constant conduction thermal conductivity k

02

2

2

2

y

T

x

TT

Poisson’s Equation

Page 4: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

4

Boundary Conditions• One side is thermally insulated, whereas the

rest kept at a certain constant temperature

Page 5: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

5

Meshing• 3 meshes with both COMSOL and MATLAB

a) 19 x 13 b) 49 x 31 c) 124 x 76

Page 6: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

6

COMSOL: Resolution & Results

Page 7: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

7

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

10

20

30

40

50

60

70

80

90

100LENGTHWISE TEMPERATURE Y=0.1 COMSOL

X [m]

T [º

C]

Coarse 13x19

Medium 31x49Fine 76x124

COMSOL: Resolution & Results

Page 8: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

8

COARSE19 X 13

MEDIUM49 X 31

FINE124 X 76

Number of elements

247 1519 9424

ComputingTime [s]

0.094 0.157 0.939

BenchmarkTemperature [oC]Point (0.2,0.6)m

67.347493 67.346702 67.346667

COMSOL: Resolution & Results

Page 9: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

9

MATLAB: Discretization• DG: using same stepsize h in both directions

• DD: 2nd order Finite Difference Method

11

h

Nh

M6.0

2

11

2

2

2

11

2

2

2),(

2),(

h

TTTyx

y

T

h

TTTyx

x

T

ijijijii

jiijjiii

02

2

2

2

y

T

x

TT

Page 10: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

10

• DD (cont.): discretized DE

04 1111 ijijjijiij TTTTT

• DB: 1st and 2nd order Finite Difference Method

0),( 1

h

TTyx

y

T ijijii

02

),( 11

h

TTyx

y

T ijijii

1st order

2nd order

ijij TT 1

11 ijij TT

MATLAB: Discretization

Page 11: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

11

MATLAB: Linear Sytems of Eq.

• Analytical 2D problem results to be 1D problem after discretization.

Page 12: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

12

• Elliptic DE has been reduced to a linear system of MxN EQUATIONS to be solved.

• There are MxN UNKNOWNS, the discretized temperatures in all points of the grid.

• STIFFNESS & STABILITY ?

MATLAB: Linear Sytems of Eq.

• System is of very SPARSE nature -> treat it this way to save computational effort.

ACOARSE19 X 13

MEDIUM49 X 31

FINE124 X 76

λMAX -0.0381 -0.0064 -0.0016

λMIN -7.9215 -7.9861 -7.9964

Page 13: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

13

MATLAB: Resolution & ResultsTEMPERATURE DISTRIBUTION

20 40 60 80 100 120

10

20

30

40

50

60

70

0

10

20

30

40

50

60

70

80

90

100

Page 14: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

14

MATLAB: Resolution & Results

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

10

20

30

40

50

60

70

80

90

100LENGTHWISE TEMPERATURE Y=0.1 MATLAB

X [m]

T [

ºC]

Coarse 13x19

Medium 31x49Fine 76x124

Page 15: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

15

COMSOL & MATLAB: comparison

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

10

20

30

40

50

60

70

80

90

100LENGTHWISE TEMPERATURE Y=0.1 COARSE

X [m]

T [

ºC]

COMSOL

MATLAB

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

10

20

30

40

50

60

70

80

90

100LENGTHWISE TEMPERATURE Y=0.1 MEDIUM

X [m]

T [

ºC]

COMSOL

MATLAB

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

10

20

30

40

50

60

70

80

90

100LENGTHWISE TEMPERATURE Y=0.1 FINE

X [m]

T [

ºC]

COMSOL

MATLAB • COMSOL insensitive to mesh fineness.

• MATLAB depends strongly upon mesh fineness -> ACCURACY

Page 16: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

16

COMSOL & MATLAB: comparison

• COMSOL is more efficient with big systems.

COARSE19 X 13

MEDIUM49 X 31

FINE124 X 76

Number of elements

247 1519 9424

COMSOLTime [s] 0.094 0.157 0.939

MATLABTime [s]

0.041 0.082 1.826

Page 17: Course SD 2225 Heat transfer by conduction in a 2D metallic plate

17

Conclusions

• Max/Min temperatures not consistent in COMSOL (depend on mesh); MATLAB is OK.

• COMSOL: easier, faster, more accurate and efficient than MATLAB.

• But COMSOL is particular use and MATLAB offers infinite possibilities (general).

• STABILITY: numerical systems to these PDE’s are always stable, no matter what h.

• ACCURACY: in COMSOL does not depend on h, in MATLAB strongly depends on h -> limitation: backward slash operator A\b size of A limited to about 10000.