Next: Exercise 6.2: Two bars
Up: Finite differences solution
Previous: Finite differences solution
Solve the temperature distribution within an iron bar of length cm
with the boundary conditions
and initial conditions
The corresponding constants for iron are:
- Write the program to solve the heat flow equation using the finite
differences method
- Plot the temperature gradient along the bar at different instants of time.
Use 100 space divissions for the calculation. Choose an appropiate time
step such that the numerical solution is stable. Check that the temperature
diverges with time is the constant is made larger that .
- Repeat the calculation for aluminum,
,
, . Note that the stability condition requires
you to change the size of the time step.
- Analize and compare the results for both materials. The shape
of the curves may be the same but not the scale. Which bar cools faster and why?
- Pick a sinusoidal initial gradient:
Compare with the analytic solution
Next: Exercise 6.2: Two bars
Up: Finite differences solution
Previous: Finite differences solution
Adrian E. Feiguin
2004-06-01