You are on page 1of 16

1 Dimensional Heat Equation

Jx

Jx +x

Boundary conditions

Initial condition:
Separation of variables

Case 1: Let k=0

Case 2: Let k=p2

Case 3: Let k=-p2


Applying initial conditions:

*(

) +

Numerical 2-D for Nnodes = 20


5
4.5
4

bar temperature

3.5
3
2.5
2
1.5
1
0.5
0

0.5

1.5
2
bar length

2.5

3.5

Analytical 2-D
5

bar temperature

-1

0.5

1.5
2
bar length

2.5

3.5

Numerical 3-D for Nnodes = 20

bar temperature

4
3
2
1
0
10
4
3

2
1

time

0 0

bar length

Analytical solution

bar Temperature

4
3
2
1
0
-1
10
4
3

2
1

time

0 0

bar length

2-D plot of Analytical vs Numerical solutions for Nnodes = 20


5
4.5
4

Bar temperature

3.5
3
Analytical
Numerical

2.5
2
1.5
1
0.5
0

0.5

1.5
bar length

2.5

Numerical 2-D for Nnodes = 30


5
4.5
4

bar temperature

3.5
3
2.5
2
1.5
1
0.5
0

0.5

1.5
2
bar length

2.5

3.5

Numerical 3-D for Nnodes = 30

bar temperature

4
3
2
1
0
10
4
3

2
1

time

0 0

bar length

2-D plot of Analytical vs Numerical solutions for Nnodes = 30


5
4.5
4

Bar temperature

3.5
3

Analytical
Numerical

2.5
2
1.5
1
0.5
0

0.5

1.5
bar length

2.5

APPENDIX
Table:

Comparison of numerical and analytical solution

From the figures given above, it can be deduced that the numerical solution scheme provides a
good match with the analytical solution at different times t. The plots show that the bar
temperature decrease as t increases. However, as t approaches infinity, the temperature
approaches
.
The table presented above was generated at the midpoint of the interval. The results show a
negligible differences between the numerical and the analytical solutions at different times
interval.
The validity of the numerical solution was investigated both at N_nodes equal 20 and 30. The
figures indicated that the temperature profiles are virtually unchanged as the number of section is
increased.

APPENDIX

You might also like