C
D
0C
1000C
100 C
h=100W/m2.K, T=300C
30,000
30,000
Take the maximum number of grid points in x-and y-direction as imax=12 and convergence criteria (for steady
state) as 0.000001.
Report the results as
a) Plot the steady state temperature profiles for the different cases (4 figures).
b) Discuss the effect of volumetric heat generation on the results for both the types of BCs.
BEST OF LUCK
Keep Playing with the codes in future also.
Page 2 of 3
NOTE: Only one Scilab code can be executed at a time. Once an execute command is given
and the code is to be stopped at an intermediate stage, use the method given below. If another execute
command is given without completing/aborting the previous run, erroneous results may be produced.
To abort a running program:
Go to the Scilab console window and press CTRL+C. This interrupts the code execution. A prompt
appears asking for user input. Enter abort here to stop the code execution.
Page 3 of 3
Answer Sheet
Problem # 1: 1-D Computational Heat Conduction (CHC) :
a) Plot the steady-state temperature profile (T(x)) for the different cases (4 figures).
(a)
(b)
(c)
(d)
Fig. 2.1: Steady state temperature profile obtained on the 1D domain for (a) Case A, (b) Case B,
(c) Case C and (d) Case D
b) Discuss the effect of volumetric heat generation on the results for both the types of BCs.
i) BC 1(No convection): The volumetric heat generation makes heat flux dependent on the x coordinate
of the sheet. It makes heat flow from the point where temperature is maximum within the sheet in both
+x and x direction. It makes the steady state temperature profile parabolic which was linear in the
absence of heat generation.
ii) BC 2(convection in right end): The volumetric heat generation sets the temperature at the convection
end as Ts=Tinf + (qgen*L/h), where L here is the distance from the maximum temperature point to the
right end. It makes the steady state temperature profile parabolic which was linear in the absence of
heat generation. It makes heat flow from the point where temperature is maximum within the sheet in
both +x and x direction.