Vous êtes sur la page 1sur 4

2D HEAT CONDUCTION

Equations

Input Data
kcon = 1 [W/m ·K] thermal conductivity

h = 10 W/m2 ·K
 
heat transfer coefficient

Tinf = 300 [K] enviornment temperature for convection

Ttop = 500 [K] temperature of the top surface

Tlef t = 500 [K] temperature of the left surface

Tright = 500 [K] temperature of the right surface

∆x = 0.1 [m] DELTAx

∆y = 0.1 [m] DELTAy

Solution Method
k = 10
n steps
l = 15
m steps
vertical left edge, specified temperature
duplicate n = 0, k

1
T0, n = 500 [K]

end

vertical right edge, specified temperature

duplicate n = 0, k

T15, n = 500 [K]

end

horizontal top edge, specified temperature


duplicate m = 1, l − 1

Tm, k = 500 [K]

end

energy balance equation for the bottom edge


duplicate m = 1, l − 1

2 · Tm, 1 + Tm−1, 0 + Tm+1, 0 + (2 · ∆x · h/kcon ) · Tinf = (4 + 2 · ∆x · h/kcon ) · Tm, 0

end

all other nodes


duplicate m = 1, l − 1

duplicate n = 1, k − 1
Tm−1, n + Tm+1, n + Tm, n−1 + Tm, n+1
Tm, n =
4
end

end

Solution
Variables in Main program
 
∆x = 0.1 [m] ∆y = 0.1 [m] h = 10 W/m2 -K k = 10 [W/m-K]
kcon = 1 [W/m-K] l = 15 Tinf = 300 [K] Tlef t = 500 [K]
Tright = 500 [K] Ttop = 500 [K]

Arrays Table: M ain

Row Ti,0 Ti,1 Ti,2 Ti,3 Ti,4 Ti,5 Ti,6 Ti,7


[K] [K] [K] [K] [K] [K] [K] [K]

2
0 500 500 500 500 500 500 500 500
1 388 436.8 459.3 471.6 479.4 484.8 489 492.3
2 354.8 399.7 428.6 447.8 461.1 471 478.7 485.1
3 341.1 378.8 407.8 429.7 446.3 459.4 469.9 478.7
4 334.1 366.6 394.2 416.8 435.1 450.2 462.8 473.5
5 330.1 359.4 385.5 408.1 427.2 443.5 457.5 469.6
6 327.9 355.3 380.4 402.7 422.3 439.2 454 467
7 326.9 353.4 378 400.2 419.9 437.1 452.3 465.7
8 326.9 353.4 378 400.2 419.9 437.1 452.3 465.7
9 327.9 355.3 380.4 402.7 422.3 439.2 454 467
10 330.1 359.4 385.5 408.1 427.2 443.5 457.5 469.6
11 334.1 366.6 394.2 416.8 435.1 450.2 462.8 473.5
12 341.1 378.8 407.8 429.7 446.3 459.4 469.9 478.7
13 354.8 399.7 428.6 447.8 461.1 471 478.7 485.1
14 388 436.8 459.3 471.6 479.4 484.8 489 492.3
15 500 500 500 500 500 500 500 500

Row Ti,8 Ti,9 Ti,10


[K] [K] [K]
0 500 500 500
1 495.1 497.6 500
2 490.5 495.4 500
3 486.4 493.4 500
4 483 491.7 500
5 480.5 490.4 500
6 478.7 489.6 500
7 477.9 489.1 500
8 477.9 489.1 500
9 478.7 489.6 500
10 480.5 490.4 500
11 483 491.7 500
12 486.4 493.4 500
13 490.5 495.4 500
14 495.1 497.6 500
15 500 500 500

Lookup Table: Lookup 4

Row Column1 Column2 Column3 Column4 Column5 Column6 Column7 Column8

1 500 388 354.8 341.1 334.1 330.1 327.9 326.9


2 500 436.8 399.7 378.8 366.6 359.4 355.3 353.4
3 500 459.3 428.6 407.8 394.2 385.5 380.4 378
4 500 471.6 447.8 429.7 416.8 408.1 402.7 400.2
5 500 479.4 461.1 446.3 435.1 427.2 422.3 419.9
6 500 484.8 471 459.4 450.2 443.5 439.2 437.1
7 500 489 478.7 469.9 462.8 457.5 454 452.3
8 500 492.3 485.1 478.7 473.5 469.6 467 465.7
9 500 495.1 490.5 486.4 483 480.5 478.7 477.9
10 500 497.6 495.4 493.4 491.7 490.4 489.6 489.1
11 500 500 500 500 500 500 500 500

3
Row Column9 Column10 Column11 Column12 Column13 Column14 Column15 Column16

1 326.9 327.9 330.1 334.1 341.1 354.8 388 500


2 353.4 355.3 359.4 366.6 378.8 399.7 436.8 500
3 378 380.4 385.5 394.2 407.8 428.6 459.3 500
4 400.2 402.7 408.1 416.8 429.7 447.8 471.6 500
5 419.9 422.3 427.2 435.1 446.3 461.1 479.4 500
6 437.1 439.2 443.5 450.2 459.4 471 484.8 500
7 452.3 454 457.5 462.8 469.9 478.7 489 500
8 465.7 467 469.6 473.5 478.7 485.1 492.3 500
9 477.9 478.7 480.5 483 486.4 490.5 495.1 500
10 489.1 489.6 490.4 491.7 493.4 495.4 497.6 500
11 500 500 500 500 500 500 500 500

Plot Window 3: T emp Contour

Vous aimerez peut-être aussi