Heat Transfer in 2D
Heat Transfer in 2D
Problem Statement
Consider a steady two-dimensional heat transfer in a long solid body whose cross section
is given in Figure 1. The measured temperatures at selected points of the outer surfaces
are as shown. The thermal conductivity of the body is k = 1 W/m. oC. The dimension of
the solid body is 1.5m x 1m. Using the finite difference method with a mesh size of
x=y=10.0 cm, write a computer solution code to solve for temperatures of interior
nodes. Determine the temperature of all interior nodes.
Present the temperature values in a table.
Plot a contour plot for the temperature of the domain.
A computer code using EES software is used to calculate the temperature matrix and to
plot the temperature contour over the body.
EES Code
!"Input Data"
!"Solution Method"
"n steps" k=10
"m steps" l = 15
"vertical left edge, specified temperature"
Duplicate n=0,k
T[0,n] = 500[K]
end
"vertical right edge, specified temperature"
Duplicate n=0,k
T[15,n] = 500[K]
end
" horizontal top edge, specified temperature"
Duplicate m=1,l-1
T[m,k] = 500[K]
end
T[i,10] [K] 500.0 500.0 500.0 500.0 500.0 500.0 500.0 500.0 500.0 500.0 500.0 500.0 500.0 500.0 500.0 500.0
T[i,9] [K] 500.0 497.6 495.4 493.4 491.7 490.4 489.6 489.1 489.1 489.6 490.4 491.7 493.4 495.4 497.6 500.0
T[i,8] [K] 500.0 495.1 490.5 486.4 483.0 480.5 478.7 477.9 477.9 478.7 480.5 483.0 486.4 490.5 495.1 500.0
T[i,7] [K] 500.0 492.3 485.1 478.7 473.5 469.6 467.0 465.7 465.7 467.0 469.6 473.5 478.7 485.1 492.3 500.0
T[i,6] [K] 500.0 489.0 478.7 469.9 462.8 457.5 454.0 452.3 452.3 454.0 457.5 462.8 469.9 478.7 489.0 500.0
T[i,5] [K] 500.0 484.8 471.0 459.4 450.2 443.5 439.2 437.1 437.1 439.2 443.5 450.2 459.4 471.0 484.8 500.0
T[i,4] [K] 500.0 479.4 461.1 446.3 435.1 427.2 422.3 419.9 419.9 422.3 427.2 435.1 446.3 461.1 479.4 500.0
T[i,3] [K] 500.0 471.6 447.8 429.7 416.8 408.1 402.7 400.2 400.2 402.7 408.1 416.8 429.7 447.8 471.6 500.0
T[i,2] [K] 500.0 459.3 428.6 407.8 394.2 385.5 380.4 378.0 378.0 380.4 385.5 394.2 407.8 428.6 459.3 500.0
T[i,1] [K] 500.0 436.8 399.7 378.8 366.6 359.4 355.3 353.4 353.4 355.3 359.4 366.6 378.8 399.7 436.8 500.0
T[i,0] [K] 500.0 388.0 354.8 341.1 334.1 330.1 327.9 326.9 326.9 327.9 330.1 334.1 341.1 354.8 388.0 500.0