MSE2094
Analytic Methods in Material Science

Assignment #5: Diffusion Model of Carbon in Iron Revisited


DUE: March 5, 1998

Objective: Learn how to modify an existing numerical diffusion model to more precisely predict the carbon concentration gradient in iron.

Given: Example Problem 5.2 in your text book "Materials Science and Engineering: An Introduction", 3rd Edition by William D. Callister Jr.

Fortran program:

Link to the Fortran77 program or the Fortran90 program and save the file on your computer.
Don't forget to edit out the html markup lines before you compile.

Modify: Fortran program for more accurate results

Modify the Fortran program so that a node in the finite difference grid is located at a point that is exactly 0.5 mm below the surface.

All modifications to the existing Fortran program should be noted with comment statements. You may want to go back to the Numerical Implementation of Finite DifferenceTheorey Section for some guidance on how to make these changes.

Comment out or delete the files TIMES.DAT and CONCEN.ASCII and save only the file DIFF.OUT. From the results stored in DIFF.OUT file draw a simple plot, with Microsoft Excel, that shows the gradient of the carbon concentration in WT% from the surface to a point 0.5 mm below the surface. Superimpose the exact solution on the same plot and comment on the source of difference between the analytic and numeric results. Include a copy of DIFF.OUT in your final report along with your Fortran program.

Part I (300 pts): Deliverables